From dc9f3c079aa9fa7cb9731d78e2bce39357434bc1 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:13:39 +0530 Subject: [PATCH] Modified the fine text in Patient transfer pop-up to match with recent change (#8344) --- .../Facility/DuplicatePatientDialog.tsx | 18 +++++------------- .../Facility/TransferPatientDialog.tsx | 3 +-- src/Locale/en/Facility.json | 6 +++++- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/Components/Facility/DuplicatePatientDialog.tsx b/src/Components/Facility/DuplicatePatientDialog.tsx index b948ad91fa3..b9d740f85e8 100644 --- a/src/Components/Facility/DuplicatePatientDialog.tsx +++ b/src/Components/Facility/DuplicatePatientDialog.tsx @@ -2,6 +2,7 @@ import { useState } from "react"; import { Cancel, Submit } from "../Common/components/ButtonV2"; import DialogModal from "../Common/Dialog"; import { DupPatientModel } from "./models"; +import { useTranslation } from "react-i18next"; interface Props { patientList: Array; @@ -12,6 +13,7 @@ interface Props { const tdClass = "border border-secondary-400 p-2 text-left"; const DuplicatePatientDialog = (props: Props) => { + const { t } = useTranslation(); const { patientList, handleOk, handleCancel } = props; const [action, setAction] = useState(""); @@ -79,10 +81,7 @@ const DuplicatePatientDialog = (props: Props) => { value="transfer" onChange={(e) => setAction(e.target.value)} /> -

- Admit the patient record to your facility by adding the date of - birth -

+

{t("duplicate_patient_record_confirmation")}

@@ -99,18 +98,11 @@ const DuplicatePatientDialog = (props: Props) => { value="close" onChange={(e) => setAction(e.target.value)} /> -

- I confirm that the suspect / patient I want to create is not on - the list. -

+

{t("duplicate_patient_record_rejection")}

-

- Please contact your district care coordinator, the shifting facility - or the patient themselves if you are not sure about the patient's - date of birth. -

+

{t("duplicate_patient_record_birth_unknown")}

diff --git a/src/Components/Facility/TransferPatientDialog.tsx b/src/Components/Facility/TransferPatientDialog.tsx index 0c4af6c5d0c..4facfc2b35e 100644 --- a/src/Components/Facility/TransferPatientDialog.tsx +++ b/src/Components/Facility/TransferPatientDialog.tsx @@ -163,8 +163,7 @@ const TransferPatientDialog = (props: Props) => {

- Note: Date of birth must match the patient to process the transfer - request. + {t("patient_transfer_birth_match_note")}

diff --git a/src/Locale/en/Facility.json b/src/Locale/en/Facility.json index 5bb0a269e87..e321fa02f43 100644 --- a/src/Locale/en/Facility.json +++ b/src/Locale/en/Facility.json @@ -54,5 +54,9 @@ "create_add_more": "Create & Add More", "discharged_patients": "Discharged Patients", "discharged_patients_empty": "No discharged patients present in this facility", - "update_facility_middleware_success": "Facility middleware updated successfully" + "update_facility_middleware_success": "Facility middleware updated successfully", + "duplicate_patient_record_confirmation": "Admit the patient record to your facility by adding the year of birth", + "duplicate_patient_record_rejection": "I confirm that the suspect / patient I want to create is not on the list.", + "duplicate_patient_record_birth_unknown": "Please contact your district care coordinator, the shifting facility or the patient themselves if you are not sure about the patient's year of birth.", + "patient_transfer_birth_match_note": "Note: Year of birth must match the patient to process the transfer request." }