PackagesCanonicalsLogsProblems
    Packages
    de.medizininformatikinitiative.kerndatensatz.icu@2025.0.1
    https://www.medizininformatik-initiative.de/fhir/ext/modul-icu/StructureDefinition/score
description: null
package_name: de.medizininformatikinitiative.kerndatensatz.icu
derivation: constraint
name: SD_MII_ICU_Score
type: Observation
elements:
  category:
    mustSupport: true
    index: 0
    elements:
      coding:
        mustSupport: true
        index: 1
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            hl7-survey:
              match: {code: survey, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: survey, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
                _required: true
                index: 2
                elements:
                  system: {mustSupport: true, index: 3}
                  code: {mustSupport: true, index: 4}
                required: [system, code]
            fixedCategoryScore:
              match: {code: score, system: 'https://www.medizininformatik-initiative.de/fhir/ext/modul-icu/ValueSet/category-fixed', display: Score}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: score, system: 'https://www.medizininformatik-initiative.de/fhir/ext/modul-icu/ValueSet/category-fixed', display: Score}
                _required: true
                index: 5
                elements:
                  system: {mustSupport: true, index: 6}
                  code: {mustSupport: true, index: 7}
                  display: {mustSupport: true, index: 8}
                required: [system, code]
            sct:
              match: {code: '273249006', system: 'http://snomed.info/sct'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: '273249006', system: 'http://snomed.info/sct'}
                _required: true
                index: 9
              min: 1
              max: 1
    required: [coding]
  referenceRange: {mustSupport: true, index: 34}
  value[x]:
    elements:
      value: {mustSupport: true, index: 28}
      unit:
        mustSupport: true
        pattern: {type: String, value: Score}
        index: 29
      system: {mustSupport: true, index: 30}
      code: {mustSupport: true, index: 31}
    required: [value, system, code]
  derivedFrom: {mustSupport: true, index: 35}
  interpretation: {mustSupport: true, index: 33}
  encounter: {mustSupport: true, index: 19}
  valueQuantity:
    type: Quantity
    mustSupport: true
    pattern:
      type: Quantity
      value: {code: '{score}', system: 'http://unitsofmeasure.org'}
    choiceOf: value
    index: 27
  value:
    mustSupport: true
    pattern:
      type: Quantity
      value: {code: '{score}', system: 'http://unitsofmeasure.org'}
    choices: [valueQuantity]
    index: 26
  component: {mustSupport: true, index: 36}
  effectiveDateTime: {type: dateTime, mustSupport: true, choiceOf: effective, index: 22}
  effective:
    mustSupport: true
    choices: [effectiveDateTime, effectivePeriod]
    index: 21
  code:
    constraint:
      code-coding-icu: {human: Es muss mindestens ein snomed oder loinc code vorhanden sein, severity: error, expression: 'coding.exists() implies coding.where(system = ''http://snomed.info/sct'').exists() or coding.where(system = ''http://loinc.org'').exists()'}
    mustSupport: true
    index: 10
    elements:
      coding:
        mustSupport: true
        index: 11
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            sct:
              match: {system: 'http://snomed.info/sct'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 12
                elements:
                  system: {mustSupport: true, index: 13}
                  code: {mustSupport: true, index: 14}
                required: [system, code]
            loinc:
              match: {system: 'http://loinc.org'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://loinc.org'}
                index: 15
                elements:
                  system: {mustSupport: true, index: 16}
                  code: {mustSupport: true, index: 17}
                required: [system, code]
    required: [coding]
  issued: {mustSupport: true, index: 24}
  subject: {mustSupport: true, index: 18}
  dataAbsentReason:
    constraint:
      mii-icu-1: {human: 'If there is no Observation.value, a dataAbsentReason must be given.', severity: error, expression: value.exists().not() implies dataAbsentReason.exists()}
    mustSupport: true
    index: 32
  effectivePeriod: {type: Period, mustSupport: true, choiceOf: effective, index: 23}
package_version: 2025.0.1
class: profile
kind: resource
url: https://www.medizininformatik-initiative.de/fhir/ext/modul-icu/StructureDefinition/score
base: http://hl7.org/fhir/StructureDefinition/Observation
version: null
required: [effectiveDateTime, issued, effectivePeriod, value, subject, category, valueQuantity, effective]