{
  "resourceType": "StructureDefinition",
  "id": "profile-diagnosticReport-submission",
  "url": "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-diagnosticReport-submission",
  "version": "1.0.0-Ballot",
  "name": "DiagnosticReportOCRESubmission",
  "title": "OCRE DiagnosticReport Profile (Submission)",
  "status": "active",
  "description": "OCRE DiagnosticReport Profile (Submission)",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.language",
        "path": "DiagnosticReport.language",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      {
        "id": "DiagnosticReport.extension",
        "path": "DiagnosticReport.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.extension:ext-di-addendum-of",
        "path": "DiagnosticReport.extension",
        "sliceName": "ext-di-addendum-of",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/diagnosticReport-addendumOf"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:copiedParticipants",
        "path": "DiagnosticReport.extension",
        "sliceName": "copiedParticipants",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/StructureDefinition/oh-ehr-copied-participants-EXT"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:Recipients",
        "path": "DiagnosticReport.extension",
        "sliceName": "Recipients",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/ext-recipient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:Recipients.value[x].identifier",
        "path": "DiagnosticReport.extension.value[x].identifier",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "description": "must contain one repetition of an accession number.",
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier.type",
        "path": "DiagnosticReport.identifier.type",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.system",
        "path": "DiagnosticReport.identifier.type.coding.system",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier.type.coding.code",
        "path": "DiagnosticReport.identifier.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier.value",
        "path": "DiagnosticReport.identifier.value",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession",
        "path": "DiagnosticReport.identifier",
        "sliceName": "identifier-accession",
        "short": "Filler/Accession ID",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.type",
        "path": "DiagnosticReport.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "ACSN",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "display": "Accession ID"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.type.coding.system",
        "path": "DiagnosticReport.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.type.coding.code",
        "path": "DiagnosticReport.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.type.coding.display",
        "path": "DiagnosticReport.identifier.type.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.system",
        "path": "DiagnosticReport.identifier.system",
        "comment": "MI uses source organization specific URIs for this field.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-accession.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber",
        "path": "DiagnosticReport.identifier",
        "sliceName": "identifier-placerOrderNumber",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.type",
        "path": "DiagnosticReport.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "PLAC",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "display": "Placer Identifier"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.type.coding.system",
        "path": "DiagnosticReport.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.type.coding.code",
        "path": "DiagnosticReport.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.type.coding.display",
        "path": "DiagnosticReport.identifier.type.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.system",
        "path": "DiagnosticReport.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:identifier-placerOrderNumber.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-serviceRequest-submission"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn.reference",
        "path": "DiagnosticReport.basedOn.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/procedure-service-type"
        }
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/diagnostic-report-code",
          "extension": [
            {
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding",
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "extensible"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://ontariohealth.ca/fhir/ehr/ValueSet/local-imaging-procedure-code"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "This value set contains example local procedure codes contributed by sites to DIRs in HL7v2 OBR-4 to identify the procedure of the MI order or MI report."
                },
                {
                  "url": "key",
                  "valueId": "imagingProcedureCode"
                }
              ]
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-patient-submission"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-encounter-submission"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter.reference",
        "path": "DiagnosticReport.encounter.reference",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]:effectiveDateTime",
        "path": "DiagnosticReport.effective[x]",
        "sliceName": "effectiveDateTime",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitionerRole-submission",
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitioner-submission"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction",
        "path": "DiagnosticReport.performer.extension",
        "sliceName": "performerFunction",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/event-performerFunction"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction.value[x]",
        "path": "DiagnosticReport.performer.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction.value[x].coding",
        "path": "DiagnosticReport.performer.extension.value[x].coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction.value[x].coding.system",
        "path": "DiagnosticReport.performer.extension.value[x].coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction.value[x].coding.code",
        "path": "DiagnosticReport.performer.extension.value[x].coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.extension:performerFunction.value[x].coding.display",
        "path": "DiagnosticReport.performer.extension.value[x].coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.reference",
        "path": "DiagnosticReport.performer.reference",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitionerRole-submission",
              "http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitioner-submission"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.reference",
        "path": "DiagnosticReport.resultsInterpreter.reference",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-observation-imaging"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/clinicalfindingcode",
          "extension": [
            {
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding",
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://fhir.infoway-inforoute.ca/io/cacore/ValueSet/ICD9CM"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "Any code from ICD-9 CM."
                },
                {
                  "url": "key",
                  "valueId": "icd9cmBinding"
                }
              ]
            },
            {
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding",
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://fhir.infoway-inforoute.ca/io/cacore/ValueSet/ICD10CA"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "Any Code from ICD-10 CA."
                },
                {
                  "url": "key",
                  "valueId": "icd10caBinding"
                }
              ]
            },
            {
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding",
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "Absent or Unknown Problems"
                },
                {
                  "url": "key",
                  "valueId": "absentUnknownProblemsIPS"
                }
              ]
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.contentType",
        "path": "DiagnosticReport.presentedForm.contentType",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://ontariohealth.ca/fhir/ocre/ValueSet/mime-type",
          "description": "Supported mime types from OH EHR"
        }
      },
      {
        "id": "DiagnosticReport.presentedForm.language",
        "path": "DiagnosticReport.presentedForm.language",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.data",
        "path": "DiagnosticReport.presentedForm.data",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.data.extension",
        "path": "DiagnosticReport.presentedForm.data.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "DiagnosticReport.presentedForm.data.extension:ext-attachment-metadata",
        "path": "DiagnosticReport.presentedForm.data.extension",
        "sliceName": "ext-attachment-metadata",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/ext-attachment-metadata"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.title",
        "path": "DiagnosticReport.presentedForm.title",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.creation",
        "path": "DiagnosticReport.presentedForm.creation",
        "mustSupport": true
      }
    ]
  }
}