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