diff --git a/src/Components/Facility/DischargedPatientsList.tsx b/src/Components/Facility/DischargedPatientsList.tsx index bdd0a0a649e..b06e5cd1b4b 100644 --- a/src/Components/Facility/DischargedPatientsList.tsx +++ b/src/Components/Facility/DischargedPatientsList.tsx @@ -112,7 +112,9 @@ const PatientListItem = ({ patient }: { patient: PatientModel }) => {
-

{patient.name}

+

+ {patient.name} +

{GENDER_TYPES.find((g) => g.id === patient.gender)?.text} -{" "} {formatPatientAge(patient)} diff --git a/src/Components/Facility/DuplicatePatientDialog.tsx b/src/Components/Facility/DuplicatePatientDialog.tsx index 7a36beac685..56101cc9ccb 100644 --- a/src/Components/Facility/DuplicatePatientDialog.tsx +++ b/src/Components/Facility/DuplicatePatientDialog.tsx @@ -51,7 +51,9 @@ const DuplicatePatientDialog = (props: Props) => { return ( -
{patient.name}
+
+ {patient.name} +
ID : {patient.patient_id}
diff --git a/src/Components/Patient/PatientHome.tsx b/src/Components/Patient/PatientHome.tsx index b82fa899e8e..370a07fae64 100644 --- a/src/Components/Patient/PatientHome.tsx +++ b/src/Components/Patient/PatientHome.tsx @@ -343,7 +343,7 @@ export const PatientHome = (props: any) => {
-

+

{patientData.name} - {formatPatientAge(patientData, true)}

diff --git a/src/Components/Patient/PatientInfoCard.tsx b/src/Components/Patient/PatientInfoCard.tsx index 416b1965381..cd99d169544 100644 --- a/src/Components/Patient/PatientInfoCard.tsx +++ b/src/Components/Patient/PatientInfoCard.tsx @@ -218,7 +218,7 @@ export default function PatientInfoCard(props: {
{patient.name} @@ -263,7 +263,7 @@ export default function PatientInfoCard(props: {
{patient.name} diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index 383edbe78d7..f847b1a2881 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -64,6 +64,7 @@ import routes from "../../Redux/api.js"; import request from "../../Utils/request/request.js"; import SelectMenuV2 from "../Form/SelectMenuV2.js"; import Checkbox from "../Common/components/CheckBox.js"; +import _ from "lodash"; import { ILocalBodies } from "../ExternalResult/models.js"; const Loading = lazy(() => import("../Common/Loading")); @@ -810,7 +811,7 @@ export const PatientRegister = (props: PatientRegisterProps) => { : null : null, test_type: formData.test_type, - name: formData.name, + name: _.startCase(_.toLower(formData.name)), pincode: formData.pincode ? formData.pincode : undefined, gender: Number(formData.gender), nationality: formData.nationality,