PackagesCanonicalsLogsProblems
    Packages
    rs/ch.fhir.ig.ch@epreg-1.0.0-ballot
    http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-composition
description: This profile constrains the Composition resource to represent the the first entry in the CH EPREG Document.
package_name: rs/ch.fhir.ig.ch
derivation: constraint
name: ChEpregComposition
type: Composition
elements:
  type:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '736377005', system: 'http://snomed.info/sct'}
    type: CodeableConcept
    index: 0
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-patient-mother']
    index: 1
  section:
    index: 2
    slicing:
      slices:
        coreData:
          match: {}
          schema:
            index: 2
            elements:
              title: {index: 3}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 86638-4, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 4
              text: {index: 5}
              entry: {index: 6}
              section:
                index: 7
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: code, type: value}
                  min: null
                  slices:
                    insurance:
                      match:
                        code:
                          coding:
                          - {code: 35525-5, system: 'http://loinc.org'}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        index: 8
                        elements:
                          title: {index: 9}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 35525-5, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 10
                          text: {index: 11}
                          entry:
                            type: Reference
                            mustSupport: true
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-coverage']
                            index: 12
                            elements:
                              reference: {index: 13}
                            required: [reference]
                          section: {index: 14}
                        required: [code, text, title]
                    parent:
                      match:
                        code:
                          coding:
                          - {code: 54136-7, system: 'http://loinc.org'}
                      schema:
                        type: BackboneElement
                        index: 15
                        elements:
                          title: {index: 16}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 54136-7, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 17
                          text: {index: 18}
                          entry:
                            type: Reference
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-relatedperson-parent']
                            index: 19
                            elements:
                              reference: {index: 20}
                            required: [reference]
                          section: {index: 21}
                        required: [code, text, title]
                    careTeam:
                      match:
                        code:
                          coding:
                          - {code: 85847-2, system: 'http://loinc.org'}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        index: 22
                        elements:
                          title: {index: 23}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 85847-2, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 24
                          text: {index: 25}
                          entry:
                            type: Reference
                            mustSupport: true
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-practitionerrole-thcp']
                            index: 26
                            elements:
                              reference: {index: 27}
                            required: [reference]
                          section: {index: 28}
                        required: [code, text, title]
            required: [code, title]
        lab-subsections:
          match: {}
          schema:
            short: Based on the section of the exchange format for Swiss laboratory reports (https://fhir.ch/ig/ch-lab-report/StructureDefinition-ch-lab-report-composition.html)
            index: 29
            elements:
              title: {index: 30}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 26436-6, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 31
              text: {index: 32}
              entry: {index: 33}
              section:
                type: BackboneElement
                index: 34
                elements:
                  code:
                    binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'}
                    index: 35
                required: [code]
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: code, type: value}
                  min: null
                  slices:
                    bloodBankStudies:
                      match:
                        code:
                          coding:
                          - {code: 18717-9, system: 'http://loinc.org'}
                      schema:
                        index: 36
                        elements:
                          title: {index: 37}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 18717-9, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 38
                          text: {index: 39}
                          entry:
                            type: Reference
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-results-lab']
                            index: 40
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: resolve(), type: profile}
                              min: null
                              slices:
                                bloodGroup:
                                  match: {}
                                  schema:
                                    refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-blood-group']
                                    type: Reference
                                    mustSupport: true
                                    array: true
                                    index: 41
                                    elements:
                                      reference: {index: 42}
                                    required: [reference]
                                fetalRhD:
                                  match: {}
                                  schema:
                                    type: Reference
                                    mustSupport: true
                                    refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-fetal-rhd']
                                    array: true
                                    index: 43
                                    elements:
                                      reference: {index: 44}
                                    required: [reference]
                          section: {index: 45}
                        required: [text, title]
                    chemistryStudies:
                      match:
                        code:
                          coding:
                          - {code: 18719-5, system: 'http://loinc.org'}
                      schema:
                        index: 46
                        elements:
                          title: {index: 47}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 18719-5, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 48
                          text: {index: 49}
                          entry:
                            type: Reference
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-results-lab']
                            index: 50
                            elements:
                              reference: {index: 51}
                            required: [reference]
                          section: {index: 52}
                        required: [text, title]
                    hematologyStudies:
                      match:
                        code:
                          coding:
                          - {code: 18723-7, system: 'http://loinc.org'}
                      schema:
                        index: 53
                        elements:
                          title: {index: 54}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 18723-7, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 55
                          text: {index: 56}
                          entry:
                            type: Reference
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-results-lab']
                            index: 57
                            elements:
                              reference: {index: 58}
                            required: [reference]
                          section: {index: 59}
                        required: [text, title]
                    microbiologyStudies:
                      match:
                        code:
                          coding:
                          - {code: 18725-2, system: 'http://loinc.org'}
                      schema:
                        index: 60
                        elements:
                          title: {index: 61}
                          code:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 18725-2, system: 'http://loinc.org'}
                            type: CodeableConcept
                            index: 62
                          text: {index: 63}
                          entry:
                            type: Reference
                            refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-results-lab']
                            index: 64
                            elements:
                              reference: {index: 65}
                            required: [reference]
                          section: {index: 66}
                        required: [text, title]
            required: [code, title]
        pregProgress:
          match: {}
          schema:
            index: 67
            elements:
              title: {index: 68}
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 57059-8, system: 'http://loinc.org'}
                type: CodeableConcept
                index: 69
              text: {index: 70}
              entry:
                type: Reference
                short: Observations representing further examinations and questions can be added as additional entries. See also 'Mapping Laboratory Results'.
                refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-encounter-child', 'http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-encounter-mother', 'http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-preg-progress']
                index: 71
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    abdominalCircumference:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-abdominal-circumference']
                        array: true
                        index: 84
                        elements:
                          reference: {index: 85}
                        required: [reference]
                    bloodPressure:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-blood-pressure']
                        array: true
                        index: 80
                        elements:
                          reference: {index: 81}
                        required: [reference]
                    urineFinding:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-urine-finding']
                        array: true
                        index: 82
                        elements:
                          reference: {index: 83}
                        required: [reference]
                    bodyWeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-body-weight']
                        array: true
                        index: 76
                        elements:
                          reference: {index: 77}
                        required: [reference]
                    fundusHeight:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-fundus-height']
                        array: true
                        index: 86
                        elements:
                          reference: {index: 87}
                        required: [reference]
                    fetalPosition:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-fetal-position']
                        array: true
                        index: 94
                        elements:
                          reference: {index: 95}
                        required: [reference]
                    weightGain:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-weight-gain']
                        array: true
                        index: 78
                        elements:
                          reference: {index: 79}
                        required: [reference]
                    fetalHeartFeature:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-fetal-heart-feature']
                        array: true
                        index: 92
                        elements:
                          reference: {index: 93}
                        required: [reference]
                    fetalMovement:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-fetal-movement']
                        array: true
                        index: 90
                        elements:
                          reference: {index: 91}
                        required: [reference]
                    vaginaFeature:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-vagina-feature']
                        array: true
                        index: 88
                        elements:
                          reference: {index: 89}
                        required: [reference]
                    gestationalAge:
                      match: {}
                      schema:
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-observation-gestational-age-in-days']
                        type: Reference
                        mustSupport: true
                        array: true
                        index: 74
                        elements:
                          reference: {index: 75}
                        required: [reference]
                    pregVisit:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-encounter-child', 'http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-encounter-mother']
                        array: true
                        index: 72
                        elements:
                          reference: {index: 73}
                        required: [reference]
              section: {index: 96}
            required: [code, text, title]
package_version: epreg-1.0.0-ballot
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epreg/StructureDefinition/ch-epreg-composition
base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr
version: 1.0.0-ballot