Skip to content

Commit

Permalink
Modified the fine text in Patient transfer pop-up to match with recen…
Browse files Browse the repository at this point in the history
…t change (ohcnetwork#8344)
  • Loading branch information
nihal467 authored Aug 21, 2024
1 parent 617ad58 commit dc9f3c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
18 changes: 5 additions & 13 deletions src/Components/Facility/DuplicatePatientDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DupPatientModel>;
Expand All @@ -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("");

Expand Down Expand Up @@ -79,10 +81,7 @@ const DuplicatePatientDialog = (props: Props) => {
value="transfer"
onChange={(e) => setAction(e.target.value)}
/>
<p>
Admit the patient record to your facility by adding the date of
birth
</p>
<p>{t("duplicate_patient_record_confirmation")}</p>
</label>
</div>

Expand All @@ -99,18 +98,11 @@ const DuplicatePatientDialog = (props: Props) => {
value="close"
onChange={(e) => setAction(e.target.value)}
/>
<p>
I confirm that the suspect / patient I want to create is not on
the list.
</p>
<p>{t("duplicate_patient_record_rejection")}</p>
</label>
</div>

<p>
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.
</p>
<p>{t("duplicate_patient_record_birth_unknown")}</p>
</div>
</div>
<div className="mt-4 flex flex-col justify-between sm:flex-row">
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Facility/TransferPatientDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ const TransferPatientDialog = (props: Props) => {
<div className="grid grid-cols-1 gap-4">
<div>
<p className="leading-relaxed">
Note: Date of birth must match the patient to process the transfer
request.
{t("patient_transfer_birth_match_note")}
</p>
</div>
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
Expand Down
6 changes: 5 additions & 1 deletion src/Locale/en/Facility.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

0 comments on commit dc9f3c0

Please sign in to comment.