PackagesCanonicalsLogsProblems
    Packages
    ontariomicdrfhirimplementationguide-0.10.00@0.9.9-beta
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-DocumentReference
description: null
package_name: ontariomicdrfhirimplementationguide-0.10.00
derivation: constraint
name: MiCdrDocumentReference
type: DocumentReference
elements:
  description: {mustSupport: true, index: 50}
  date: {mustSupport: true, index: 42}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
    required: [profile]
  docStatus: {mustSupport: true, index: 30}
  content:
    mustSupport: true
    index: 51
    elements:
      attachment:
        mustSupport: true
        index: 52
        elements:
          url: {mustSupport: true, index: 53}
  type:
    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-document-type'}
    mustSupport: true
    index: 31
    elements:
      coding:
        mustSupport: true
        index: 32
        elements:
          system: {mustSupport: true, index: 33}
          code: {mustSupport: true, index: 34}
          display: {mustSupport: true, index: 35}
        required: [display, system, code]
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            slice-loinc-coding:
              match: {system: 'http://loinc.org'}
              schema:
                mustSupport: true
                _required: true
                index: 36
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 37
                  code: {mustSupport: true, index: 38}
                  display: {mustSupport: true, index: 39}
                required: [display, system, code]
    required: [coding]
  author:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Practitioner', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-PractitionerRole']
    index: 43
    elements:
      reference: {mustSupport: true, index: 44}
    required: [reference]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Organization']
    index: 45
    elements:
      reference: {mustSupport: true, index: 46}
    required: [reference]
  status: {mustSupport: true, index: 29}
  identifier:
    mustSupport: true
    index: 2
    elements:
      type:
        short: Description of identifier.
        mustSupport: true
        index: 3
        elements:
          coding:
            mustSupport: true
            index: 4
            elements:
              system: {mustSupport: true, index: 5}
              code: {mustSupport: true, index: 6}
              display: {mustSupport: true, index: 7}
            required: [display, system, code]
        required: [coding]
      system: {mustSupport: true, index: 8}
      value: {mustSupport: true, index: 9}
    required: [value, type, system]
    slicing:
      rules: open
      discriminator:
      - {path: type.coding.code, type: value}
      - {path: system, type: value}
      min: 1
      slices:
        sliceIdentifier-Accession-Number:
          match:
            type:
              coding: {code: ACSN}
            system: null
          schema:
            mustSupport: true
            _required: true
            index: 10
            elements:
              type:
                mustSupport: true
                index: 11
                elements:
                  coding:
                    mustSupport: true
                    index: 12
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 13
                      code:
                        pattern: {type: Code, value: ACSN}
                        mustSupport: true
                        index: 14
                      display: {mustSupport: true, index: 15}
                    required: [display, system, code]
                required: [coding]
              system: {mustSupport: true, index: 16}
              value: {mustSupport: true, index: 17}
            required: [value, type, system]
        sliceIdentifier-Placer-Order-Number:
          match:
            type:
              coding: {code: PLAC}
            system: null
          schema:
            mustSupport: true
            index: 18
            elements:
              type:
                mustSupport: true
                index: 19
                elements:
                  coding:
                    mustSupport: true
                    index: 20
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 21
                      code:
                        pattern: {type: Code, value: PLAC}
                        mustSupport: true
                        index: 22
                      display: {mustSupport: true, index: 23}
                    required: [display, system, code]
                required: [coding]
              system: {mustSupport: true, index: 24}
              value: {mustSupport: true, index: 25}
            required: [value, type, system]
        sliceIdentifier-Study-Instance-Id:
          match:
            type:
              coding: {code: null}
            system: urn:dicom:uid
          schema:
            mustSupport: true
            index: 26
            elements:
              system:
                pattern: {type: Uri, value: 'urn:dicom:uid'}
                mustSupport: true
                index: 27
              value: {mustSupport: true, index: 28}
            required: [value, system]
  relatesTo:
    mustSupport: true
    index: 47
    elements:
      code: {mustSupport: true, index: 48}
      target: {mustSupport: true, index: 49}
  context:
    mustSupport: true
    index: 54
    elements:
      encounter:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-encounter']
        index: 55
      event:
        mustSupport: true
        index: 56
        extensions:
          ext-mi-clinical-category:
            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
            min: 1
            max: 1
            type: Extension
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-category-type'}
            isModifier: false
            index: 58
        elements:
          extension:
            index: 57
            slicing:
              slices:
                ext-mi-clinical-category:
                  match: {}
                  schema:
                    type: Extension
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-category-type'}
                    isModifier: false
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    index: 58
                  min: 1
                  max: 1
        required: [extension]
        slicing:
          rules: open
          discriminator:
          - {path: extension.value.code, type: value}
          min: 1
          slices:
            event-modality:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: required, valueSet: 'https://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html'}
                mustSupport: true
                index: 59
                extensions:
                  ext-mi-clinical-category:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 61
                    elements:
                      value:
                        choices: []
                        index: 63
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 64
                          code:
                            pattern: {type: Code, value: '360037004'}
                            index: 65
                elements:
                  extension:
                    index: 60
                    slicing:
                      slices:
                        ext-mi-clinical-category:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 61
                            elements:
                              value:
                                choices: []
                                index: 63
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 64
                                  code:
                                    pattern: {type: Code, value: '360037004'}
                                    index: 65
                  coding:
                    mustSupport: true
                    index: 66
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://dicom.nema.org/resources/ontology/DCM'}
                        mustSupport: true
                        index: 67
                      code: {mustSupport: true, index: 68}
                      display: {mustSupport: true, index: 69}
                    required: [display, system, code]
                required: [extension, coding]
            event-specialty:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-specialty'}
                mustSupport: true
                index: 70
                extensions:
                  ext-mi-clinical-category:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 72
                    elements:
                      value:
                        choices: []
                        index: 74
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 75
                          code:
                            pattern: {type: Code, value: '394658006'}
                            index: 76
                elements:
                  extension:
                    index: 71
                    slicing:
                      slices:
                        ext-mi-clinical-category:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 72
                            elements:
                              value:
                                choices: []
                                index: 74
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 75
                                  code:
                                    pattern: {type: Code, value: '394658006'}
                                    index: 76
                  coding:
                    mustSupport: true
                    index: 77
                    elements:
                      system: {mustSupport: true, index: 78}
                      code: {mustSupport: true, index: 79}
                      display: {mustSupport: true, index: 80}
                    required: [display, system, code]
                required: [extension, coding]
            event-bodyPart:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-bodypart-sct'}
                mustSupport: true
                index: 81
                extensions:
                  ext-category-bodypart:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 83
                    elements:
                      value:
                        choices: []
                        index: 85
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 86
                          code:
                            pattern: {type: Code, value: '272427006'}
                            index: 87
                elements:
                  extension:
                    index: 82
                    slicing:
                      slices:
                        ext-category-bodypart:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 83
                            elements:
                              value:
                                choices: []
                                index: 85
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 86
                                  code:
                                    pattern: {type: Code, value: '272427006'}
                                    index: 87
                  coding:
                    mustSupport: true
                    index: 88
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: true
                        index: 89
                      code: {mustSupport: true, index: 90}
                      display: {mustSupport: true, index: 91}
                    required: [display, system, code]
                required: [extension, coding]
            event-laterality:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-laterality-sct'}
                mustSupport: true
                index: 92
                extensions:
                  ext-category-laterality:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 94
                    elements:
                      value:
                        choices: []
                        index: 96
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 97
                          code:
                            pattern: {type: Code, value: '272741003'}
                            index: 98
                elements:
                  extension:
                    index: 93
                    slicing:
                      slices:
                        ext-category-laterality:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 94
                            elements:
                              value:
                                choices: []
                                index: 96
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 97
                                  code:
                                    pattern: {type: Code, value: '272741003'}
                                    index: 98
                  coding:
                    mustSupport: true
                    index: 99
                    elements:
                      system: {mustSupport: true, index: 100}
                      code: {mustSupport: true, index: 101}
                      display: {mustSupport: true, index: 102}
                    required: [display, system, code]
                required: [extension, coding]
            event-contrast:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-contrast-used'}
                mustSupport: true
                index: 103
                extensions:
                  ext-category-contrast:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 105
                    elements:
                      value:
                        choices: []
                        index: 107
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 108
                          code:
                            pattern: {type: Code, value: '263543005'}
                            index: 109
                elements:
                  extension:
                    index: 104
                    slicing:
                      slices:
                        ext-category-contrast:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 105
                            elements:
                              value:
                                choices: []
                                index: 107
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 108
                                  code:
                                    pattern: {type: Code, value: '263543005'}
                                    index: 109
                  coding:
                    mustSupport: true
                    index: 110
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: true
                        index: 111
                      code: {mustSupport: true, index: 112}
                      display: {mustSupport: true, index: 113}
                    required: [display, system, code]
                required: [extension, coding]
            event-procedureCode:
              match:
                extension:
                  value: {code: null}
              schema:
                mustSupport: true
                index: 114
                extensions:
                  slice-ext-mi-category-type:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                    type: Extension
                    isModifier: false
                    index: 116
                    elements:
                      value:
                        choices: []
                        index: 118
                      value[x]:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 119
                          code:
                            pattern: {type: Code, value: '276218009'}
                            index: 120
                elements:
                  extension:
                    index: 115
                    slicing:
                      slices:
                        slice-ext-mi-category-type:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                            index: 116
                            elements:
                              value:
                                choices: []
                                index: 118
                              value[x]:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                    index: 119
                                  code:
                                    pattern: {type: Code, value: '276218009'}
                                    index: 120
                  coding:
                    index: 121
                    slicing:
                      rules: open
                      discriminator:
                      - {path: system, type: value}
                      min: null
                      slices:
                        slice-provincial-code:
                          match: {system: 'http://ontariohealth.ca/fhir/CodeSystem/procedure-type-mi-provincial'}
                          schema:
                            binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-type-provincial'}
                            _required: true
                            index: 122
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/procedure-type-mi-provincial'}
                                mustSupport: true
                                index: 123
                              code: {mustSupport: true, index: 124}
                              display: {mustSupport: true, index: 125}
                            required: [display, system, code]
                        slice-snomed-coding:
                          match: {system: 'http://snomed.info/sct'}
                          schema:
                            binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-type-sct'}
                            _required: true
                            index: 126
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                mustSupport: true
                                index: 127
                              code: {mustSupport: true, index: 128}
                              display: {mustSupport: true, index: 129}
                            required: [display, system, code]
                required: [extension]
      facilityType:
        mustSupport: true
        index: 130
        elements:
          coding:
            mustSupport: true
            index: 131
            elements:
              system: {mustSupport: true, index: 132}
              code: {mustSupport: true, index: 133}
              display: {mustSupport: true, index: 134}
            required: [display, system, code]
        required: [coding]
      practiceSetting:
        mustSupport: true
        index: 135
        elements:
          coding:
            mustSupport: true
            index: 136
            elements:
              system: {mustSupport: true, index: 137}
              code: {mustSupport: true, index: 138}
              display: {mustSupport: true, index: 139}
            required: [display, system, code]
        required: [coding]
      related:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-DiagnosticReport', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ImagingStudy', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest']
        index: 140
        elements:
          reference: {mustSupport: true, index: 141}
        required: [reference]
    required: [related, event]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-patient']
    index: 40
    elements:
      reference: {mustSupport: true, index: 41}
    required: [reference]
package_version: 0.9.9-beta
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-DocumentReference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 0.9.0
required: [context, identifier, subject, type, meta, date, custodian]