PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh@setp-1.0.35
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-composition
description: This profile defines a set of constraints to the FHIR Composition resource for use in Ontario Patient Summaries (PS-ON).  It refines 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 MS 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.on.oh
derivation: constraint
name: CompositionPSON
type: Composition
elements:
  category:
    mustSupport: true
    index: 8
    extensions:
      ext-LOINC-ontology-axis: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', max: 1, type: Extension, isModifier: false, index: 9}
    elements:
      extension:
        type: Extension
        isModifier: false
        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
        index: 9
        slicing:
          slices:
            ext-LOINC-ontology-axis:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', index: 9}
              max: 1
      coding:
        mustSupport: true
        index: 10
        elements:
          system: {mustSupport: true, index: 11}
          code: {mustSupport: true, index: 12}
          display: {mustSupport: true, index: 13}
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        sliceCategory-type-of-service:
          match: {}
          schema:
            mustSupport: true
            index: 14
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 16
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74478-9}
                        index: 17
                      display:
                        pattern: {type: String, value: Type of Service}
                        index: 18
            elements:
              extension:
                index: 15
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 16
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74478-9}
                                index: 17
                              display:
                                pattern: {type: String, value: Type of Service}
                                index: 18
              coding:
                mustSupport: true
                index: 19
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 20
                  code: {mustSupport: true, index: 21}
                  display:
                    pattern: {type: String, value: Patient summary}
                    mustSupport: true
                    index: 22
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-kind-of-document:
          match: {}
          schema:
            mustSupport: true
            index: 23
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 25
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74477-1}
                        index: 26
                      display:
                        pattern: {type: String, value: Kind of document}
                        index: 27
            elements:
              extension:
                index: 24
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 25
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74477-1}
                                index: 26
                              display:
                                pattern: {type: String, value: Kind of document}
                                index: 27
              coding:
                mustSupport: true
                index: 28
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 29
                  code:
                    pattern: {type: Code, value: LP173418-7}
                    mustSupport: true
                    index: 30
                  display:
                    pattern: {type: String, value: Note}
                    mustSupport: true
                    index: 31
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-subject-matter-domain:
          match: {}
          schema:
            mustSupport: true
            index: 32
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 34
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74480-5}
                        index: 35
                      display:
                        pattern: {type: String, value: Subject matter domain}
                        index: 36
            elements:
              extension:
                index: 33
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 34
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74480-5}
                                index: 35
                              display:
                                pattern: {type: String, value: Subject matter domain}
                                index: 36
              coding:
                mustSupport: true
                index: 37
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 38
                  code:
                    pattern: {type: Code, value: CGTA1009-1}
                    mustSupport: true
                    index: 39
                  display:
                    pattern: {type: String, value: Unspecified}
                    mustSupport: true
                    index: 40
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-role:
          match: {}
          schema:
            index: 41
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 43
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74479-7}
                        index: 44
                      display:
                        pattern: {type: String, value: Role}
                        index: 45
            elements:
              extension:
                index: 42
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 43
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74479-7}
                                index: 44
                              display:
                                pattern: {type: String, value: Role}
                                index: 45
              coding:
                mustSupport: true
                index: 46
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 47
                  code:
                    pattern: {type: Code, value: CGTA4001-1}
                    mustSupport: true
                    index: 48
                  display:
                    pattern: {type: String, value: Unspecified}
                    mustSupport: true
                    index: 49
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-setting:
          match: {}
          schema:
            mustSupport: true
            index: 50
            extensions:
              ext-LOINC-ontology-axis: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', min: 1, max: 1, type: Extension, isModifier: false, mustSupport: true, index: 52}
            elements:
              extension:
                index: 51
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', index: 52}
                      min: 1
                      max: 1
              coding:
                mustSupport: true
                index: 53
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 54
                  code:
                    pattern: {type: Code, value: CGTA5001-1}
                    mustSupport: true
                    index: 55
                  display:
                    pattern: {type: String, value: Unspecified}
                    mustSupport: true
                    index: 56
                required: [display, system, code]
            required: [extension, coding]
  date: {mustSupport: true, index: 60}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
    required: [profile]
  encounter: {index: 59}
  section:
    short: Sections composing the PS
    mustSupport: true
    index: 77
    elements:
      code:
        type: CodeableConcept
        mustSupport: true
        index: 78
        elements:
          coding:
            elements:
              display:
                extensions:
                  translation:
                    url: null
                    index: 79
                    extensions: {}
                    elements:
                      extension: {array: true, min: 2, index: 80}
                elements:
                  extension:
                    index: 79
                    slicing:
                      slices:
                        translation:
                          match: {}
                          schema:
                            index: 79
                            extensions: {}
                            elements:
                              extension: {array: true, min: 2, index: 80}
      text: {mustSupport: true, index: 81}
    required: [text, code]
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: pattern}
      min: 1
      slices:
        sectionMedications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            short: PS-ON Medication Summary Section
            mustSupport: true
            _required: true
            index: 82
            elements:
              title: {short: Medication Summary section, mustSupport: true, index: 83}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 84
              text: {mustSupport: true, index: 85}
              entry:
                short: Medications relevant for the scope of the patient summary
                mustSupport: true
                index: 86
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    medicationInformation:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-medicationrequest', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-medicationstatement']
                        _required: true
                        index: 87
                      min: 1
              emptyReason: {mustSupport: false, index: 88}
              section: {mustSupport: false, index: 89}
            required: [entry, text, title, code]
        sectionAllergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            short: PS-ON Allergies and Intolerances Section
            mustSupport: true
            _required: true
            index: 90
            elements:
              title: {mustSupport: true, index: 91}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 92
              text: {mustSupport: true, index: 93}
              entry:
                short: Relevant allergies or intolerances (conditions) for that patient.
                mustSupport: true
                index: 94
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-allergyintolerance']
                        _required: true
                        index: 95
                      min: 1
              emptyReason: {mustSupport: false, index: 96}
              section: {mustSupport: false, index: 97}
            required: [entry, text, title, code]
        sectionProblems:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            short: PS-ON Problems Section
            mustSupport: true
            _required: true
            index: 98
            elements:
              title: {mustSupport: true, index: 99}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 100
              text: {mustSupport: true, index: 101}
              entry:
                short: Clinical problems or conditions currently being monitored for the patient.
                mustSupport: true
                index: 102
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    problem:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-condition']
                        _required: true
                        index: 103
                      min: 1
              emptyReason: {mustSupport: false, index: 104}
              section: {mustSupport: false, index: 105}
            required: [entry, text, title, code]
        sectionProceduresHx:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            short: PS-ON History of Procedures Section
            mustSupport: true
            index: 106
            elements:
              title: {mustSupport: true, index: 107}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 108
              text: {mustSupport: true, index: 109}
              entry:
                short: Patient past procedures pertinent to the scope of this document.
                mustSupport: true
                index: 110
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    procedure:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-procedure']
                        _required: true
                        index: 111
                      min: 1
              emptyReason: {mustSupport: false, index: 112}
              section: {mustSupport: false, index: 113}
            required: [entry, text, title, code]
        sectionImmunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            short: PS-ON Immunizations Section
            mustSupport: true
            index: 114
            elements:
              title: {mustSupport: true, index: 115}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 116
              text: {mustSupport: true, index: 117}
              entry:
                short: Patient's immunization status and pertinent history.
                mustSupport: true
                index: 118
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-immunization']
                        _required: true
                        index: 119
                      min: 1
              emptyReason: {mustSupport: false, index: 120}
              section: {mustSupport: false, index: 121}
            required: [entry, text, title, code]
        sectionPastIllnessHx:
          match:
            code:
              coding:
              - {code: 11348-0, system: 'http://loinc.org'}
          schema:
            short: PS-CA History of Past Illness Section
            mustSupport: true
            index: 122
            elements:
              title: {mustSupport: true, index: 123}
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11348-0, system: 'http://loinc.org'}
                index: 124
              text: {mustSupport: true, index: 125}
              entry:
                short: Conditions the patient suffered in the past.
                mustSupport: true
                index: 126
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    pastProblem:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-condition']
                        _required: true
                        index: 127
                      min: 1
              emptyReason: {mustSupport: false, index: 128}
              section: {mustSupport: false, index: 129}
            required: [entry, text, title, code]
  attester:
    mustSupport: true
    index: 65
    elements:
      mode: {mustSupport: true, index: 66}
      time: {mustSupport: true, index: 67}
      party:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-practitionerrole']
        index: 68
    required: [party]
  type:
    short: Kind of composition ("Patient Summary")
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 60591-5, system: 'http://loinc.org'}
    index: 7
  title: {short: Ontario Patient Summary, mustSupport: true, index: 64}
  author:
    short: Who and/or what authored the patient summary
    mustSupport: true
    index: 61
    slicing:
      rules: open
      discriminator:
      - {path: resolve(), type: profile}
      min: null
      slices:
        authorPSON:
          match: {}
          schema:
            type: Reference
            short: Who and/or what authored the patient summary
            mustSupport: true
            refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-practitionerrole']
            index: 62
        DevicePSON:
          match: {}
          schema:
            type: Reference
            short: Who and/or what authored the patient summary
            mustSupport: true
            refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-device']
            index: 63
  event:
    index: 70
    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: 71
            elements:
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PCPR, system: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
                index: 72
                elements:
                  coding:
                    index: 73
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActClass'}
                        index: 74
                      code:
                        pattern: {type: Code, value: PCPR}
                        index: 75
                    required: [system, code]
                required: [coding]
              period: {mustSupport: true, index: 76}
            required: [code]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-organization']
    index: 69
  status: {mustSupport: true, index: 6}
  identifier:
    mustSupport: true
    index: 3
    elements:
      system: {mustSupport: true, index: 4}
      value: {mustSupport: true, index: 5}
    required: [value, system]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-patient']
    index: 57
    elements:
      reference: {mustSupport: true, index: 58}
    required: [reference]
  text: {mustSupport: true, index: 2}
package_version: setp-1.0.35
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.12.0
required: [attester, section, identifier, subject, meta, custodian]