{
  "resourceType": "StructureDefinition",
  "url": "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-DI",
  "name": "HD_Consolidation_DiagnosticReport_DI",
  "status": "draft",
  "publisher": "Nova Scotia Health",
  "contact": [
    {
      "name": "Nova Scotia Health"
    }
  ],
  "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",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "HD_Consolidation_DiagnosticReport_ServiceRequest"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn.type",
        "path": "DiagnosticReport.basedOn.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.display",
        "path": "DiagnosticReport.basedOn.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/Profile-HD-Consolidation-Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.reference",
        "path": "DiagnosticReport.resultsInterpreter.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.type",
        "path": "DiagnosticReport.resultsInterpreter.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier",
        "path": "DiagnosticReport.resultsInterpreter.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "max": "0"
      },
      {
        "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",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.presentedForm.contentType",
        "path": "DiagnosticReport.presentedForm.contentType",
        "fixedCode": "test/plain"
      },
      {
        "id": "DiagnosticReport.presentedForm.language",
        "path": "DiagnosticReport.presentedForm.language",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.url",
        "path": "DiagnosticReport.presentedForm.url",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.size",
        "path": "DiagnosticReport.presentedForm.size",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.hash",
        "path": "DiagnosticReport.presentedForm.hash",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.title",
        "path": "DiagnosticReport.presentedForm.title",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.creation",
        "path": "DiagnosticReport.presentedForm.creation",
        "max": "0"
      }
    ]
  }
}