+
+ Reason {" - "}
+
+ {DISCHARGE_REASONS.find(
+ (d) => d.id === consultationData.discharge_reason
+ )?.text || "--"}
+
+
+ {consultationData.discharge_reason === "REC" && (
+
+
+ Date {" - "}
+
+ {consultationData.discharge_date
+ ? formatDate(consultationData.discharge_date)
+ : "--:--"}
+
+
+
+ Advice {" - "}
+
+ {consultationData.discharge_notes || "--"}
+
+
+
+
+ Prescription
+
+
{" "}
+
+
+
+
+ PRN Prescription
+
+
+
+
+
+
+ )}
+ {consultationData.discharge_reason === "EXP" && (
+
+
+ Discharge Date {" - "}
+
+ {consultationData.discharge_date
+ ? formatDate(consultationData.discharge_date)
+ : "--:--"}
+
+
+
+ Date of Death {" - "}
+
+ {consultationData.death_datetime
+ ? formatDate(consultationData.death_datetime)
+ : "--:--"}
+
+
+
+ Cause of death {" - "}
+
+ {consultationData.discharge_reason || "--"}
+
+
+
+ Confirmed By {" - "}
+
+ {consultationData.death_confirmed_doctor ||
+ "--"}
+
+
+
+ )}
+ {["REF", "LAMA"].includes(
+ consultationData.discharge_reason || ""
+ ) && (
+
+
+ Date {" - "}
+
+ {consultationData.discharge_date
+ ? formatDate(consultationData.discharge_date)
+ : "--:--"}
+
+
+
+ Notes {" - "}
+
+ {consultationData.discharge_notes || "--"}
+
+
+
+ )}
+