PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-emr@1.0.0-ballot
    http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-composition
description: Swiss Emergency Record based on International Patient Summary
package_name: ch.fhir.ig.ch-emr
derivation: constraint
name: ChEmrComposition
type: Composition
elements:
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-patient']
    index: 0
  author:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-relatedperson', 'http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-organization', 'http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-patient', 'http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-practitioner', 'http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-practitionerrole']
    index: 1
  section:
    array: true
    min: 4
    index: 2
    slicing:
      slices:
        sectionResuscitation:
          match: {}
          schema:
            index: 22
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 100822-6, system: 'http://loinc.org'}
                index: 23
              entry:
                index: 24
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    observation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-observation-resuscitation-status']
                        array: true
                        index: 25
                      min: 0
            required: [code]
        sectionMedicalDevices:
          match: {}
          schema:
            index: 7
            elements:
              entry:
                type: Reference
                refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-deviceusestatement']
                index: 8
                slicing:
                  slices:
                    deviceStatement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-deviceusestatement']
                        index: 8
        sectionEmergencyContacts:
          match: {}
          schema:
            _required: true
            index: 13
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 56864-2, system: 'http://loinc.org'}
                index: 14
              entry:
                index: 15
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    relatedPerson:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-relatedperson']
                        array: true
                        index: 16
                      min: 0
            required: [code]
        sectionCognitiveDisability:
          match: {}
          schema:
            index: 34
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 66610-7, system: 'http://loinc.org'}
                index: 35
              entry:
                index: 36
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    observation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-observation-cognitive-disability']
                        array: true
                        index: 37
                      min: 0
            required: [code]
        sectionRiskFactors:
          match: {}
          schema:
            index: 26
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 46467-7, system: 'http://loinc.org'}
                index: 27
              entry:
                index: 28
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    riskFactor:
                      match: {}
                      schema:
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-flag-risk-to-healthcare-personnel']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 29
                      min: 0
            required: [code]
        sectionPregnancyHx:
          match: {}
          schema:
            index: 9
            elements:
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                index: 10
                slicing:
                  slices:
                    pregnancyStatus:
                      match: {}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips']
                        index: 10
        sectionAdvanceDirectives:
          match: {}
          schema:
            index: 11
            elements:
              entry:
                type: Reference
                refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-documentreference-advance-directive']
                array: true
                index: 12
                slicing:
                  slices:
                    advanceDirective:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-documentreference-advance-directive']
                        array: true
                        index: 12
                      min: 0
        sectionPhysicalDisability:
          match: {}
          schema:
            index: 38
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 96386-8, system: 'http://loinc.org'}
                index: 39
              entry:
                index: 40
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    observation:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-observation-physical-disability']
                        array: true
                        index: 41
                      min: 0
            required: [code]
        sectionOtherDocuments:
          match: {}
          schema:
            index: 30
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55108-5, system: 'http://loinc.org'}
                index: 31
              entry:
                index: 32
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    document:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-documentreference']
                        array: true
                        index: 33
                      min: 0
            required: [code]
        sectionImmunizations:
          match: {}
          schema:
            index: 5
            elements:
              entry:
                type: Reference
                refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-immunization']
                index: 6
                slicing:
                  slices:
                    immunization:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-immunization']
                        index: 6
        sectionCareTeam:
          match: {}
          schema:
            index: 17
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 85847-2, system: 'http://loinc.org'}
                index: 18
              entry:
                index: 19
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    practitioner:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Resource|4.0.1']
                        array: true
                        index: 20
                      min: 0
                    practitionerRole:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Resource|4.0.1']
                        array: true
                        index: 21
                      min: 0
            required: [code]
        sectionMedications:
          match: {}
          schema:
            index: 3
            elements:
              entry:
                type: Reference
                refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-medicationstatement']
                index: 4
                slicing:
                  slices:
                    medicationStatementOrRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-medicationstatement']
                        index: 4
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-composition
base: http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-composition
version: 1.0.0-ballot