diff --git a/src/Components/Facility/ConsultationDetails.tsx b/src/Components/Facility/ConsultationDetails.tsx index 4e23a0a9770..a401412dcba 100644 --- a/src/Components/Facility/ConsultationDetails.tsx +++ b/src/Components/Facility/ConsultationDetails.tsx @@ -872,6 +872,162 @@ export const ConsultationDetails = (props: any) => { )}
+ {consultationData.discharge_date && ( +
+
+

+ Discharge Information +

+
+
+ 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 || "--"} + +
+
+ )} +
+
+
+ )} {consultationData.symptoms_text && (
diff --git a/src/Components/Facility/models.tsx b/src/Components/Facility/models.tsx index 5961826ffe7..86329c9c017 100644 --- a/src/Components/Facility/models.tsx +++ b/src/Components/Facility/models.tsx @@ -88,6 +88,9 @@ export interface ConsultationModel { created_date?: string; discharge_date?: string; discharge_reason?: string; + discharge_prescription: any; + discharge_prn_prescription: any; + discharge_notes?: string; examination_details?: string; history_of_present_illness?: string; facility?: number;