From ceef2624e2afcd312f22469b0cad36dda9bd99c9 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 23 Jul 2024 18:00:41 +0530 Subject: [PATCH 1/2] hide no consent record badges --- src/Components/Patient/ManagePatients.tsx | 6 +++--- src/Components/Patient/PatientConsentRecords.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index b6fc98935e2..5ceea926a5e 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 ? (
@@ -707,7 +707,7 @@ export const PatientManager = () => { )} - {!!patient.last_consultation?.has_consents.length || ( + {/* {!!patient.last_consultation?.has_consents.length || ( { - )} + )} */}
diff --git a/src/Components/Patient/PatientConsentRecords.tsx b/src/Components/Patient/PatientConsentRecords.tsx index a8b94f2d041..7f5a981a5e7 100644 --- a/src/Components/Patient/PatientConsentRecords.tsx +++ b/src/Components/Patient/PatientConsentRecords.tsx @@ -235,7 +235,7 @@ export default function PatientConsentRecords(props: {
{fileUpload.error}
- {consentRecords?.filter( + {/* {consentRecords?.filter( (r) => r.files?.filter( (f) => @@ -249,7 +249,7 @@ export default function PatientConsentRecords(props: { !consentRecords && (
) - )} + )} */}
{consentRecords?.map((record, index) => ( Date: Tue, 23 Jul 2024 18:31:22 +0530 Subject: [PATCH 2/2] unhide from consultation dashboard --- src/Components/Patient/PatientConsentRecords.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Patient/PatientConsentRecords.tsx b/src/Components/Patient/PatientConsentRecords.tsx index 7f5a981a5e7..a8b94f2d041 100644 --- a/src/Components/Patient/PatientConsentRecords.tsx +++ b/src/Components/Patient/PatientConsentRecords.tsx @@ -235,7 +235,7 @@ export default function PatientConsentRecords(props: {
{fileUpload.error}
- {/* {consentRecords?.filter( + {consentRecords?.filter( (r) => r.files?.filter( (f) => @@ -249,7 +249,7 @@ export default function PatientConsentRecords(props: { !consentRecords && (
) - )} */} + )}
{consentRecords?.map((record, index) => (