{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.healthbc.org/StructureDefinition/ca-bc-careconnect-diagnostic-report",
  "version": "1.0",
  "name": "ca-bc-careconect-diagnostic-report",
  "status": "active",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier.extension",
        "path": "DiagnosticReport.identifier.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.use",
        "path": "DiagnosticReport.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.extension",
        "path": "DiagnosticReport.identifier.type.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.extension",
        "path": "DiagnosticReport.identifier.type.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.version",
        "path": "DiagnosticReport.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.display",
        "path": "DiagnosticReport.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.userSelected",
        "path": "DiagnosticReport.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type.text",
        "path": "DiagnosticReport.identifier.type.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.period",
        "path": "DiagnosticReport.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.assigner",
        "path": "DiagnosticReport.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn.extension",
        "path": "DiagnosticReport.basedOn.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.display",
        "path": "DiagnosticReport.basedOn.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.extension",
        "path": "DiagnosticReport.category.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.category.coding.extension",
        "path": "DiagnosticReport.category.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "diagnosticService",
        "max": "1"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.extension",
        "path": "DiagnosticReport.category.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.system",
        "path": "DiagnosticReport.category.coding.system",
        "fixedUri": "http://hl7.org/fhir/v2/0074"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.version",
        "path": "DiagnosticReport.category.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.code",
        "path": "DiagnosticReport.category.coding.code",
        "fixedCode": "IMG"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.display",
        "path": "DiagnosticReport.category.coding.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:diagnosticService.userSelected",
        "path": "DiagnosticReport.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:modality",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "modality",
        "max": "1"
      },
      {
        "id": "DiagnosticReport.category.coding:modality.extension",
        "path": "DiagnosticReport.category.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:modality.system",
        "path": "DiagnosticReport.category.coding.system",
        "fixedUri": "http://www.dicomlibrary.com/dicom/modality/"
      },
      {
        "id": "DiagnosticReport.category.coding:modality.version",
        "path": "DiagnosticReport.category.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:modality.display",
        "path": "DiagnosticReport.category.coding.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding:modality.userSelected",
        "path": "DiagnosticReport.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.extension",
        "path": "DiagnosticReport.code.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.extension",
        "path": "DiagnosticReport.code.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.version",
        "path": "DiagnosticReport.code.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.display",
        "path": "DiagnosticReport.code.coding.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.userSelected",
        "path": "DiagnosticReport.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.extension",
        "path": "DiagnosticReport.subject.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.display",
        "path": "DiagnosticReport.subject.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.context",
        "path": "DiagnosticReport.context",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "DiagnosticReport.effective[x].extension",
        "path": "DiagnosticReport.effective[x].extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x].value",
        "path": "DiagnosticReport.effective[x].value"
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.extension",
        "path": "DiagnosticReport.performer.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.modifierExtension",
        "path": "DiagnosticReport.performer.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.role",
        "path": "DiagnosticReport.performer.role",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.actor",
        "path": "DiagnosticReport.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.actor.extension",
        "path": "DiagnosticReport.performer.actor.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.actor.identifier",
        "path": "DiagnosticReport.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.actor.display",
        "path": "DiagnosticReport.performer.actor.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen.extension",
        "path": "DiagnosticReport.specimen.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen.identifier",
        "path": "DiagnosticReport.specimen.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen.display",
        "path": "DiagnosticReport.specimen.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image",
        "path": "DiagnosticReport.image",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "comment"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.image.extension",
        "path": "DiagnosticReport.image.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image.modifierExtension",
        "path": "DiagnosticReport.image.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl",
        "path": "DiagnosticReport.image",
        "sliceName": "mediaSubiUrl"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.extension",
        "path": "DiagnosticReport.image.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.modifierExtension",
        "path": "DiagnosticReport.image.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.comment",
        "path": "DiagnosticReport.image.comment",
        "fixedString": "iSite"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.link",
        "path": "DiagnosticReport.image.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Media",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.link.extension",
        "path": "DiagnosticReport.image.link.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.link.identifier",
        "path": "DiagnosticReport.image.link.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaSubiUrl.link.display",
        "path": "DiagnosticReport.image.link.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl",
        "path": "DiagnosticReport.image",
        "sliceName": "mediaAnywhereUrl"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.extension",
        "path": "DiagnosticReport.image.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.modifierExtension",
        "path": "DiagnosticReport.image.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.comment",
        "path": "DiagnosticReport.image.comment",
        "fixedString": "HTML5"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.link",
        "path": "DiagnosticReport.image.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Media",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.link.extension",
        "path": "DiagnosticReport.image.link.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.link.identifier",
        "path": "DiagnosticReport.image.link.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image:mediaAnywhereUrl.link.display",
        "path": "DiagnosticReport.image.link.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.codedDiagnosis",
        "path": "DiagnosticReport.codedDiagnosis",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.extension",
        "path": "DiagnosticReport.presentedForm.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.contentType",
        "path": "DiagnosticReport.presentedForm.contentType",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.language",
        "path": "DiagnosticReport.presentedForm.language",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.data",
        "path": "DiagnosticReport.presentedForm.data",
        "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"
      }
    ]
  }
}