PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.isik@basismodul-4.0.0
    https://gematik.de/fhir/isik/StructureDefinition/ISiKDiagnose
description: Dieses Profil ermöglicht die Nutzung von Diagnosen in ISiK Szenarien.
package_name: rs/de.gematik.isik
derivation: constraint
name: ISiKDiagnose
type: Condition
elements:
  onset:
    choices: [onsetPeriod]
    index: 27
    slicing:
      slices:
        onsetPeriod:
          match: {}
          schema:
            choices: [onsetPeriod]
            index: 27
          min: 0
          max: 1
  abatement[x]:
    extensions:
      Lebensphase-Ende: {url: 'http://fhir.de/StructureDefinition/lebensphase', min: 0, max: 1, type: Extension, index: 36}
    elements:
      extension:
        type: Extension
        url: http://fhir.de/StructureDefinition/lebensphase
        index: 36
        slicing:
          slices:
            Lebensphase-Ende:
              match: {}
              schema: {type: Extension, url: 'http://fhir.de/StructureDefinition/lebensphase', index: 36}
              min: 0
              max: 1
  clinicalStatus: {mustSupport: true, index: 2}
  abatementAge:
    type: Age
    choiceOf: abatement
    index: 35
    slicing:
      slices:
        abatementAge:
          match: {}
          schema: {type: Age, choiceOf: abatement, index: 35}
          min: 0
          max: 1
  encounter: {mustSupport: true, index: 21}
  onsetPeriod:
    type: Period
    choiceOf: onset
    index: 28
    slicing:
      slices:
        onsetPeriod:
          match: {}
          schema: {type: Period, choiceOf: onset, index: 28}
          min: 0
          max: 1
  abatement:
    mustSupport: true
    choices: []
    index: 32
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        abatementAge:
          match: {}
          schema:
            choices: [abatementAge]
            index: 34
          min: 0
          max: 1
  note: {mustSupport: true, index: 38}
  extension:
    mustSupport: true
    index: 0
    slicing:
      slices:
        related:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/condition-related', index: 1}
          min: 0
          max: 1
  recordedDate: {mustSupport: true, index: 37}
  code:
    constraint:
      icd-text-1: {human: 'Entweder MUSS eine kodierte Diagnose vorliegen oder eine textuelle Beschreibung. Stattdessen nur Extensions hinzuzufügen (vgl. https://www.hl7.org/fhir/element.html - ele-1), ist explizit nicht erlaubt.', source: 'https://gematik.de/fhir/isik/StructureDefinition/ISiKDiagnose', severity: error, expression: coding.exists().not() implies text.exists()}
    mustSupport: true
    index: 3
    elements:
      coding:
        mustSupport: true
        index: 4
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            ICD-10-GM:
              match: {system: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'}
              schema:
                type: Coding
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'}
                index: 5
                extensions:
                  Mehrfachcodierungs-Kennzeichen: {url: null, mustSupport: true, index: 6}
                  Seitenlokalisation: {url: null, mustSupport: true, index: 7}
                  Diagnosesicherheit: {url: null, mustSupport: true, index: 8}
                elements:
                  extension:
                    mustSupport: true
                    index: 6
                    slicing:
                      slices:
                        Mehrfachcodierungs-Kennzeichen:
                          match: {}
                          schema: {mustSupport: true, index: 6}
                        Seitenlokalisation:
                          match: {}
                          schema: {mustSupport: true, index: 7}
                        Diagnosesicherheit:
                          match: {}
                          schema: {mustSupport: true, index: 8}
            Alpha-ID:
              match: {system: 'http://fhir.de/CodeSystem/alpha-id'}
              schema:
                type: Coding
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/alpha-id'}
                index: 9
                elements:
                  system: {mustSupport: true, index: 10}
                  code: {mustSupport: true, index: 11}
            SNOMED-CT:
              match: {system: 'http://snomed.info/sct'}
              schema:
                type: Coding
                mustSupport: true
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/isik/ValueSet/DiagnosesSCT'}
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 12
              min: 0
              max: 1
            Orphanet:
              match: {system: 'http://www.orpha.net'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://www.orpha.net'}
                type: Coding
                index: 13
                elements:
                  system: {mustSupport: true, index: 14}
                  code: {index: 15}
                required: [code, system]
  onsetDateTime: {type: dateTime, choiceOf: onset, index: 24}
  bodySite:
    mustSupport: true
    index: 16
    elements:
      coding:
        mustSupport: true
        index: 17
        slicing:
          rules: open
          discriminator:
          - {path: system, type: pattern}
          min: null
          slices:
            snomed-ct:
              match: {system: null}
              schema: {type: Coding, mustSupport: true, index: 18}
              min: 0
              max: 1
  onset[x]:
    elements:
      start:
        extensions:
          Lebensphase-Start: {url: 'http://fhir.de/StructureDefinition/lebensphase', min: 0, max: 1, type: Extension, index: 29}
        elements:
          extension:
            type: Extension
            url: http://fhir.de/StructureDefinition/lebensphase
            index: 29
            slicing:
              slices:
                Lebensphase-Start:
                  match: {}
                  schema: {type: Extension, url: 'http://fhir.de/StructureDefinition/lebensphase', index: 29}
                  min: 0
                  max: 1
      end:
        extensions:
          Lebensphase-Ende: {url: 'http://fhir.de/StructureDefinition/lebensphase', min: 0, max: 1, type: Extension, index: 30}
        elements:
          extension:
            type: Extension
            url: http://fhir.de/StructureDefinition/lebensphase
            index: 30
            slicing:
              slices:
                Lebensphase-Ende:
                  match: {}
                  schema: {type: Extension, url: 'http://fhir.de/StructureDefinition/lebensphase', index: 30}
                  min: 0
                  max: 1
  subject:
    mustSupport: true
    index: 19
    elements:
      reference: {mustSupport: true, index: 20}
    required: [reference]
package_version: basismodul-4.0.0
extensions:
  related: {url: 'http://hl7.org/fhir/StructureDefinition/condition-related', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: https://gematik.de/fhir/isik/StructureDefinition/ISiKDiagnose
base: http://hl7.org/fhir/StructureDefinition/Condition
version: 4.0.0
required: [code, recordedDate]