description: 'Standing fact that a patient resides in a nursing home (Pflegeheim). An active residency drives ambulatory billing code selection for home visits (Hausbesuch): nursing-home-specific EBM codes and Mitbesuch rules apply when the patient is an active resident. Physical placement (facility -> ward -> room) is expressed through gematik ISiK Location profiles (ISiKStandort / ISiKStandortRaum) and their partOf hierarchy, not through free-text fields. EpisodeOfCare has no native location element, so the Location is carried by the nursingHomeLocation extension.' package_name: de.cognovis.fhir.praxis derivation: constraint name: PraxisNursingHomeResidencyDE type: EpisodeOfCare elements: extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: nursingHomeLocation: match: {url: null} schema: {short: Reference to the patient's place within the nursing home, type: Extension, mustSupport: true, url: 'https://fhir.cognovis.de/praxis/StructureDefinition/nursing-home-location', index: 1} min: 1 max: 1 status: {mustSupport: true, index: 2} patient: {mustSupport: true, index: 3} managingOrganization: {short: 'Operator of the nursing home, if recorded', mustSupport: true, index: 4} period: {mustSupport: true, index: 5} package_version: 0.101.1 extensions: nursingHomeLocation: {url: 'https://fhir.cognovis.de/praxis/StructureDefinition/nursing-home-location', min: 1, max: 1, short: Reference to the patient's place within the nursing home, type: Extension, mustSupport: true, index: 1} class: profile kind: resource url: https://fhir.cognovis.de/praxis/StructureDefinition/praxis-nursing-home-residency-de base: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare version: 0.101.1 required: [extension]