PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.laboratory@1.0.0-ballot.1
    https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp
description: Dieses Profil bildet eine Laboruntersuchung ab.\n\nLaboruntersuchungen können als Messung oder als Berechnung erfolgen.\n\nEine Laboruntersuchung als Messung beschreibt die quantitative oder qualitative Untersuchung eines spezifischen Laborparameters in einem definierten Probenmaterial; z. B. die Untersuchung des Hämoglobin-(Hb-)Werts als Konzentration im Blut. Der Bezug zur Probe, anhand derer die Messung vorgenommen wurde, muss erkennbar sein.\n\nBerechnete Laborergebnisse können auf Messungen basieren, z.B. kann die berechnete GFR (glomeruläre Filtrationsrate) auf einem gemessenen Kreatinin-Wert im Serum basieren.
package_name: de.gematik.epa.laboratory
derivation: constraint
name: ObservationLaboratoryStudydgLP
type: Observation
elements:
  category:
    array: true
    max: 2
    index: 58
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: $this, type: pattern}
      min: null
      max: 2
      slices:
        laboratory:
          match: {}
          schema:
            index: 59
            elements:
              coding:
                elements:
                  system: {index: 60}
                  code: {index: 61}
                  display: {index: 62}
                  userSelected: {index: 63}
                required: [display, system, code]
              text: {index: 64}
        studyType:
          match: {}
          schema:
            index: 65
            elements:
              coding:
                elements:
                  system: {index: 66}
                  code: {index: 67}
                  display: {index: 68}
                  userSelected: {index: 69}
                required: [display, system, code]
        specialty:
          match: {}
          schema: {index: 70}
          max: 0
  referenceRange:
    constraint:
      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
    index: 186
    extensions: {}
    elements:
      extension: {index: 187}
      low:
        pattern:
          type: Quantity
          value: {system: 'http://unitsofmeasure.org'}
        index: 188
        elements:
          value: {index: 189}
          unit: {index: 190}
          system: {index: 191}
          code: {index: 192}
        required: [value, unit, system, code]
      high:
        pattern:
          type: Quantity
          value: {system: 'http://unitsofmeasure.org'}
        index: 193
        elements:
          value: {index: 194}
          unit: {index: 195}
          system: {index: 196}
          code: {index: 197}
        required: [value, unit, system, code]
      type:
        index: 198
        elements:
          coding:
            elements:
              system: {index: 199}
              code: {index: 200}
              display: {index: 201}
              userSelected: {index: 202}
            required: [display, system, code]
      appliesTo:
        elements:
          coding:
            elements:
              system: {index: 203}
              code: {index: 204}
              display: {index: 205}
              userSelected: {index: 206}
            required: [display, system, code]
      age: {index: 207}
    required: [type]
  value[x]:
    elements:
      coding:
        index: 137
        elements:
          system: {index: 138}
          code: {index: 139}
          display: {index: 140}
        required: [display, system, code]
        slicing:
          slices:
            snomed:
              match: {}
              schema:
                index: 141
                elements:
                  system: {index: 142}
                  version: {index: 143}
                  code: {index: 144}
                  display: {index: 145}
                  userSelected: {index: 146}
                required: [version, display, system, code]
  derivedFrom:
    type: Reference
    refers: ['https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp']
    index: 208
    elements:
      reference: {index: 209}
      type: {index: 210}
      identifier: {index: 211}
      display: {index: 212}
    required: [reference]
  interpretation:
    elements:
      coding:
        index: 153
        elements:
          system: {index: 154}
          code: {index: 155}
          display: {index: 156}
        required: [display, system, code]
        slicing:
          slices:
            hl7Interpretation:
              match: {}
              schema:
                index: 157
                elements:
                  system: {index: 158}
                  code: {index: 159}
                  display: {index: 160}
                  userSelected: {index: 161}
                required: [display, system, code]
            snomed:
              match: {}
              schema:
                index: 162
                elements:
                  system: {index: 163}
                  version: {index: 164}
                  code: {index: 165}
                  display: {index: 166}
                  userSelected: {index: 167}
                required: [version, display, system, code]
  encounter: {index: 80}
  method:
    elements:
      coding:
        elements:
          system: {index: 172}
          code: {index: 173}
          display: {index: 174}
          userSelected: {index: 175}
        required: [display, system, code]
  specimen:
    type: Reference
    refers: ['https://gematik.de/fhir/epa-laboratory/StructureDefinition/specimen-dglp']
    index: 176
    elements:
      reference: {index: 177}
      type: {index: 178}
      identifier: {index: 179}
      display: {index: 180}
    required: [reference]
  valueQuantity:
    type: Quantity
    short: Ergebniswert als Quantität
    pattern:
      type: Quantity
      value: {system: 'http://unitsofmeasure.org'}
    choiceOf: value
    index: 98
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            type: Quantity
            short: Ergebniswert als Quantität
            pattern:
              type: Quantity
              value: {system: 'http://unitsofmeasure.org'}
            choiceOf: value
            index: 98
  value:
    choices: [valueCodeableConcept]
    index: 135
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            choices: [valueCodeableConcept]
            index: 135
  valueString:
    type: string
    short: Textergebnis als Freitext
    choiceOf: value
    index: 106
    slicing:
      slices:
        valueString:
          match: {}
          schema: {type: string, short: Textergebnis als Freitext, choiceOf: value, index: 106}
  valueRatio:
    type: Ratio
    short: Titerangabe
    choiceOf: value
    index: 122
    slicing:
      slices:
        valueRatio:
          match: {}
          schema: {type: Ratio, short: Titerangabe, choiceOf: value, index: 122}
  component: {index: 213}
  note:
    elements:
      author:
        choices: []
        index: 169
      time: {index: 170}
  extension:
    index: 0
    slicing:
      slices:
        supportingInfo:
          match: {}
          schema: {index: 3}
          max: 0
        certifiedRefMaterialIdentifer:
          match: {}
          schema: {index: 6}
          max: 0
        value-r5:
          match: {}
          schema: {index: 2}
          max: 0
        certifiedRefMaterialCodeable:
          match: {}
          schema: {index: 5}
          max: 0
        labTestKit:
          match: {}
          schema: {index: 4}
          max: 0
        alternativeResult:
          match: {}
          schema:
            index: 10
            extensions:
              code:
                url: null
                index: 11
                elements:
                  value[x]:
                    elements:
                      coding:
                        short: LOINC®-Code Spezifikation der Laboruntersuchung zum Messergebnis mit Alternativeinheit
                        index: 12
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://loinc.org'}
                            index: 13
              value:
                url: null
                index: 14
                elements:
                  value:
                    choices: [valueRatio]
                    index: 21
                    slicing:
                      slices:
                        valueRatio:
                          match: {}
                          schema:
                            choices: [valueRatio]
                            index: 21
                  valueRange:
                    type: Range
                    constraint:
                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                    choiceOf: value
                    index: 17
                    slicing:
                      slices:
                        valueRange:
                          match: {}
                          schema:
                            type: Range
                            constraint:
                              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                            choiceOf: value
                            index: 17
                  value[x]:
                    elements:
                      denominator:
                        elements:
                          comparator: {index: 23}
                  valueRatio:
                    type: Ratio
                    choiceOf: value
                    index: 22
                    slicing:
                      slices:
                        valueRatio:
                          match: {}
                          schema: {type: Ratio, choiceOf: value, index: 22}
              referenceRange:
                url: null
                index: 24
                elements:
                  value:
                    constraint:
                      obs-range-1: {human: For Observation.referenceRange at least a lower or upper reference range MUST be provided., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: low.exists() or high.exists()}
                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                    choices: []
                    index: 26
            elements:
              extension:
                index: 11
                slicing:
                  slices:
                    code:
                      match: {}
                      schema:
                        index: 11
                        elements:
                          value[x]:
                            elements:
                              coding:
                                short: LOINC®-Code Spezifikation der Laboruntersuchung zum Messergebnis mit Alternativeinheit
                                index: 12
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://loinc.org'}
                                    index: 13
                    value:
                      match: {}
                      schema:
                        index: 14
                        elements:
                          value:
                            choices: [valueRatio]
                            index: 21
                            slicing:
                              slices:
                                valueRatio:
                                  match: {}
                                  schema:
                                    choices: [valueRatio]
                                    index: 21
                          valueRange:
                            type: Range
                            constraint:
                              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                            choiceOf: value
                            index: 17
                            slicing:
                              slices:
                                valueRange:
                                  match: {}
                                  schema:
                                    type: Range
                                    constraint:
                                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                                    choiceOf: value
                                    index: 17
                          value[x]:
                            elements:
                              denominator:
                                elements:
                                  comparator: {index: 23}
                          valueRatio:
                            type: Ratio
                            choiceOf: value
                            index: 22
                            slicing:
                              slices:
                                valueRatio:
                                  match: {}
                                  schema: {type: Ratio, choiceOf: value, index: 22}
                    referenceRange:
                      match: {}
                      schema:
                        index: 24
                        elements:
                          value:
                            constraint:
                              obs-range-1: {human: For Observation.referenceRange at least a lower or upper reference range MUST be provided., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: low.exists() or high.exists()}
                              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                            choices: []
                            index: 26
        bodyStructure:
          match: {}
          schema: {index: 0}
          max: 0
        testProfile:
          match: {}
          schema:
            index: 7
            elements:
              value[x]:
                elements:
                  coding:
                    elements:
                      version: {index: 8}
                      userSelected: {index: 9}
                    required: [version]
        triggeredBy:
          match: {}
          schema: {index: 1}
          max: 0
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 86
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, _required: true, index: 86}
          min: 1
  effective:
    choices: [effectiveDateTime]
    index: 85
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            choices: [effectiveDateTime]
            _required: true
            index: 85
          min: 1
  code:
    extensions:
      data-absent-reason: {url: null, short: Grund für das Nichtvorhandensein eines LOINC®-Codes, index: 71}
    elements:
      extension:
        short: Grund für das Nichtvorhandensein eines LOINC®-Codes
        index: 71
        slicing:
          slices:
            data-absent-reason:
              match: {}
              schema: {short: Grund für das Nichtvorhandensein eines LOINC®-Codes, index: 71}
      coding:
        index: 72
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            index: 73
          version: {index: 74}
          code: {index: 75}
          display: {index: 76}
          userSelected: {index: 77}
        required: [version, display, system, code]
      text: {short: Verwender-spezifische (vom Long Common Name des LOINC®-Codes ggf. abweichende) Bezeichnung für die Laboruntersuchung, index: 78}
  identifier:
    array: true
    max: 2
    index: 27
    slicing:
      rules: closed
      discriminator:
      - {path: type, type: value}
      min: null
      max: 2
      slices:
        resultID:
          match:
            type:
              coding:
              - {code: OBI, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Observation Instance Identifier}
          schema:
            mustSupport: true
            index: 28
            elements:
              use: {index: 29}
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: OBI, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Observation Instance Identifier}
                index: 30
                elements:
                  coding:
                    mustSupport: true
                    index: 31
                    elements:
                      system: {mustSupport: true, index: 32}
                      version: {mustSupport: true, index: 33}
                      code: {mustSupport: true, index: 34}
                      display: {mustSupport: true, index: 35}
                      userSelected: {index: 36}
                    required: [version, display, system, code]
                  text: {index: 37}
                required: [coding]
              system: {mustSupport: true, index: 38}
              value: {mustSupport: true, index: 39}
              period: {index: 40}
              assigner: {index: 41}
            required: [value, type]
        GTIN:
          match:
            type:
              coding:
              - {code: UDI, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Universal Device Identifier}
          schema:
            mustSupport: true
            index: 42
            elements:
              use: {index: 43}
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: UDI, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Universal Device Identifier}
                index: 44
                elements:
                  coding:
                    mustSupport: true
                    index: 45
                    elements:
                      system: {mustSupport: true, index: 46}
                      version: {mustSupport: true, index: 47}
                      code: {mustSupport: true, index: 48}
                      display: {mustSupport: true, index: 49}
                      userSelected: {index: 50}
                    required: [version, display, system, code]
                  text: {index: 51}
                required: [coding]
              system: {mustSupport: true, index: 52}
              value: {mustSupport: true, index: 53}
              period: {index: 54}
              assigner: {index: 55}
            required: [value, type]
  valueCodeableConcept:
    type: CodeableConcept
    choiceOf: value
    index: 136
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: value, index: 136}
  bodySite: {index: 171}
  focus: {index: 79}
  issued: {index: 87}
  device:
    type: Reference
    refers: ['https://gematik.de/fhir/epa-laboratory/StructureDefinition/device-laboratory-analyzer-dglp']
    index: 181
    elements:
      reference: {index: 182}
      type: {index: 183}
      identifier: {index: 184}
      display: {index: 185}
    required: [reference]
  basedOn: {index: 56}
  valueRange:
    type: Range
    short: Messergebnisse, die als ein Wertebereich/Werteintervall angegeben werden
    constraint:
      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
    choiceOf: value
    index: 109
    slicing:
      slices:
        valueRange:
          match: {}
          schema:
            type: Range
            short: Messergebnisse, die als ein Wertebereich/Werteintervall angegeben werden
            constraint:
              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
            choiceOf: value
            index: 109
  partOf: {index: 57}
  performer:
    extensions:
      performerFunction: {url: null, max: 0, index: 88}
    elements:
      extension:
        index: 88
        slicing:
          slices:
            performerFunction:
              match: {}
              schema: {index: 88}
              max: 0
  dataAbsentReason:
    elements:
      coding:
        index: 147
        elements:
          system: {index: 148}
          code: {index: 149}
          display: {index: 150}
          userSelected: {index: 151}
        required: [display, system, code]
      text: {index: 152}
    required: [coding]
