PackagesCanonicalsLogsProblems
    Packages
    de.medizininformatikinitiative.kerndatensatz.icu@2024.0.0-alpha1
    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: 2
    elements:
      coding:
        mustSupport: true
        index: 3
        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: 4
                elements:
                  system: {mustSupport: true, index: 5}
                  code: {mustSupport: true, index: 6}
                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: 7
                elements:
                  system: {mustSupport: true, index: 8}
                  code: {mustSupport: true, index: 9}
                  display: {mustSupport: true, index: 10}
                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: 11
              min: 1
              max: 1
    required: [coding]
  referenceRange: {mustSupport: true, index: 35}
  value[x]:
    elements:
      value: {mustSupport: true, index: 30}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        mustSupport: true
        index: 31
      code:
        mustSupport: true
        pattern: {type: Code, value: '{score}'}
        index: 32
    required: [value, system, code]
  meta:
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'https://www.medizininformatik-initiative.de/fhir/ext/modul-icu/StructureDefinition/score'}
        index: 1
    required: [profile]
  derivedFrom: {mustSupport: true, index: 36}
  interpretation: {mustSupport: true, index: 34}
  encounter: {mustSupport: true, index: 21}
  valueQuantity: {type: Quantity, mustSupport: true, choiceOf: value, index: 29}
  value:
    mustSupport: true
    choices: [valueQuantity]
    index: 28
  component: {mustSupport: true, index: 37}
  effectiveDateTime: {type: dateTime, mustSupport: true, choiceOf: effective, index: 24}
  effective:
    mustSupport: true
    choices: [effectiveDateTime, effectivePeriod]
    index: 23
  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: 12
    elements:
      coding:
        mustSupport: true
        index: 13
        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: 14
                elements:
                  system: {mustSupport: true, index: 15}
                  code: {mustSupport: true, index: 16}
                required: [system, code]
            loinc:
              match: {system: 'http://loinc.org'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://loinc.org'}
                index: 17
                elements:
                  system: {mustSupport: true, index: 18}
                  code: {mustSupport: true, index: 19}
                required: [system, code]
    required: [coding]
  issued: {mustSupport: true, index: 26}
  subject: {mustSupport: true, index: 20}
  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: 33
  effectivePeriod: {type: Period, mustSupport: true, choiceOf: effective, index: 25}
package_version: 2024.0.0-alpha1
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]