{
  "resourceType": "StructureDefinition",
  "id": "75b5e701-ae46-423a-806b-a218493e50cb",
  "meta": {
    "lastUpdated": "2022-06-15T23:57:29.186+00:00"
  },
  "url": "https://example.org/fhir/StructureDefinition/HNZDiagnosticReport",
  "version": "0.0.1",
  "name": "HNZDiagnosticReport",
  "status": "draft",
  "date": "2022-06-15T23:51:46.0102176+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.identifier.system",
        "path": "DiagnosticReport.identifier.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "binding": {
          "strength": "required",
          "valueSet": "https://nzhts.digital.health.nz/fhir/ValueSet/nz-pathology-observations"
        }
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.display",
        "path": "DiagnosticReport.code.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.userSelected",
        "path": "DiagnosticReport.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.reference",
        "path": "DiagnosticReport.subject.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.type",
        "path": "DiagnosticReport.subject.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject.identifier.use",
        "path": "DiagnosticReport.subject.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier.type",
        "path": "DiagnosticReport.subject.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier.system",
        "path": "DiagnosticReport.subject.identifier.system",
        "requirements": "There are many sets of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject.identifier.value",
        "path": "DiagnosticReport.subject.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject.identifier.period",
        "path": "DiagnosticReport.subject.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier.assigner",
        "path": "DiagnosticReport.subject.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.display",
        "path": "DiagnosticReport.subject.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.reference",
        "path": "DiagnosticReport.performer.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.type",
        "path": "DiagnosticReport.performer.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier",
        "path": "DiagnosticReport.performer.identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer.identifier.use",
        "path": "DiagnosticReport.performer.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier.type",
        "path": "DiagnosticReport.performer.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier.system",
        "path": "DiagnosticReport.performer.identifier.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer.identifier.value",
        "path": "DiagnosticReport.performer.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer.identifier.period",
        "path": "DiagnosticReport.performer.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier.assigner",
        "path": "DiagnosticReport.performer.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.display",
        "path": "DiagnosticReport.performer.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.display",
        "path": "DiagnosticReport.result.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}