PackagesCanonicalsLogsProblems
    Packages
    ontariomicdrfhirimplementationguide-0.10.00@0.9.3-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: 48}
  date: {mustSupport: true, index: 42}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
    required: [profile]
  docStatus: {mustSupport: true, index: 35}
  content:
    mustSupport: true
    index: 49
    elements:
      attachment:
        mustSupport: true
        index: 50
        elements:
          url: {mustSupport: true, index: 51}
  type:
    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-document-type'}
    mustSupport: true
    index: 36
    elements:
      coding:
        index: 37
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            mustSupport: true
            index: 38
          code: {mustSupport: true, index: 39}
          display: {mustSupport: true, index: 40}
        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
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Organization']
    index: 44
  status: {mustSupport: true, index: 34}
  identifier:
    mustSupport: true
    index: 2
    elements:
      type:
        short: Description of identifier.
        mustSupport: true
        index: 3
        elements:
          coding:
            mustSupport: true
            index: 4
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                mustSupport: true
                index: 5
              code:
                pattern: {type: Code, value: ACSN}
                mustSupport: true
                index: 6
              display:
                pattern: {type: String, value: Accession ID}
                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}
      min: 1
      slices:
        sliceIdentifier-Accession-Number:
          match:
            type:
              coding: {code: ACSN}
          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}
          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: SUID}
          schema:
            mustSupport: true
            index: 26
            elements:
              type:
                mustSupport: true
                index: 27
                elements:
                  coding:
                    mustSupport: true
                    index: 28
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 29
                      code:
                        pattern: {type: Code, value: SUID}
                        mustSupport: true
                        index: 30
                      display: {mustSupport: true, index: 31}
                    required: [display, system, code]
                required: [coding]
              system: {mustSupport: true, index: 32}
              value: {mustSupport: true, index: 33}
            required: [value, type, system]
  relatesTo:
    mustSupport: true
    index: 45
    elements:
      code: {mustSupport: true, index: 46}
      target: {mustSupport: true, index: 47}
  context:
    mustSupport: true
    index: 52
    elements:
      encounter:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-encounter']
        index: 53
      event:
        mustSupport: true
        index: 54
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            event-modality:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-modality'}
                mustSupport: true
                index: 55
              max: 1
            event-specialty:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-specialty'}
                mustSupport: true
                index: 56
              max: 1
            event-bodyPart:
              match: {}
              schema:
                binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/servicerequest-category'}
                mustSupport: true
                index: 57
            event-laterality:
              match: {}
              schema:
                binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/servicerequest-category'}
                mustSupport: true
                index: 58
            event-contrast:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-contrast-used'}
                mustSupport: true
                index: 59
              max: 1
            event-procedureCode:
              match: {}
              schema: {mustSupport: true, index: 60}
      facilityType: {mustSupport: true, index: 61}
      practiceSetting: {mustSupport: true, index: 62}
      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: 63
        elements:
          reference: {mustSupport: true, index: 64}
        required: [reference]
    required: [related, event]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-patient']
    index: 41
package_version: 0.9.3-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.1.0
required: [docStatus, context, identifier, subject, type, meta, date, custodian]