PackagesCanonicalsLogsProblems
    Packages
    de.medizininformatikinitiative.kerndatensatz.kardiologie@2027.0.0-ballot.rc1
    https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/StructureDefinition/mii-pr-kardio-anzahl-kh-aufenthalte-wg-hf
description: Profil zur Erfassung des Anzahl von Krankenhausaufenthalten wegen Herzinsuffizienz in einem Zeitraum im Kontext von ACRIBiS.
package_name: de.medizininformatikinitiative.kerndatensatz.kardiologie
derivation: constraint
name: MII_PR_Kardio_Anzahl_KH_Aufenthalte_wg_HF
type: Observation
elements:
  code:
    elements:
      coding:
        mustSupport: true
        index: 0
        elements:
          system: {mustSupport: true, index: 1}
          version: {mustSupport: true, index: 2}
          code: {mustSupport: true, index: 3}
        required: [version, system, code]
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: 1
          slices:
            sct:
              match: {code: '298060002', system: 'http://snomed.info/sct'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: '298060002', system: 'http://snomed.info/sct'}
                _required: true
                index: 4
              min: 1
              max: 1
    required: [coding]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 5
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 7
  effectivePeriod: {type: Period, mustSupport: true, choiceOf: effective, index: 8}
  value:
    mustSupport: true
    choices: [valueCodeableConcept]
    index: 17
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            mustSupport: true
            choices: [valueCodeableConcept]
            index: 17
          min: 0
          max: 1
  valueCodeableConcept:
    type: CodeableConcept
    mustSupport: true
    choiceOf: value
    index: 18
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 18}
          min: 0
          max: 1
  valueInteger:
    constraint:
      mii-kardio-pos-int: {human: 'Die Anzahl der Krankenhausbesuche kann nicht negativ sein. Wenn ein Integer übermittelt wird, muss dieser größer oder gleich 0 sein.', source: 'https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/StructureDefinition/mii-pr-kardio-anzahl-kh-aufenthalte-wg-hf', severity: error, expression: value.as(integer).empty() or value.as(integer) >= 0}
    type: integer
    mustSupport: true
    choiceOf: value
    index: 15
    slicing:
      slices:
        valueInteger:
          match: {}
          schema:
            constraint:
              mii-kardio-pos-int: {human: 'Die Anzahl der Krankenhausbesuche kann nicht negativ sein. Wenn ein Integer übermittelt wird, muss dieser größer oder gleich 0 sein.', source: 'https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/StructureDefinition/mii-pr-kardio-anzahl-kh-aufenthalte-wg-hf', severity: error, expression: value.as(integer).empty() or value.as(integer) >= 0}
            type: integer
            mustSupport: true
            choiceOf: value
            index: 15
          min: 0
          max: 1
  component:
    mustSupport: true
    index: 19
    slicing:
      rules: open
      description: Details zu den Krankenhausaufenthalten.
      discriminator:
      - {path: code, type: value}
      min: 1
      slices:
        Grund:
          match:
            code:
              coding:
              - {code: '406524005', system: 'http://snomed.info/sct'}
          schema:
            mustSupport: true
            _required: true
            index: 20
            elements:
              code:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '406524005', system: 'http://snomed.info/sct'}
                index: 21
              value:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '84114007', system: 'http://snomed.info/sct'}
                choices: [valueCodeableConcept]
                index: 23
              valueCodeableConcept:
                type: CodeableConcept
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '84114007', system: 'http://snomed.info/sct'}
                choiceOf: value
                index: 24
package_version: 2027.0.0-ballot.rc1
class: profile
kind: resource
url: https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/StructureDefinition/mii-pr-kardio-anzahl-kh-aufenthalte-wg-hf
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2027.0.0-ballot.rc1
required: [effectivePeriod, component, subject, effective]