PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.psca@2.0.3-DFT-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.\r\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.\r\nThe PS-CA dataset is minimal and non-exhaustive; specialty-agnostic and condition-independent; but still clinically relevant. Its 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.\r\n\r\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
    mustSupport: true
    index: 26
    extensions:
      section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 28}
    elements:
      extension:
        index: 27
        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: 28}
              min: 0
              max: 1
      code: {type: CodeableConcept, mustSupport: true, index: 29}
      text: {mustSupport: true, index: 30}
      emptyReason: {index: 31}
    required: [text, code]
    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:
              ips-comp-1: {human: Either section.entry or emptyReason are present, severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Problems Section
            mustSupport: true
            _required: true
            index: 47
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 48}
            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: 48
                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: 48}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 49}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 50
              entry:
                short: Clinical problems or conditions currently being monitored for the patient.
                mustSupport: true
                index: 51
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    problem:
                      match: {}
                      schema:
                        type: Reference
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        index: 52
              section: {index: 53}
            required: [title, code]
        sectionProceduresHx:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Procedures Section
            index: 54
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 55}
            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: 55
                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: 55}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 56}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 57
              entry:
                short: Patient past procedures pertinent to the scope of this document.
                mustSupport: true
                index: 58
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    procedure:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/procedure-ca-ps']
                        index: 59
              section: {index: 60}
            required: [title, code]
        sectionPlanOfCare:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            short: PS-CA Plan of Care Section
            index: 115
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 116}
            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: 116
                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: 116}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 117}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 118
              entry:
                short: Optional entry used to represent structured care plans
                mustSupport: true
                index: 119
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    carePlan:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan']
                        index: 120
                    documentReference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        index: 121
              section: {index: 122}
            required: [title, code]
        sectionMedicalDevices:
          match:
            code:
              coding:
              - {code: 46264-8, system: 'http://loinc.org'}
          schema:
            short: PS-CA Medical Devices Section
            index: 68
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 69}
            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: 69
                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: 69}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 70}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 71
              entry:
                short: Patient history of medical device use.
                mustSupport: true
                index: 72
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips']
                        index: 73
              section: {index: 74}
            required: [title, code]
        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, max: 1, 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
                      max: 1
              title: {mustSupport: true, index: 125}
              code:
                mustSupport: true
                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']
                        index: 128
                    smokingTobaccoUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-tobaccouse-ca-ps']
                        index: 129
                      max: 1
                    alcoholUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-alcoholuse-ca-ps']
                        index: 130
                      max: 1
              section: {index: 131}
            required: [title, code]
        sectionFunctionalStatus:
          match:
            code:
              coding:
              - {code: 47420-5, system: 'http://loinc.org'}
          schema:
            short: PS-CA Functional Status
            index: 107
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 108}
            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: 108
                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: 108}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 109}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47420-5, system: 'http://loinc.org'}
                index: 110
              entry:
                short: Optional entry used to represent disabilities and functional assessments
                mustSupport: true
                index: 111
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    disability:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        index: 112
                    functionalAssessment:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/StructureDefinition/ClinicalImpression']
                        index: 113
              section: {index: 114}
            required: [title, code]
        sectionAllergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            constraint:
              ips-comp-1: {human: Either section.entry or emptyReason are present, severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Allergies and Intolerances Section
            mustSupport: true
            _required: true
            index: 40
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 41}
            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: 41
                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: 41}
                      min: 0
                      max: 1
              title: {short: Allergies and Intolerances, mustSupport: true, index: 42}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 43
              entry:
                short: Relevant allergies or intolerances (conditions) for that patient.
                mustSupport: true
                index: 44
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        type: Reference
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/allergyintolerance-ca-ps']
                        index: 45
              section: {index: 46}
            required: [title, code]
        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, max: 1, 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
                      max: 1
              title: {mustSupport: true, index: 134}
              code:
                mustSupport: true
                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:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                        index: 137
                    pregnancyOutcomeSummary:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips']
                        index: 138
              section: {index: 139}
            required: [title, code]
        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, max: 1, 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
                      max: 1
              title: {mustSupport: true, index: 142}
              code:
                mustSupport: true
                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']
                        index: 145
                    advanceDirectivesDocumentReference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                        index: 146
              section: {index: 147}
            required: [title, code]
        sectionFamilyHistory:
          match:
            code:
              coding:
              - {code: 10157-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA Family History Section
            index: 148
            elements:
              title: {mustSupport: true, index: 149}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10157-6, system: 'http://loinc.org'}
                index: 150
              entry:
                short: Narrative description of the patient's family history.
                mustSupport: true
                index: 151
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    FamilyMemberHistory:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/familymemberhistory-ca-ps']
                        index: 152
              section: {index: 153}
            required: [title, code]
        sectionVitalSigns:
          match:
            code:
              coding:
              - {code: 8716-3, system: 'http://loinc.org'}
          schema:
            short: PS-CA Vital Signs Section
            label: Vital signs
            index: 84
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 85}
            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: 85
                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: 85}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 86}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 8716-3, system: 'http://loinc.org'}
                index: 87
              entry:
                short: Notable vital signs or physical findings.
                mustSupport: true
                index: 88
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    VitalsPanel:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/vitalspanel']
                        index: 98
                    BodyHeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyheight']
                        index: 91
                    HeadCircum:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/headcircum']
                        index: 94
                    HeartRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/heartrate']
                        index: 95
                    BMI:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bmi']
                        index: 89
                    BodyTemp:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodytemp']
                        index: 92
                    OxygenSat:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/oxygensat']
                        index: 96
                    BodyWeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bodyweight']
                        index: 93
                    BP:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/bp']
                        index: 90
                    RespRate:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/resprate']
                        index: 97
              section: {index: 99}
            required: [title, code]
        sectionImmunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            short: PS-CA Immunizations Section
            index: 61
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 62}
            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: 62
                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: 62}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 63}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 64
              entry:
                short: Patient's immunization status and pertinent history.
                mustSupport: true
                index: 65
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/immunization-ca-ps']
                        index: 66
              section: {index: 67}
            required: [title, code]
        sectionResults:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            short: PS-CA Results Section
            index: 75
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 76}
            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: 76
                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: 76}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 77}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 78
              entry:
                short: Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient.
                mustSupport: true
                index: 79
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    results-observation-laboratory-pathology:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-results-laboratory-pathology-ca-ps']
                        array: true
                        index: 80
                      min: 0
                    results-observation-radiology:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-results-radiology-ca-ps']
                        array: true
                        index: 81
                      min: 0
                    results-diagnosticReport:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/diagnosticreport-ca-ps']
                        index: 82
              section: {index: 83}
            required: [title, code]
        sectionMedications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            constraint:
              ips-comp-1: {human: Either section.entry or emptyReason are present, severity: error, expression: (entry.reference.exists() or emptyReason.exists())}
            short: PS-CA Medication Summary Section
            mustSupport: true
            _required: true
            index: 32
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 33}
            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: 33
                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: 33}
                      min: 0
                      max: 1
              title: {short: Medication Summary section, mustSupport: true, index: 34}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 35
              entry:
                short: Medications relevant for the scope of the patient summary
                mustSupport: true
                index: 36
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    medicationStatement:
                      match: {}
                      schema:
                        type: Reference
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medicationstatement-ca-ps']
                        index: 37
                    medicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        short: A reference to data that supports this section
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medicationrequest-ca-ps']
                        index: 38
              section: {index: 39}
            required: [title, code]
        sectionPastIllnessHx:
          match:
            code:
              coding:
              - {code: 11348-0, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Past Illness Section
            index: 100
            extensions:
              section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, max: 1, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 101}
            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: 101
                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: 101}
                      min: 0
                      max: 1
              title: {mustSupport: true, index: 102}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11348-0, system: 'http://loinc.org'}
                index: 103
              entry:
                short: Conditions the patient suffered in the past.
                mustSupport: true
                index: 104
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pastProblem:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps']
                        index: 105
              section: {index: 106}
            required: [title, code]
  attester:
    index: 11
    elements:
      mode: {mustSupport: true, index: 12}
      time: {mustSupport: true, index: 13}
      party:
        type: Reference
        mustSupport: true
        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole']
        index: 14
  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/patient-ca-ps', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole']
    index: 8
  event:
    index: 22
    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: 23
            elements:
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PCPR, system: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
                index: 24
              period: {mustSupport: true, index: 25}
            required: [code]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization']
    index: 15
  status: {mustSupport: true, index: 2}
  identifier: {mustSupport: true, index: 1}
  relatesTo:
    index: 16
    elements:
      code: {index: 17}
      target:
        choices: [targetIdentifier, targetReference]
        index: 19
      targetIdentifier: {type: Identifier, choiceOf: target, index: 20}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps', 'http://hl7.org/fhir/StructureDefinition/Composition']
        index: 21
  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]
  confidentiality: {index: 10}
  text: {mustSupport: true, index: 0}
package_version: 2.0.3-DFT-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: null
required: [section, subject, type]