{
  "resourceType": "StructureDefinition",
  "id": "Encounter",
  "meta": {
    "lastUpdated": "2025-05-02T11:22:29.631+00:00"
  },
  "url": "https://demis.rki.de/fhir/ars/StructureDefinition/Encounter",
  "version": "1.0.0",
  "name": "Encounter",
  "title": "Kontakt",
  "status": "draft",
  "experimental": false,
  "date": "2025-04-15",
  "publisher": "ARS@rki.de",
  "description": "Dieses Profil bildet einen Aufenthalt eines Patienten in einem Krankenhaus oder einen Kontakt eines Patienten mit einer Krankenhausambulanz oder einem anderen Funktionsbereich eines Krankenhauses ab.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.id",
        "path": "Encounter.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.meta",
        "path": "Encounter.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.meta.id",
        "path": "Encounter.meta.id",
        "max": "0"
      },
      {
        "id": "Encounter.meta.extension",
        "path": "Encounter.meta.extension",
        "max": "0"
      },
      {
        "id": "Encounter.meta.versionId",
        "path": "Encounter.meta.versionId",
        "max": "0"
      },
      {
        "id": "Encounter.meta.lastUpdated",
        "path": "Encounter.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Encounter.meta.source",
        "path": "Encounter.meta.source",
        "max": "0"
      },
      {
        "id": "Encounter.meta.profile",
        "path": "Encounter.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.meta.profile:arsProfile",
        "path": "Encounter.meta.profile",
        "sliceName": "arsProfile",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://demis.rki.de/fhir/ars/StructureDefinition/Encounter",
        "mustSupport": true
      },
      {
        "id": "Encounter.meta.security",
        "path": "Encounter.meta.security",
        "max": "0"
      },
      {
        "id": "Encounter.meta.tag",
        "path": "Encounter.meta.tag",
        "max": "0"
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "short": "planned | in-progress | onleave | finished | cancelled +",
        "definition": "planned | in-progress | onleave | finished | cancelled +.",
        "binding": {
          "strength": "required",
          "description": "Eingeschränkter Status vgl. FHIR R5",
          "valueSet": "http://fhir.de/ValueSet/EncounterStatusDe"
        }
      },
      {
        "id": "Encounter.statusHistory",
        "path": "Encounter.statusHistory",
        "max": "0"
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/EncounterClassDE"
        }
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory",
        "path": "Encounter.classHistory",
        "max": "0"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.type:Kontaktebene",
        "path": "Encounter.type",
        "sliceName": "Kontaktebene",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Kontaktebene",
          "valueSet": "http://fhir.de/ValueSet/kontaktebene-de"
        }
      },
      {
        "id": "Encounter.type:Kontaktebene.coding",
        "path": "Encounter.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.type:Kontaktebene.coding.system",
        "path": "Encounter.type.coding.system",
        "short": "Einrichtungskontakt / Abteilungskontakt / Versorgungsstellenkontakt",
        "definition": "Differenziert in eine der drei Ebenen Einrichtungskontakt, Abteilungskontakt, Versorgungsstellenkontakt.",
        "min": 1,
        "patternUri": "http://fhir.de/CodeSystem/Kontaktebene",
        "mustSupport": true
      },
      {
        "id": "Encounter.type:Kontaktebene.coding.version",
        "path": "Encounter.type.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.type:Kontaktebene.coding.code",
        "path": "Encounter.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.type:KontaktArt",
        "path": "Encounter.type",
        "sliceName": "KontaktArt",
        "min": 0,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/kontaktart-de"
        }
      },
      {
        "id": "Encounter.type:KontaktArt.coding",
        "path": "Encounter.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.type:KontaktArt.coding.system",
        "path": "Encounter.type.coding.system",
        "min": 1,
        "patternUri": "http://fhir.de/CodeSystem/kontaktart-de",
        "mustSupport": true
      },
      {
        "id": "Encounter.type:KontaktArt.coding.version",
        "path": "Encounter.type.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.type:KontaktArt.coding.code",
        "path": "Encounter.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding",
        "path": "Encounter.serviceType.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:Fachabteilungsschluessel",
        "path": "Encounter.serviceType.coding",
        "sliceName": "Fachabteilungsschluessel",
        "min": 0,
        "max": "1",
        "patternCoding": {
          "system": "http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/dkgev/Fachabteilungsschluessel"
        }
      },
      {
        "id": "Encounter.serviceType.coding:Fachabteilungsschluessel.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:Fachabteilungsschluessel.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:Fachabteilungsschluessel.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluessel",
        "path": "Encounter.serviceType.coding",
        "sliceName": "ErweiterterFachabteilungsschluessel",
        "min": 0,
        "max": "1",
        "patternCoding": {
          "system": "http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel-erweitert"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/dkgev/Fachabteilungsschluessel-erweitert"
        }
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluessel.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluessel.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluessel.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluesselRki",
        "path": "Encounter.serviceType.coding",
        "sliceName": "ErweiterterFachabteilungsschluesselRki",
        "short": "RKI-Ergänzungen zum erweiterten Katalog der Fachabteilungsschlüssel",
        "definition": "Ermöglicht eine noch feinere Differenzierung der Fachabteilungsschlüssel. Diese Differenzierung kann für Surveillance notwendig sein. Hinterlegt ist ein ValueSet von ergänzenden Codes, die durch das RKI aus den Bedarfen der existierenden Surveillance-Systeme definiert wurden.",
        "min": 0,
        "max": "1",
        "patternCoding": {
          "system": "https://demis.rki.de/fhir/ars/CodeSystem/fachabteilungsschluesselErgaenzungen"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://demis.rki.de/fhir/ars/ValueSet/fachabteilungsschluesselRki"
        }
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluesselRki.system",
        "path": "Encounter.serviceType.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluesselRki.version",
        "path": "Encounter.serviceType.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding:ErweiterterFachabteilungsschluesselRki.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.text",
        "path": "Encounter.serviceType.text",
        "short": "Freitextbezeichnung Fachabteilung",
        "definition": "Kann kein passender Fachabteilungsschlüssel angegeben werden, ist der Code '9999' für eine andere Fachabteilung zu wählen, in Verbindung mit einer sprechenden selbst gewählten Bezeichnung für die Fachabteilung.",
        "mustSupport": true
      },
      {
        "id": "Encounter.priority",
        "path": "Encounter.priority",
        "max": "0"
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/ars/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.reference",
        "path": "Encounter.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.type",
        "path": "Encounter.subject.type",
        "max": "0"
      },
      {
        "id": "Encounter.subject.identifier",
        "path": "Encounter.subject.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.subject.display",
        "path": "Encounter.subject.display",
        "max": "0"
      },
      {
        "id": "Encounter.episodeOfCare",
        "path": "Encounter.episodeOfCare",
        "max": "0"
      },
      {
        "id": "Encounter.basedOn",
        "path": "Encounter.basedOn",
        "max": "0"
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "max": "0"
      },
      {
        "id": "Encounter.appointment",
        "path": "Encounter.appointment",
        "max": "0"
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "short": "Aufnahme- und Entlassdatum",
        "definition": "Ermöglicht die Angabe eines Aufnahmedatums und ggf. zusätzlich eines Entlassdatums eines Patienten im Krankenhaus. Angegeben wird ein Zeitbereich (Datum, kein Zeitstempel) in einem Einrichtungskontakt. Das Aufnahmedatum wird verwendet, um näherungsweise zwischen einem ambulant erworbenen und einem nosokomialen Geschehen zu unterscheiden.",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "mustSupport": true
      },
      {
        "id": "Encounter.length",
        "path": "Encounter.length",
        "max": "0"
      },
      {
        "id": "Encounter.reasonCode",
        "path": "Encounter.reasonCode",
        "max": "0"
      },
      {
        "id": "Encounter.reasonReference",
        "path": "Encounter.reasonReference",
        "max": "0"
      },
      {
        "id": "Encounter.diagnosis",
        "path": "Encounter.diagnosis",
        "max": "0"
      },
      {
        "id": "Encounter.account",
        "path": "Encounter.account",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization",
        "path": "Encounter.hospitalization",
        "max": "0"
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "physicalType"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Encounter.location:Station",
        "path": "Encounter.location",
        "sliceName": "Station",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.location:Station.location",
        "path": "Encounter.location.location",
        "short": "Referenz auf eine Station oder Funktionsstelle des Krankenhauses",
        "definition": "Ermöglicht für einen Versorgungsstellenkontakt die Referenz auf die behandelnde Station oder Funktionsstelle des Krankenhauses. Eine Angabe des Stationstyps oder der Art der Funktionsstelle wird für ARS dort getätigt.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/ars/StructureDefinition/Ward"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.location:Station.location.reference",
        "path": "Encounter.location.location.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.location:Station.location.type",
        "path": "Encounter.location.location.type",
        "max": "0"
      },
      {
        "id": "Encounter.location:Station.location.identifier",
        "path": "Encounter.location.location.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.location:Station.location.display",
        "path": "Encounter.location.location.display",
        "max": "0"
      },
      {
        "id": "Encounter.location:Station.physicalType",
        "path": "Encounter.location.physicalType",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
              "code": "wa"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "short": "Referenz auf ein Krankenhaus",
        "definition": "Ermöglicht für einen Einrichtungskontakt die Referenz auf das behandelnde Krankenhaus.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/ars/StructureDefinition/Hospital"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider.reference",
        "path": "Encounter.serviceProvider.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider.type",
        "path": "Encounter.serviceProvider.type",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.identifier",
        "path": "Encounter.serviceProvider.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.display",
        "path": "Encounter.serviceProvider.display",
        "max": "0"
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "short": "Referenz auf einen Einrichtungskontakt oder Abteilungskontakt",
        "definition": "Ermöglicht für einen Abteilungskontakt die Referenz auf einen übergeordneten Einrichtungskontakt oder für einen Versorgungsstellenkontakt die Referenz auf einen Abteilungskontakt. Für einen Abteilungskontakt oder Versorgungsstellenkontakt müssen die Referenzen zwingend angegeben werden.",
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                "valueBoolean": true
              }
            ],
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/ars/StructureDefinition/Encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.partOf.reference",
        "path": "Encounter.partOf.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.partOf.type",
        "path": "Encounter.partOf.type",
        "max": "0"
      },
      {
        "id": "Encounter.partOf.identifier",
        "path": "Encounter.partOf.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.partOf.display",
        "path": "Encounter.partOf.display",
        "max": "0"
      }
    ]
  }
}