Patient Record Inactive Reason Extension¶
| Canonical | ../StructureDefinition/nexus-emr-patient-record-inactive-reason |
|---|---|
| Status | draft · 1.26.0 |
| Base | Extension (constraint) |
| Context | Patient (element) |
| Source | FSH · JSON |
Why a retired record is inactive (e.g. moved, transferred, duplicate record).
FSH
The authored source of truth: extensions/PatientRecordInactiveReasonExtension.fsh (edit on GitHub). One FSH file may define several related artifacts.
// PatientRecordInactiveReasonExtension.fsh
// Records why a retired Patient record is inactive. Standalone extension on the
// unconstrained Patient element; complements Patient.active = false.
// ===========================================================================
// Record inactive-reason terminology
// ===========================================================================
CodeSystem: PatientRecordInactiveReasonCS
Id: nexus-emr-patient-record-inactive-reason
Title: "Patient Record Inactive Reason CodeSystem"
Description: "Why a retired patient record is inactive. Death is deliberately not a code here — Patient.deceased[x] is FHIR's native element for it, and there must not be two ways to say it."
* ^status = #draft
* ^experimental = false
* ^caseSensitive = true
* ^content = #complete
* ^url = "../CodeSystem/nexus-emr-patient-record-inactive-reason"
* #moved "Moved" "The patient moved away (e.g. out of the geographic area or province)."
* #transferred "Transferred" "The patient's care was transferred to another practice."
* #duplicate "Duplicate" "The record duplicates another record for the same patient and was retired in its favour."
ValueSet: PatientRecordInactiveReasonVS
Id: nexus-emr-patient-record-inactive-reason
Title: "Patient Record Inactive Reason"
Description: "Reasons a retired patient record is inactive."
* ^status = #draft
* ^experimental = false
* ^url = "../ValueSet/nexus-emr-patient-record-inactive-reason"
* include codes from system ../CodeSystem/nexus-emr-patient-record-inactive-reason
// ===========================================================================
// Patient record inactive reason extension (on Patient)
// ===========================================================================
Extension: PatientRecordInactiveReasonExtension
Id: nexus-emr-patient-record-inactive-reason
Title: "Patient Record Inactive Reason Extension"
Description: "Why a retired record is inactive (e.g. moved, transferred, duplicate record)."
* ^url = "../StructureDefinition/nexus-emr-patient-record-inactive-reason"
* ^status = #draft
* ^date = "2026-07-28"
* ^publisher = "WELLSTAR Technologies Corp."
* ^contact.name = "Nexus EMR FHIR Implementation Guide"
* ^contact.telecom.system = #url
* ^contact.telecom.value = ".."
* ^jurisdiction = urn:iso:std:iso:3166#CA "Canada"
* ^context[0].type = #element
* ^context[0].expression = "Patient"
* . ^short = "Reason the patient record is inactive"
* . ^definition = "Captures why a retired patient record is inactive (e.g. the patient moved or transferred, or the record duplicates another). Complements Patient.active = false with a specific reason. A death is recorded natively on Patient.deceased[x], never here."
* extension 0..0
* url 1..1
* value[x] 1..1 MS
* value[x] only code
* valueCode from PatientRecordInactiveReasonVS (extensible)
* valueCode ^short = "Reason the patient record is inactive"