PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.psca@2.2.0-ti-ballot
    http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps
description: This profile represents the constraints applied to the Composition resource by the PS-CA project.\nA Canadian Patient Summary (PS-CA) document is an electronic health record extract containing essential healthcare information about a subject of care. It is informed by the IPS-UV Composition profile, but differs in its application of Must Support flags on some of the sections to allow for jurisdictional implementors flexibility in what sections systems Must Support in order to show conformance to their respective patient summaries.\nThe PS-CA dataset is minimal and non-exhaustive; specialty-agnostic and condition-independent; but still clinically relevant. It is informed by the requirements specified in EN 17269 and ISO/DIS 27269, it is designed for supporting the international use case scenario for ‘unplanned, cross border care’, but is also designed to support a variety of use cases for cross-jurisdiction exchange. It is intended to guide implementation nationally while ensuring international exchange of patient summaries is not impeded.\n\nThis profile is based on the ClinicalDocument profile from the base R4 FHIR standard.
package_name: ca.infoway.io.psca
derivation: constraint
name: CompositionPSCA
type: Composition
elements:
  date: {mustSupport: true, index: 7}
  encounter: {index: 6}
  section:
    short: Sections composing the PS
    array: true
    min: 3
    index: 23
    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: 25}
    elements:
      extension:
        index: 24
        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: 25}
              min: 0
      code: {type: CodeableConcept, mustSupport: true, index: 26}
      text: {mustSupport: true, index: 27}
    required: [text, code]
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: 3
      slices:
        sectionProblems:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            constraint:
              ips-comp-1: {human: Either section.entry or emptyReason are present, source: 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Problems Section
            mustSupport: true
            _required: true
            index: 45
            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: 46}
            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: 46
                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: 46}
                      min: 0
              title: {mustSupport: true, index: 47}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 48
              entry:
                short: Clinical problems or conditions currently being monitored for the patient.
                mustSupport: true
                index: 49
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    problem:
                      match: {}
                      schema:
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 50
                      min: 0
              emptyReason: {mustSupport: true, index: 51}
              section: {index: 52}
            required: [title]
        sectionPatientStory:
          match:
            code:
              coding:
              - {code: 81338-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA Patient Story Section
            index: 155
            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: 156}
            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: 156
                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: 156}
                      min: 0
              title: {mustSupport: true, index: 157}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81338-6, system: 'http://loinc.org'}
                index: 158
            required: [title]
        sectionProceduresHx:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Procedures Section
            index: 53
            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: 54}
            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: 54
                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: 54}
                      min: 0
              title: {mustSupport: true, index: 55}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 56
              entry:
                short: Patient past procedures pertinent to the scope of this document.
                mustSupport: true
                index: 57
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    procedure:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/procedure-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 58
                      min: 0
              section: {index: 59}
            required: [title]
        sectionPlanOfCare:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            short: PS-CA Plan of Care Section
            index: 114
            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: 115}
            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: 115
                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: 115}
                      min: 0
              title: {mustSupport: true, index: 116}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 117
              entry:
                short: Optional entry used to represent structured care plans
                mustSupport: true
                index: 118
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    carePlan:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 119
                      min: 0
                    documentReference:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 120
                      min: 0
                    immunizationRecommendation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation']
                        array: true
                        index: 121
                      min: 0
              section: {index: 122}
            required: [title]
        sectionMedicalDevices:
          match:
            code:
              coding:
              - {code: 46264-8, system: 'http://loinc.org'}
          schema:
            short: PS-CA Medical Devices Section
            index: 67
            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: 68}
            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: 68
                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: 68}
                      min: 0
              title: {mustSupport: true, index: 69}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 70
              entry:
                short: Patient history of medical device use.
                mustSupport: true
                index: 71
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 72
                      min: 0
              section: {index: 73}
            required: [title]
        sectionSocialHistory:
          match:
            code:
              coding:
              - {code: 29762-2, system: 'http://loinc.org'}
          schema:
            short: PS-CA Social History Section
            index: 123
            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: 124}
            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: 124
                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: 124}
                      min: 0
              title: {mustSupport: true, index: 125}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 126
              entry:
                short: Health related "lifestyle factors" or "lifestyle observations" (e.g., smoke habits; alcohol consumption; diets, risky habits.)
                mustSupport: true
                index: 127
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    generalSocialHistory:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-socialhistory-ca-ps']
                        array: true
                        index: 128
                      min: 0
                    smokingTobaccoUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-tobaccouse-ca-ps']
                        index: 129
                      min: 0
                      max: 1
                    alcoholUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-alcoholuse-ca-ps']
                        index: 130
                      min: 0
                      max: 1
              section: {index: 131}
            required: [title]
        sectionFunctionalStatus:
          match:
            code:
              coding:
              - {code: 47420-5, system: 'http://loinc.org'}
          schema:
            short: PS-CA Functional Status
            index: 106
            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: 107}
            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: 107
                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: 107}
                      min: 0
              title: {mustSupport: true, index: 108}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47420-5, system: 'http://loinc.org'}
                index: 109
              entry:
                short: Optional entry used to represent disabilities and functional assessments
                mustSupport: true
                index: 110
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    disability:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 111
                      min: 0
                    functionalAssessment:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/StructureDefinition/ClinicalImpression']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 112
                      min: 0
              section: {index: 113}
            required: [title]
        sectionAllergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            constraint:
              ips-comp-1: {human: Either section.entry or emptyReason are present, source: 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Allergies and Intolerances Section
            mustSupport: true
            _required: true
            index: 37
            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: 38}
            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: 38
                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: 38}
                      min: 0
              title: {short: Allergies and Intolerances, mustSupport: true, index: 39}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 40
              entry:
                short: Relevant allergies or intolerances (conditions) for that patient.
                mustSupport: true
                index: 41
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/allergyintolerance-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 42
                      min: 0
              emptyReason: {mustSupport: true, index: 43}
              section: {index: 44}
            required: [title]
        sectionPregnancyHx:
          match:
            code:
              coding:
              - {code: 10162-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Pregnancy Section
            index: 132
            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: 133}
            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: 133
                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: 133}
                      min: 0
              title: {mustSupport: true, index: 134}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10162-6, system: 'http://loinc.org'}
                index: 135
              entry:
                short: Current pregnancy status and, optionally, information about the outcome of earlier pregnancies.
                mustSupport: true
                index: 136
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pregnancyStatus:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 137
                      min: 0
                    pregnancyOutcome:
                      match: {}
                      schema:
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 138
                      min: 0
              section: {index: 139}
            required: [title]
        sectionAdvanceDirectives:
          match:
            code:
              coding:
              - {code: 42348-3, system: 'http://loinc.org'}
          schema:
            short: PS-CA Advance Directives Section
            index: 140
            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: 141}
            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: 141
                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: 141}
                      min: 0
              title: {mustSupport: true, index: 142}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42348-3, system: 'http://loinc.org'}
                index: 143
              entry:
                short: Narrative description of the patient's advance directive.
                mustSupport: true
                index: 144
                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: 145
                      min: 0
                    advanceDirectivesDocumentReference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        array: true
                        index: 146
                      min: 0
              section: {index: 147}
            required: [title]
        sectionFamilyHistory:
          match:
            code:
              coding:
              - {code: 10157-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA Family History Section
            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: {mustSupport: true, index: 150}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10157-6, system: 'http://loinc.org'}
                index: 151
              entry:
                short: Narrative description of the patient's family history.
                mustSupport: true
                index: 152
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    FamilyMemberHistory:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/familymemberhistory-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 153
                      min: 0
              section: {index: 154}
            required: [title]
        sectionVitalSigns:
          match:
            code:
              coding:
              - {code: 8716-3, system: 'http://loinc.org'}
          schema:
            short: PS-CA Vital Signs Section
            label: Vital signs
            index: 83
            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: 84}
            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: 84
                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: 84}
                      min: 0
              title: {mustSupport: true, index: 85}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 8716-3, system: 'http://loinc.org'}
                index: 86
              entry:
                short: Notable vital signs or physical findings.
                mustSupport: true
                index: 87
                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: 97
                      min: 0
                    BodyHeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyheight']
                        array: true
                        index: 90
                      min: 0
                    HeadCircum:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/headcircum']
                        array: true
                        index: 93
                      min: 0
                    HeartRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/heartrate']
                        array: true
                        index: 94
                      min: 0
                    BMI:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bmi']
                        array: true
                        index: 88
                      min: 0
                    BodyTemp:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodytemp']
                        array: true
                        index: 91
                      min: 0
                    OxygenSat:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/oxygensat']
                        array: true
                        index: 95
                      min: 0
                    BodyWeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyweight']
                        array: true
                        index: 92
                      min: 0
                    BP:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bp']
                        array: true
                        index: 89
                      min: 0
                    RespRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/resprate']
                        array: true
                        index: 96
                      min: 0
              section: {index: 98}
            required: [title]
        sectionImmunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA Immunizations Section
            index: 60
            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: 61}
            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: 61
                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: 61}
                      min: 0
              title: {mustSupport: true, index: 62}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 63
              entry:
                short: Patient's immunization status and pertinent history.
                mustSupport: true
                index: 64
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    immunization:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/immunization-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 65
                      min: 0
              section: {index: 66}
            required: [title]
        sectionResults:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            short: PS-CA Results Section
            index: 74
            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: 75}
            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: 75
                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: 75}
                      min: 0
              title: {mustSupport: true, index: 76}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 77
              entry:
                short: Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient.
                mustSupport: true
                index: 78
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    results-observation-laboratory-pathology:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-results-laboratory-pathology-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 79
                      min: 0
                    results-observation-radiology:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-results-radiology-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 80
                      min: 0
                    results-diagnosticReport:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/diagnosticreport-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 81
                      min: 0
              section: {index: 82}
            required: [title]
        sectionMedications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            constraint:
              ips-comp-1: {human: Either section.entry or emptyReason are present, source: 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps', severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Medication Summary Section
            mustSupport: true
            _required: true
            index: 28
            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: 29}
            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: 29
                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: 29}
                      min: 0
              title: {short: Medication Summary section, mustSupport: true, index: 30}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 31
              entry:
                short: Medications relevant for the scope of the patient summary
                mustSupport: true
                index: 32
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    medicationStatement:
                      match: {}
                      schema:
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medicationstatement-ca-ps']
                        type: Reference
                        array: true
                        index: 33
                      min: 0
                    medicationRequest:
                      match: {}
                      schema:
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medicationrequest-ca-ps']
                        type: Reference
                        array: true
                        index: 34
                      min: 0
              emptyReason: {mustSupport: true, index: 35}
              section: {index: 36}
            required: [title]
        sectionPastIllnessHx:
          match:
            code:
              coding:
              - {code: 11348-0, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Past Illness Section
            index: 99
            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: 100}
            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: 100
                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: 100}
                      min: 0
              title: {mustSupport: true, index: 101}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11348-0, system: 'http://loinc.org'}
                index: 102
              entry:
                short: Conditions the patient suffered in the past.
                mustSupport: true
                index: 103
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pastProblem:
                      match: {}
                      schema:
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 104
                      min: 0
              section: {index: 105}
            required: [title]
  attester:
    index: 10
    elements:
      mode: {mustSupport: true, index: 11}
      time: {mustSupport: true, index: 12}
      party:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/organization-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/practitioner-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/practitionerrole-ca-ps', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        index: 13
  type:
    short: Kind of composition ("Patient Summary")
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 60591-5, system: 'http://loinc.org'}
    index: 3
  title: {short: CA Patient Summary, mustSupport: true, index: 9}
  author:
    type: Reference
    short: Who and/or what authored the patient summary
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/organization-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/practitioner-ca-ps', 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/practitionerrole-ca-ps', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 8
  event:
    index: 19
    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: 20
            elements:
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PCPR, system: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
                index: 21
              period: {mustSupport: true, index: 22}
            required: [code]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/organization-ca-ps']
    index: 14
  status: {mustSupport: true, index: 2}
  identifier: {mustSupport: true, index: 1}
  relatesTo:
    elements:
      target:
        choices: [targetIdentifier, targetReference]
        index: 16
      targetIdentifier: {type: Identifier, choiceOf: target, index: 17}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps', 'http://hl7.org/fhir/StructureDefinition/Composition']
        index: 18
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps']
    index: 4
    elements:
      reference: {mustSupport: true, index: 5}
    required: [reference]
  text: {mustSupport: true, index: 0}
package_version: 2.2.0-ti-ballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 2.2.0
required: [subject]