PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.setp-development@1.1.0
    http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition
description: The P-Care profile for the structure and clinical attestation of a healthcare document.
package_name: ca.on.oh.setp-development
derivation: constraint
name: PCareComposition
type: Composition
elements:
  category:
    index: 18
    elements:
      coding:
        index: 19
        elements:
          system: {index: 20}
          code: {index: 21}
          display:
            index: 22
            extensions:
              translation: {url: 'http://hl7.org/fhir/StructureDefinition/translation', min: 0, type: Extension, short: Language Translation (Localization), index: 24}
            elements:
              extension:
                index: 23
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    translation:
                      match: {url: null}
                      schema: {type: Extension, short: Language Translation (Localization), url: 'http://hl7.org/fhir/StructureDefinition/translation', index: 24}
                      min: 0
      text: {index: 25}
  date: {index: 30}
  meta:
    index: 0
    elements:
      lastUpdated: {index: 1}
      security:
        binding: {strength: extensible, valueSet: 'http://fhir.infoway-inforoute.ca/p-care/ValueSet/pcare-security-labels'}
        index: 2
  encounter:
    index: 28
    elements:
      reference: {index: 29}
  section:
    short: Sections composing the document
    index: 56
    elements:
      id: {index: 57}
      extension:
        index: 58
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            section-note:
              match: {url: null}
              schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 59}
              min: 0
      title:
        constraint:
          pcare-cmp-9: {human: 'Composition.section.title is expected to equal ''Medication administration record'' for ON:IR compatibility.', source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: $this = 'Medication administration record'}
        index: 60
      code:
        constraint:
          pcare-cmp-4: {human: 'Composition.section.code is expected to include the LOINC code 80565-5 with display ''Medication administration record'' for ON:IR compatibility.', source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: 'coding.where(system = ''http://loinc.org'' and code = ''80565-5'' and display = ''Medication administration record'').exists()'}
        index: 61
        elements:
          coding:
            index: 62
            elements:
              system: {index: 63}
              code: {index: 64}
              display:
                index: 65
                extensions:
                  translation: {url: 'http://hl7.org/fhir/StructureDefinition/translation', min: 0, type: Extension, short: Language Translation (Localization), index: 67}
                elements:
                  extension:
                    index: 66
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        translation:
                          match: {url: null}
                          schema: {type: Extension, short: Language Translation (Localization), url: 'http://hl7.org/fhir/StructureDefinition/translation', index: 67}
                          min: 0
          text: {index: 68}
      text: {index: 69}
      entry:
        index: 70
        elements:
          reference: {index: 71}
    extensions:
      section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 59}
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        sectionProblems:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            constraint:
              pcare-cmp-2: {human: Either section.entry or emptyReason are present for PS-AB and PS-CA compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            index: 89
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 91}
            elements:
              extension:
                index: 90
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 91}
                      min: 0
              title:
                pattern: {type: String, value: Problem List}
                index: 92
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 93
              entry:
                short: Clinical problems or conditions currently being monitored for the patient.
                index: 94
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    problem:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/condition']
                        array: true
                        index: 95
                      min: 0
              emptyReason: {index: 96}
            required: [title, code]
        sectionPatientStory:
          match:
            code:
              coding:
              - {code: 81338-6, system: 'http://loinc.org'}
          schema:
            index: 190
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 191}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 191
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 191}
                      min: 0
              title: {index: 192}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81338-6, system: 'http://loinc.org'}
                index: 193
            required: [title, code]
        sectionProceduresHx:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            index: 97
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 99}
            elements:
              extension:
                index: 98
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 99}
                      min: 0
              title:
                pattern: {type: String, value: History of Procedures}
                index: 100
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 101
              entry:
                short: Patient past procedures pertinent to the scope of this document.
                index: 102
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    procedure:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/procedure']
                        array: true
                        index: 103
                      min: 0
            required: [title, code]
        sectionPlanOfCare:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            index: 169
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 170}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 170
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 170}
                      min: 0
              title: {index: 171}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 172
              entry:
                short: Optional entry used to represent structured care plans
                index: 173
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    carePlan:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan']
                        array: true
                        index: 174
                      min: 0
                    documentReference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        array: true
                        index: 175
                      min: 0
            required: [title, code]
        sectionMedicalDevices:
          match:
            code:
              coding:
              - {code: 46264-8, system: 'http://loinc.org'}
          schema:
            index: 142
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 143}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 143
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 143}
                      min: 0
              title: {index: 144}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 145
              entry:
                short: Patient history of medical device use.
                index: 146
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips']
                        array: true
                        index: 147
                      min: 0
            required: [title, code]
        sectionSocialHistory:
          match:
            code:
              coding:
              - {code: 29762-2, system: 'http://loinc.org'}
          schema:
            index: 120
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 122}
            elements:
              extension:
                index: 121
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 122}
                      min: 0
              title:
                pattern: {type: String, value: Social History}
                index: 123
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 124
              entry:
                short: Health related "lifestyle factors" or "lifestyle observations" (e.g., smoke habits; alcohol consumption; diets, risky habits.)
                index: 125
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    generalSocialHistory:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-social-history']
                        array: true
                        index: 126
                      min: 0
                    smokingTobaccoUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-tobacco-use']
                        index: 127
                      min: 0
                      max: 1
                    alcoholUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-alcohol-use']
                        index: 128
                      min: 0
                      max: 1
            required: [title, code]
        sectionFunctionalStatus:
          match:
            code:
              coding:
              - {code: 47420-5, system: 'http://loinc.org'}
          schema:
            index: 162
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 163}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 163
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 163}
                      min: 0
              title: {index: 164}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47420-5, system: 'http://loinc.org'}
                index: 165
              entry:
                short: Optional entry used to represent disabilities and functional assessments
                index: 166
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    disability:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/condition']
                        array: true
                        index: 167
                      min: 0
                    functionalAssessment:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/ClinicalImpression']
                        array: true
                        index: 168
                      min: 0
            required: [title, code]
        sectionAllergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            constraint:
              pcare-cmp-2: {human: Either section.entry or emptyReason are present for PS-AB and PS-CA compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            index: 81
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 83}
            elements:
              extension:
                index: 82
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 83}
                      min: 0
              title:
                short: Allergies and Intolerances
                pattern: {type: String, value: Allergies and Intolerances}
                index: 84
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 85
              entry:
                short: Relevant allergies or intolerances (conditions) for that patient.
                index: 86
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/allergy-intolerance']
                        array: true
                        index: 87
                      min: 0
              emptyReason: {index: 88}
            required: [title, code]
        sectionPregnancyHx:
          match:
            code:
              coding:
              - {code: 10162-6, system: 'http://loinc.org'}
          schema:
            index: 176
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 177}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 177
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 177}
                      min: 0
              title: {index: 178}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10162-6, system: 'http://loinc.org'}
                index: 179
              entry:
                short: Current pregnancy status and, optionally, information about the outcome of earlier pregnancies.
                index: 180
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pregnancyStatus:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                        array: true
                        index: 181
                      min: 0
                    pregnancyOutcomeSummary:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips']
                        array: true
                        index: 182
                      min: 0
            required: [title, code]
        sectionAdvanceDirectives:
          match:
            code:
              coding:
              - {code: 42348-3, system: 'http://loinc.org'}
          schema:
            index: 183
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 184}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 184
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 184}
                      min: 0
              title: {index: 185}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42348-3, system: 'http://loinc.org'}
                index: 186
              entry:
                short: Narrative description of the patient's advance directive.
                index: 187
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    advanceDirectivesConsent:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Consent']
                        array: true
                        index: 188
                      min: 0
                    advanceDirectivesDocumentReference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        array: true
                        index: 189
                      min: 0
            required: [title, code]
        sectionFamilyHistory:
          match:
            code:
              coding:
              - {code: 10157-6, system: 'http://loinc.org'}
          schema:
            index: 129
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 131}
            elements:
              extension:
                index: 130
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 131}
                      min: 0
              title:
                pattern: {type: String, value: Family History}
                index: 132
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10157-6, system: 'http://loinc.org'}
                index: 133
              entry:
                short: Narrative description of the patient's family history.
                index: 134
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    FamilyMemberHistory:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/family-member-history']
                        array: true
                        index: 135
                      min: 0
            required: [title, code]
        sectionVitalSigns:
          match:
            code:
              coding:
              - {code: 8716-3, system: 'http://loinc.org'}
          schema:
            index: 104
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 106}
            elements:
              extension:
                index: 105
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 106}
                      min: 0
              title:
                pattern: {type: String, value: Vital Signs}
                index: 107
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 8716-3, system: 'http://loinc.org'}
                index: 108
              entry:
                short: Notable vital signs or physical findings.
                index: 109
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    VitalsPanel:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/vitalspanel']
                        array: true
                        index: 119
                      min: 0
                    BodyHeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-body-height']
                        array: true
                        index: 111
                      min: 0
                    HeadCircum:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-head-circum']
                        array: true
                        index: 113
                      min: 0
                    HeartRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-heart-rate']
                        array: true
                        index: 116
                      min: 0
                    BMI:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-bmi']
                        array: true
                        index: 110
                      min: 0
                    BodyTemp:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-body-temperature']
                        array: true
                        index: 115
                      min: 0
                    OxygenSat:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-oxygen-saturation']
                        array: true
                        index: 117
                      min: 0
                    BodyWeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-body-weight']
                        array: true
                        index: 112
                      min: 0
                    BP:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-blood-pressure']
                        array: true
                        index: 114
                      min: 0
                    RespRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-respiratory-rate']
                        array: true
                        index: 118
                      min: 0
            required: [title, code]
        sectionImmunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            index: 136
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 137}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 137
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 137}
                      min: 0
              title: {index: 138}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 139
              entry:
                short: Patient's immunization status and pertinent history.
                index: 140
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/immunization']
                        array: true
                        index: 141
                      min: 0
            required: [title, code]
        sectionResults:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            index: 148
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 149}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 149
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 149}
                      min: 0
              title: {index: 150}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 151
              entry:
                short: Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient.
                index: 152
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    results-observation-laboratory-pathology:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-lab-pathology']
                        array: true
                        index: 153
                      min: 0
                    results-observation-radiology:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/observation-radiology']
                        array: true
                        index: 154
                      min: 0
                    results-diagnosticReport:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/diagnostic-report']
                        array: true
                        index: 155
                      min: 0
            required: [title, code]
        sectionMedications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            constraint:
              pcare-cmp-2: {human: Either section.entry or emptyReason are present for PS-AB and PS-CA compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            index: 72
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 74}
            elements:
              extension:
                index: 73
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    section-note:
                      match: {url: null}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 74}
                      min: 0
              title:
                short: Medication Summary section
                pattern: {type: String, value: Medication Summary}
                index: 75
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 76
              entry:
                short: Medications relevant for the scope of the patient summary
                index: 77
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    medicationStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-statement']
                        array: true
                        index: 78
                      min: 0
                    medicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-request']
                        array: true
                        index: 79
                      min: 0
              emptyReason: {index: 80}
            required: [title, code]
        sectionPastIllnessHx:
          match:
            code:
              coding:
              - {code: 11348-0, system: 'http://loinc.org'}
          schema:
            index: 156
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 157}
            elements:
              extension:
                type: Extension
                short: Additional notes that apply to the section (but not to specific resource).
                url: http://hl7.org/fhir/StructureDefinition/note
                index: 157
                slicing:
                  slices:
                    section-note:
                      match: {}
                      schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 157}
                      min: 0
              title: {index: 158}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11348-0, system: 'http://loinc.org'}
                index: 159
              entry:
                short: Conditions the patient suffered in the past.
                index: 160
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pastProblem:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/condition']
                        array: true
                        index: 161
                      min: 0
            required: [title, code]
  attester:
    elements:
      mode: {index: 35}
      time: {index: 36}
      party:
        type: Reference
        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/organization', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/patient', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        index: 37
  type:
    constraint:
      pcare-cmp-3: {human: 'Composition.type is expected to include the LOINC code 80565-5 with display ''Medication administration record'' for ON:IR compatibility.', source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: 'coding.where(system = ''http://loinc.org'' and code = ''80565-5'' and display = ''Medication administration record'').exists()'}
      pcare-cmp-5: {human: Composition.type is expected to include the LOINC code 60591-5 for PS-CA and PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: 'coding.where(system = ''http://loinc.org'' and code = ''60591-5'').exists()'}
    index: 10
    elements:
      coding:
        index: 11
        elements:
          system: {index: 12}
          code: {index: 13}
          display:
            index: 14
            extensions:
              translation: {url: 'http://hl7.org/fhir/StructureDefinition/translation', min: 0, type: Extension, short: Language Translation (Localization), index: 16}
            elements:
              extension:
                index: 15
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    translation:
                      match: {url: null}
                      schema: {type: Extension, short: Language Translation (Localization), url: 'http://hl7.org/fhir/StructureDefinition/translation', index: 16}
                      min: 0
      text: {index: 17}
  title:
    constraint:
      pcare-cmp-6: {human: Composition.title is expected to equal 'Patient Summary - AB' for PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: $this = 'Patient Summary - AB'}
      pcare-cmp-7: {human: 'Composition.title is expected to equal ''Medication administration record'' for ON:IR compatibility.', source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: $this = 'Medication administration record'}
    index: 33
  author:
    type: Reference
    short: Who and/or what authored the patient summary
    refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/organization', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/patient', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner', 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 31
    elements:
      reference: {index: 32}
  extension:
    index: 4
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        Recipients:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-document-recipient', index: 5}
          min: 0
  event:
    index: 47
    elements:
      period:
        index: 48
        elements:
          start: {index: 49}
          end: {index: 50}
      detail:
        index: 51
        elements:
          reference: {index: 52}
    slicing:
      rules: open
      discriminator:
      - {path: code, type: pattern}
      min: null
      slices:
        careProvisioningEvent:
          match:
            code:
              coding:
              - {code: PCPR, system: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
          schema:
            short: The care provisioning being documented
            index: 53
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PCPR, system: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
                index: 54
              period: {index: 55}
            required: [code]
  custodian:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/organization']
    index: 38
    elements:
      reference: {index: 39}
      display:
        constraint:
          pcare-cmp-8: {human: Composition.custodian.display is expected to equal 'Alberta Health' for PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: $this = 'Alberta Health'}
        index: 40
  status: {index: 9}
  identifier:
    index: 6
    elements:
      system: {index: 7}
      value: {index: 8}
  relatesTo:
    index: 41
    elements:
      code: {index: 42}
      target:
        choices: [targetIdentifier, targetReference]
        index: 44
      targetIdentifier: {type: Identifier, choiceOf: target, index: 45}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition']
        index: 46
  subject:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/patient']
    index: 26
    elements:
      reference: {index: 27}
  confidentiality:
    constraint:
      pcare-cmp-1: {human: Composition.confidentiality is expected to equal 'R' for PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition', severity: warning, expression: $this = 'R'}
    index: 34
  text: {index: 3}
package_version: 1.1.0
extensions:
  Recipients: {url: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-document-recipient', min: 0, type: Extension, index: 5}
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.1.0
required: [section, subject]