From 4a497688142a4a8f440b657e06bfd83bace147d4 Mon Sep 17 00:00:00 2001 From: Ashraf Mohammed <98876115+AshrafMd-1@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:04:46 +0530 Subject: [PATCH] Add OP number to treatment summary. (#6898) * add op * Add correct borders in treatment summary * Update TreatmentSummary.tsx * add space * add extra cols --- src/Components/Facility/TreatmentSummary.tsx | 34 +++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/Components/Facility/TreatmentSummary.tsx b/src/Components/Facility/TreatmentSummary.tsx index 8291e0e8ba4..8f1589cdf6f 100644 --- a/src/Components/Facility/TreatmentSummary.tsx +++ b/src/Components/Facility/TreatmentSummary.tsx @@ -122,22 +122,32 @@ const TreatmentSummary = (props: any) => {
{formatDate(date)}
-
+
Name : {patientData.name}
- Address : {patientData.address} + Address : {patientData.address}
-
-
- Age :{" "} - {formatAge(patientData.age, patientData.date_of_birth, true)} +
+
+
+ Age :{" "} + {formatAge( + patientData.age, + patientData.date_of_birth, + true + )} +
+
+ OP : {consultationData.patient_no} +
-
- Date of admission : + +
+ Date of admission : {consultationData.admitted ? formatDateTime(consultationData.encounter_date) @@ -146,13 +156,13 @@ const TreatmentSummary = (props: any) => {
-
-
- Gender : +
+
+ Gender : {GENDER_TYPES.find((i) => i.id === patientData.gender)?.text}
-
+
Contact person : {" "}