package_version: 1.0.0-ballot.1
extensions:
  supportingInfo: {url: null, max: 0, index: 3}
  certifiedRefMaterialIdentifer: {url: null, max: 0, index: 6}
  value-r5: {url: null, max: 0, index: 2}
  certifiedRefMaterialCodeable: {url: null, max: 0, index: 5}
  labTestKit: {url: null, max: 0, index: 4}
  alternativeResult:
    url: null
    index: 10
    extensions:
      code:
        url: null
        index: 11
        elements:
          value[x]:
            elements:
              coding:
                short: LOINC®-Code Spezifikation der Laboruntersuchung zum Messergebnis mit Alternativeinheit
                index: 12
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 13
      value:
        url: null
        index: 14
        elements:
          value:
            choices: [valueRatio]
            index: 21
            slicing:
              slices:
                valueRatio:
                  match: {}
                  schema:
                    choices: [valueRatio]
                    index: 21
          valueRange:
            type: Range
            constraint:
              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
            choiceOf: value
            index: 17
            slicing:
              slices:
                valueRange:
                  match: {}
                  schema:
                    type: Range
                    constraint:
                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                    choiceOf: value
                    index: 17
          value[x]:
            elements:
              denominator:
                elements:
                  comparator: {index: 23}
          valueRatio:
            type: Ratio
            choiceOf: value
            index: 22
            slicing:
              slices:
                valueRatio:
                  match: {}
                  schema: {type: Ratio, choiceOf: value, index: 22}
      referenceRange:
        url: null
        index: 24
        elements:
          value:
            constraint:
              obs-range-1: {human: For Observation.referenceRange at least a lower or upper reference range MUST be provided., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: low.exists() or high.exists()}
              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
            choices: []
            index: 26
    elements:
      extension:
        index: 11
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 11
                elements:
                  value[x]:
                    elements:
                      coding:
                        short: LOINC®-Code Spezifikation der Laboruntersuchung zum Messergebnis mit Alternativeinheit
                        index: 12
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://loinc.org'}
                            index: 13
            value:
              match: {}
              schema:
                index: 14
                elements:
                  value:
                    choices: [valueRatio]
                    index: 21
                    slicing:
                      slices:
                        valueRatio:
                          match: {}
                          schema:
                            choices: [valueRatio]
                            index: 21
                  valueRange:
                    type: Range
                    constraint:
                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                    choiceOf: value
                    index: 17
                    slicing:
                      slices:
                        valueRange:
                          match: {}
                          schema:
                            type: Range
                            constraint:
                              obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                            choiceOf: value
                            index: 17
                  value[x]:
                    elements:
                      denominator:
                        elements:
                          comparator: {index: 23}
                  valueRatio:
                    type: Ratio
                    choiceOf: value
                    index: 22
                    slicing:
                      slices:
                        valueRatio:
                          match: {}
                          schema: {type: Ratio, choiceOf: value, index: 22}
            referenceRange:
              match: {}
              schema:
                index: 24
                elements:
                  value:
                    constraint:
                      obs-range-1: {human: For Observation.referenceRange at least a lower or upper reference range MUST be provided., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: low.exists() or high.exists()}
                      obs-range-2: {human: The units of the upper and lower bounds of a reference range must be stated in the same unit., source: 'https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp', severity: error, expression: (high.unit = low.unit and high.code = low.code)}
                    choices: []
                    index: 26
  bodyStructure: {url: null, max: 0, index: 0}
  testProfile:
    url: null
    index: 7
    elements:
      value[x]:
        elements:
          coding:
            elements:
              version: {index: 8}
              userSelected: {index: 9}
            required: [version]
  triggeredBy: {url: null, max: 0, index: 1}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-laboratory/StructureDefinition/observation-laboratory-study-dglp
base: https://gematik.de/fhir/ti/StructureDefinition/ti-observation-laboratory-study
version: 1.0.0
required: [effectiveDateTime, issued, effective]