From dd4ad7bb193ac9ffa5b8fb9d3f01eff8fb493906 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Mon, 22 Jul 2024 16:20:20 +0530 Subject: [PATCH 1/2] Fixes spacing issue in patient list phone number field and search inputs (#8185) * fixes #8181 * show error only when out of focus * Revert "show error only when out of focus" This reverts commit 5a33cb78fbe1dcb4c544610ab81fd15b158ec139. --- src/Components/Patient/ManagePatients.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index b6fc98935e2..087bd9af209 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -519,7 +519,7 @@ export const PatientManager = () => {
-
+
{patient?.last_consultation?.current_bed && patient?.last_consultation?.discharge_date === null ? (
@@ -788,7 +788,6 @@ export const PatientManager = () => { name, value: qParams[name] || defaultValue, onChange: (e: FieldChangeEvent) => updateQuery({ [e.name]: e.value }), - className: "grow w-full mb-2", }; }; @@ -975,21 +974,23 @@ export const PatientManager = () => {
-
-
+
+
-
+
{ onChange={(e) => setPhoneNum(e.value)} error={phoneNumberError} types={["mobile", "landline"]} + className="w-full grow" /> { onChange={(e) => setEmergencyPhoneNum(e.value)} error={emergencyPhoneNumberError} types={["mobile", "landline"]} + className="w-full" />
From 23d1ce88808a33059a4fd62d36cb3154db030c62 Mon Sep 17 00:00:00 2001 From: Shivank Kacker Date: Mon, 22 Jul 2024 19:17:47 +0530 Subject: [PATCH 2/2] Hides Consent Records Banner (#8193) --- src/Components/Patient/ManagePatients.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index 087bd9af209..b61cfc99d2b 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -398,7 +398,7 @@ export const PatientManager = () => { prefetch: !!qParams.last_consultation_current_bed__location, }, ); - + /* const { data: patientsWithNoConsentsData } = useQuery(routes.patientList, { query: { ...qParams, @@ -409,7 +409,7 @@ export const PatientManager = () => { }); const patientsWithNoConsents = patientsWithNoConsentsData?.count; - + */ const { data: permittedFacilities } = useQuery( routes.getPermittedFacilities, { @@ -1013,7 +1013,7 @@ export const PatientManager = () => {
- {!qParams.last_consultation__consent_types && + {/*!qParams.last_consultation__consent_types && (patientsWithNoConsents || 0) > 0 && (
@@ -1030,7 +1030,7 @@ export const PatientManager = () => {

- )} + )*/}