diff --git a/public/locale/en.json b/public/locale/en.json index 413b2f20d4a..3952613d903 100644 --- a/public/locale/en.json +++ b/public/locale/en.json @@ -562,6 +562,7 @@ "claim__use__claim": "Claim", "claim__use__preauthorization": "Pre Authorization", "claims": "Claims", + "class_history": "Class History", "clear": "Clear", "clear_all_filters": "Clear all filters", "clear_home_facility": "Clear Home Facility", @@ -1482,6 +1483,7 @@ "on": "on", "on_emergency_basis": " on emergency basis", "on_hold": "On Hold", + "ongoing": "Ongoing", "ongoing_medications": "Ongoing Medications", "online": "Online", "only_indian_mobile_numbers_supported": "Currently only Indian numbers are supported", @@ -2053,6 +2055,7 @@ "state": "State", "state_reason_for_archiving": "State reason for archiving {{name}} file?", "status": "Status", + "status_history": "Status History", "stop": "Stop", "stop_recording": "Stop Recording", "stopped": "Stopped", diff --git a/src/components/Patient/PatientInfoCard.tsx b/src/components/Patient/PatientInfoCard.tsx index 0fd71d4e2e0..95890e5a225 100644 --- a/src/components/Patient/PatientInfoCard.tsx +++ b/src/components/Patient/PatientInfoCard.tsx @@ -148,28 +148,28 @@ export default function PatientInfoCard(props: PatientInfoCardProps) {
- Start Date + {t("start_date")} {props.encounter.period.start ? formatDateTime(props.encounter.period.start) - : "Not started"} + : t("not_started")}
- End Date + {t("end_date")} {props.encounter.period.end ? formatDateTime(props.encounter.period.end) - : "Ongoing"} + : t("ongoing")}
{props.encounter.external_identifier && (
- Hospital Identifier + {t("hospital_identifier")} {props.encounter.external_identifier} @@ -207,7 +207,9 @@ export default function PatientInfoCard(props: PatientInfoCardProps) {
-

Status History

+

+ {t("status_history")} +

{encounter.status_history.history.map( (history, index) => (
- {props.encounter.current_location && ( - - -
- - - {props.encounter.current_location.name} - - -
-
- -
-
-

- {t("location")} -

- - - - -
- } - /> -
-
- -
- -
- - - )}
@@ -311,7 +250,9 @@ export default function PatientInfoCard(props: PatientInfoCardProps) {
-

Class History

+

+ {t(`class_history`)} +

{encounter.encounter_class_history.history.map( (history, index) => (
} /> + {props.encounter.current_location ? ( + + +
+ + + {props.encounter.current_location.name} + + +
+
+ +
+
+

+ {t("location")} +

+ + + + +
+ } + /> +
+
+ +
+ +
+ + + ) : ( + + + + {t("add_location")} + + + )}