PackagesCanonicalsLogsProblems
    Packages
    accdr.fhir.ig.pkg@0.9.0-alpha-0.9.17
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Composition
description: null
package_name: accdr.fhir.ig.pkg
derivation: constraint
name: CDRComposition
type: Composition
elements:
  category:
    mustSupport: true
    index: 28
    extensions:
      ext-LOINC-ontology-axis:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
        type: Extension
        isModifier: false
        index: 30
        elements:
          value:
            mustSupport: true
            choices: []
            index: 32
          value[x]:
            elements:
              system: {mustSupport: true, index: 33}
              code: {mustSupport: true, index: 34}
              display: {mustSupport: true, index: 35}
    elements:
      extension:
        index: 29
        slicing:
          slices:
            ext-LOINC-ontology-axis:
              match: {}
              schema:
                type: Extension
                isModifier: false
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                index: 30
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 32
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 33}
                      code: {mustSupport: true, index: 34}
                      display: {mustSupport: true, index: 35}
      coding:
        mustSupport: true
        index: 36
        elements:
          system: {mustSupport: true, index: 37}
          code: {mustSupport: true, index: 38}
          display: {mustSupport: true, index: 39}
        required: [display, system, code]
    required: [extension, coding]
    slicing:
      rules: open
      discriminator:
      - {path: 'extension.value[x].code', type: value}
      min: null
      slices:
        sliceCategory-kind-of-document:
          match:
            extension:
              value[x]: {code: null}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/document-kind-of-document'}
            mustSupport: true
            index: 40
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 42
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 44
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 45}
                      code:
                        pattern: {type: Code, value: 74477-1}
                        mustSupport: true
                        index: 46
                      display:
                        pattern: {type: String, value: Kind of document}
                        mustSupport: true
                        index: 47
            elements:
              extension:
                index: 41
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 42
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 44
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 45}
                              code:
                                pattern: {type: Code, value: 74477-1}
                                mustSupport: true
                                index: 46
                              display:
                                pattern: {type: String, value: Kind of document}
                                mustSupport: true
                                index: 47
              coding:
                mustSupport: true
                index: 48
                elements:
                  system: {mustSupport: true, index: 49}
                  code: {mustSupport: true, index: 50}
                  display: {mustSupport: true, index: 51}
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-subject-matter-domain:
          match:
            extension:
              value[x]: {code: null}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/documentsubject-matter-domain'}
            mustSupport: true
            index: 52
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 53
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 55
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 56}
                      code:
                        pattern: {type: Code, value: 74480-5}
                        mustSupport: true
                        index: 57
                      display:
                        pattern: {type: String, value: Subject matter domain}
                        mustSupport: true
                        index: 58
            elements:
              extension:
                type: Extension
                isModifier: false
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                index: 53
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 53
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 55
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 56}
                              code:
                                pattern: {type: Code, value: 74480-5}
                                mustSupport: true
                                index: 57
                              display:
                                pattern: {type: String, value: Subject matter domain}
                                mustSupport: true
                                index: 58
              coding:
                mustSupport: true
                index: 59
                elements:
                  system: {mustSupport: true, index: 60}
                  code: {mustSupport: true, index: 61}
                  display: {mustSupport: true, index: 62}
                required: [display, system, code]
            required: [coding]
        sliceCategory-type-of-service:
          match:
            extension:
              value[x]: {code: null}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/document-type-of-service'}
            mustSupport: true
            index: 63
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 65
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 67
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 68}
                      code:
                        pattern: {type: Code, value: 74478-9}
                        mustSupport: true
                        index: 69
                      display:
                        pattern: {type: String, value: Type of Service}
                        mustSupport: true
                        index: 70
            elements:
              extension:
                index: 64
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 65
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 67
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 68}
                              code:
                                pattern: {type: Code, value: 74478-9}
                                mustSupport: true
                                index: 69
                              display:
                                pattern: {type: String, value: Type of Service}
                                mustSupport: true
                                index: 70
              coding:
                mustSupport: true
                index: 71
                elements:
                  system: {mustSupport: true, index: 72}
                  code: {mustSupport: true, index: 73}
                  display: {mustSupport: true, index: 74}
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-role:
          match:
            extension:
              value[x]: {code: null}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/document-role'}
            mustSupport: true
            index: 75
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 77
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 79
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 80}
                      code:
                        pattern: {type: Code, value: 74479-7}
                        mustSupport: true
                        index: 81
                      display:
                        pattern: {type: String, value: Role}
                        mustSupport: true
                        index: 82
            elements:
              extension:
                index: 76
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 77
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 79
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 80}
                              code:
                                pattern: {type: Code, value: 74479-7}
                                mustSupport: true
                                index: 81
                              display:
                                pattern: {type: String, value: Role}
                                mustSupport: true
                                index: 82
              coding:
                mustSupport: true
                index: 83
                elements:
                  system: {mustSupport: true, index: 84}
                  code: {mustSupport: true, index: 85}
                  display: {mustSupport: true, index: 86}
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-setting:
          match:
            extension:
              value[x]: {code: null}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/document-setting'}
            index: 87
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                index: 89
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 91
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 92}
                      code:
                        pattern: {type: Code, value: 74476-3}
                        index: 93
                      display:
                        pattern: {type: String, value: setting}
                        index: 94
            elements:
              extension:
                index: 88
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 89
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 91
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 92}
                              code:
                                pattern: {type: Code, value: 74476-3}
                                index: 93
                              display:
                                pattern: {type: String, value: setting}
                                index: 94
              coding:
                mustSupport: true
                index: 95
                elements:
                  system: {mustSupport: true, index: 96}
                  code: {mustSupport: true, index: 97}
                  display: {mustSupport: true, index: 98}
                required: [display, system, code]
            required: [extension, coding]
  date: {mustSupport: true, index: 102}
  meta:
    mustSupport: true
    index: 0
    elements:
      lastUpdated: {mustSupport: true, index: 1}
      profile: {mustSupport: true, index: 2}
    required: [profile]
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter']
    index: 100
    elements:
      reference: {mustSupport: true, index: 101}
    required: [reference]
  section:
    mustSupport: true
    index: 118
    elements:
      id: {index: 119}
      code:
        mustSupport: true
        index: 120
        elements:
          coding:
            mustSupport: true
            index: 121
            elements:
              system: {mustSupport: true, index: 122}
              code: {mustSupport: true, index: 123}
              display: {mustSupport: true, index: 124}
            required: [display, system, code]
        required: [coding]
      text: {mustSupport: true, index: 125}
      entry:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Binary']
        index: 126
        elements:
          reference: {mustSupport: true, index: 127}
        required: [reference]
    required: [id, code]
  type:
    mustSupport: true
    index: 8
    elements:
      coding:
        index: 9
        extensions:
          ext-accdr-document-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type', min: 1, max: 1, type: Extension, isModifier: false, index: 11}
        elements:
          extension:
            index: 10
            slicing:
              slices:
                ext-accdr-document-type:
                  match: {}
                  schema: {type: Extension, isModifier: false, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type', index: 11}
                  min: 1
                  max: 1
        required: [extension]
        slicing:
          rules: open
          discriminator:
          - {path: extension.value.code, type: value}
          min: 1
          slices:
            slice-local-document-type:
              match:
                extension:
                  value: {code: null}
              schema:
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/local-document-type'}
                _required: true
                index: 12
                extensions:
                  coding-local-code:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type
                    type: Extension
                    isModifier: false
                    index: 14
                    elements:
                      value:
                        choices: []
                        index: 16
                      value[x]:
                        elements:
                          code:
                            pattern: {type: Code, value: local}
                            index: 17
                elements:
                  extension:
                    index: 13
                    slicing:
                      slices:
                        coding-local-code:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type
                            index: 14
                            elements:
                              value:
                                choices: []
                                index: 16
                              value[x]:
                                elements:
                                  code:
                                    pattern: {type: Code, value: local}
                                    index: 17
                  system: {mustSupport: true, index: 18}
                  code: {mustSupport: true, index: 19}
                required: [extension, system, code]
            slice-provincial-document-type:
              match:
                extension:
                  value: {code: null}
              schema:
                short: Provincial document type
                binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/provincial-document-type'}
                index: 20
                extensions:
                  coding-provincial-code:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type
                    type: Extension
                    isModifier: false
                    index: 22
                    elements:
                      value:
                        choices: []
                        index: 24
                      value[x]:
                        elements:
                          code:
                            pattern: {type: Code, value: provincial}
                            index: 25
                elements:
                  extension:
                    index: 21
                    slicing:
                      slices:
                        coding-provincial-code:
                          match: {}
                          schema:
                            type: Extension
                            isModifier: false
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-accdr-document-code-type
                            index: 22
                            elements:
                              value:
                                choices: []
                                index: 24
                              value[x]:
                                elements:
                                  code:
                                    pattern: {type: Code, value: provincial}
                                    index: 25
                  system: {mustSupport: true, index: 26}
                  code: {mustSupport: true, index: 27}
                required: [extension, system, code]
    required: [coding]
  title: {mustSupport: true, index: 105}
  author:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Practitioner', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-PractitionerRole']
    index: 103
    elements:
      reference: {mustSupport: true, index: 104}
    required: [reference]
  extension:
    type: Extension
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-recipient
    index: 3
    slicing:
      slices:
        ext-Recipient:
          match: {}
          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-recipient', index: 3}
  event:
    mustSupport: true
    index: 112
    elements:
      period:
        mustSupport: true
        index: 113
        elements:
          start: {mustSupport: true, index: 114}
          end: {mustSupport: true, index: 115}
        required: [start]
      detail:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-ServiceRequest']
        index: 116
        elements:
          reference: {index: 117}
        required: [reference]
    required: [period]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Organization']
    index: 106
    elements:
      reference: {mustSupport: true, index: 107}
    required: [reference]
  status: {mustSupport: true, index: 7}
  identifier:
    mustSupport: true
    index: 4
    elements:
      system: {mustSupport: true, index: 5}
      value: {mustSupport: true, index: 6}
    required: [value, system]
  relatesTo:
    mustSupport: true
    index: 108
    elements:
      code: {mustSupport: true, index: 109}
      target:
        mustSupport: true
        choices: []
        index: 111
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient']
    index: 99
package_version: 0.9.0-alpha-0.9.17
extensions:
  ext-Recipient: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-recipient', type: Extension, index: 3}
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: null
required: [section, identifier, subject, meta, custodian]