PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-ips@2.0.0
    http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition
description: This CH IPS profile for the resource Composition is derived from the corresponding CH Core profile and also ensures IPS conformity via the IPS profile referenced by the so-called imposeProfile extension.
package_name: ch.fhir.ig.ch-ips
derivation: constraint
name: ChIpsComposition
type: Composition
elements:
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-patient']
    index: 0
  relatesTo:
    elements:
      target:
        choices: [targetIdentifier, targetReference]
        index: 2
      targetIdentifier: {type: Identifier, choiceOf: target, index: 3}
      targetReference:
        type: Reference
        choiceOf: target
        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition']
        index: 4
  section:
    array: true
    min: 3
    index: 5
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: value}
      min: 3
      slices:
        sectionProblems:
          match:
            code:
              coding:
              - {code: 11450-4, system: 'http://loinc.org'}
          schema:
            _required: true
            index: 14
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 15
              entry:
                index: 16
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    problem:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition']
                        array: true
                        index: 17
                      min: 0
            required: [code]
        sectionPatientStory:
          match:
            code:
              coding:
              - {code: 81338-6, system: 'http://loinc.org'}
          schema:
            index: 72
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 81338-6, system: 'http://loinc.org'}
                index: 73
            required: [code]
        sectionProceduresHx:
          match:
            code:
              coding:
              - {code: 47519-4, system: 'http://loinc.org'}
          schema:
            index: 18
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 19
              entry:
                index: 20
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    procedure:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Procedure-uv-ips']
                        array: true
                        index: 21
                      min: 0
            required: [code]
        sectionPastProblems:
          match:
            code:
              coding:
              - {code: 11348-0, system: 'http://loinc.org'}
          schema:
            index: 40
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11348-0, system: 'http://loinc.org'}
                index: 41
              entry:
                index: 42
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pastProblem:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition']
                        array: true
                        index: 43
                      min: 0
            required: [code]
        sectionPlanOfCare:
          match:
            code:
              coding:
              - {code: 18776-5, system: 'http://loinc.org'}
          schema:
            index: 49
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18776-5, system: 'http://loinc.org'}
                index: 50
              entry:
                index: 51
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    carePlan:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan']
                        array: true
                        index: 52
                      min: 0
                    immunizationRecommendation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-immunization-recommendation']
                        array: true
                        index: 53
                      min: 0
            required: [code]
        sectionMedicalDevices:
          match:
            code:
              coding:
              - {code: 46264-8, system: 'http://loinc.org'}
          schema:
            index: 26
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 27
              entry:
                index: 28
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips']
                        array: true
                        index: 29
                      min: 0
            required: [code]
        sectionSocialHistory:
          match:
            code:
              coding:
              - {code: 29762-2, system: 'http://loinc.org'}
          schema:
            index: 54
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 55
              entry:
                index: 56
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    smokingTobaccoUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-tobaccouse-uv-ips']
                        index: 57
                      min: 0
                      max: 1
                    alcoholUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips']
                        index: 58
                      min: 0
                      max: 1
            required: [code]
        sectionFunctionalStatus:
          match:
            code:
              coding:
              - {code: 47420-5, system: 'http://loinc.org'}
          schema:
            index: 44
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47420-5, system: 'http://loinc.org'}
                index: 45
              entry:
                index: 46
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    disability:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition']
                        array: true
                        index: 47
                      min: 0
                    functionalAssessment:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/ClinicalImpression']
                        array: true
                        index: 48
                      min: 0
            required: [code]
        sectionAllergies:
          match:
            code:
              coding:
              - {code: 48765-2, system: 'http://loinc.org'}
          schema:
            _required: true
            index: 10
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 11
              entry:
                index: 12
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-allergyintolerance']
                        array: true
                        index: 13
                      min: 0
            required: [code]
        sectionPregnancyHx:
          match:
            code:
              coding:
              - {code: 10162-6, system: 'http://loinc.org'}
          schema:
            index: 59
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10162-6, system: 'http://loinc.org'}
                index: 60
              entry:
                index: 61
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    pregnancyStatus:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                        array: true
                        index: 62
                      min: 0
                    pregnancyOutcome:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips']
                        array: true
                        index: 63
                      min: 0
            required: [code]
        sectionAdvanceDirectives:
          match:
            code:
              coding:
              - {code: 42348-3, system: 'http://loinc.org'}
          schema:
            index: 64
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42348-3, system: 'http://loinc.org'}
                index: 65
              entry:
                index: 66
                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: 67
                      min: 0
            required: [code]
        sectionAlerts:
          match:
            code:
              coding:
              - {code: 104605-1, system: 'http://loinc.org'}
          schema:
            index: 68
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 104605-1, system: 'http://loinc.org'}
                index: 69
              entry:
                index: 70
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    alertsFlag:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Flag-alert-uv-ips']
                        array: true
                        index: 71
                      min: 0
            required: [code]
        sectionVitalSigns:
          match:
            code:
              coding:
              - {code: 8716-3, system: 'http://loinc.org'}
          schema:
            index: 36
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 8716-3, system: 'http://loinc.org'}
                index: 37
              entry:
                index: 38
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    vitalSign:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/vitalsigns']
                        array: true
                        index: 39
                      min: 0
            required: [code]
        sectionImmunizations:
          match:
            code:
              coding:
              - {code: 11369-6, system: 'http://loinc.org'}
          schema:
            index: 22
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 23
              entry:
                index: 24
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-immunization']
                        array: true
                        index: 25
                      min: 0
            required: [code]
        sectionResults:
          match:
            code:
              coding:
              - {code: 30954-2, system: 'http://loinc.org'}
          schema:
            index: 30
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 31
              entry:
                index: 32
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: type}
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    results-observation-laboratory-pathology:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-laboratory-pathology-uv-ips']
                        array: true
                        index: 33
                      min: 0
                    results-observation-radiology:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-radiology-uv-ips']
                        array: true
                        index: 34
                      min: 0
                    results-diagnosticReport:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips']
                        array: true
                        index: 35
                      min: 0
            required: [code]
        sectionMedications:
          match:
            code:
              coding:
              - {code: 10160-0, system: 'http://loinc.org'}
          schema:
            _required: true
            index: 6
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10160-0, system: 'http://loinc.org'}
                index: 7
              entry:
                index: 8
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    medicationStatementOrRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationrequest', 'http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationstatement']
                        array: true
                        index: 9
                      min: 0
            required: [code]
package_version: 2.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition
version: 2.0.0