PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-ips@1.0.0-ballot
    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:
      slices:
        sectionProblems:
          match: {}
          schema:
            _required: true
            index: 15
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11450-4, system: 'http://loinc.org'}
                index: 16
              entry:
                index: 17
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    problem:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-condition']
                        array: true
                        min: 1
                        _required: true
                        index: 18
                      min: 1
            required: [entry, code]
        sectionProceduresHx:
          match: {}
          schema:
            index: 19
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 47519-4, system: 'http://loinc.org'}
                index: 20
              entry:
                index: 21
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    procedure:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Procedure-uv-ips']
                        array: true
                        min: 1
                        _required: true
                        index: 22
                      min: 1
            required: [entry, code]
        sectionPlanOfCare:
          match: {}
          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
            required: [code]
        sectionMedicalDevices:
          match: {}
          schema:
            index: 27
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46264-8, system: 'http://loinc.org'}
                index: 28
              entry:
                index: 29
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips']
                        array: true
                        min: 1
                        _required: true
                        index: 30
                      min: 1
            required: [entry, code]
        sectionSocialHistory:
          match: {}
          schema:
            index: 53
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 29762-2, system: 'http://loinc.org'}
                index: 54
              entry:
                index: 55
                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: 56
                      min: 0
                      max: 1
                    alcoholUse:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips']
                        index: 57
                      min: 0
                      max: 1
            required: [code]
        sectionFunctionalStatus:
          match: {}
          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: {}
          schema:
            _required: true
            index: 11
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48765-2, system: 'http://loinc.org'}
                index: 12
              entry:
                index: 13
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    allergyOrIntolerance:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-allergyintolerance']
                        array: true
                        min: 1
                        _required: true
                        index: 14
                      min: 1
            required: [entry, code]
        sectionPregnancyHx:
          match: {}
          schema:
            index: 58
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 10162-6, system: 'http://loinc.org'}
                index: 59
              entry:
                index: 60
                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: 61
                      min: 0
                    pregnancyOutcomeSummary:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips']
                        array: true
                        index: 62
                      min: 0
            required: [code]
        sectionAdvanceDirectives:
          match: {}
          schema:
            index: 63
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 42348-3, system: 'http://loinc.org'}
                index: 64
              entry:
                index: 65
                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: 66
                      min: 0
            required: [code]
        sectionVitalSigns:
          match: {}
          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: {}
          schema:
            index: 23
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11369-6, system: 'http://loinc.org'}
                index: 24
              entry:
                index: 25
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-immunization']
                        array: true
                        min: 1
                        _required: true
                        index: 26
                      min: 1
            required: [entry, code]
        sectionResults:
          match: {}
          schema:
            index: 31
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 30954-2, system: 'http://loinc.org'}
                index: 32
              entry:
                index: 33
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: type}
                  - {path: resolve(), type: profile}
                  min: 1
                  slices:
                    resultsObservation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-uv-ips']
                        array: true
                        index: 34
                      min: 0
                    resultsDiagnosticReport:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips']
                        array: true
                        index: 35
                      min: 0
            required: [entry, code]
        sectionMedications:
          match: {}
          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: 1
                  slices:
                    medicationStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationstatement']
                        array: true
                        index: 9
                      min: 0
                    medicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-medicationrequest']
                        array: true
                        index: 10
                      min: 0
            required: [entry, code]
        sectionPastIllnessHx:
          match: {}
          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]
package_version: 1.0.0-ballot
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-epr
version: 1.0.0-ballot