diff --git a/src/components/Patient/PatientHome.tsx b/src/components/Patient/PatientHome.tsx index 6bda169cdc7..9f8ed049b5a 100644 --- a/src/components/Patient/PatientHome.tsx +++ b/src/components/Patient/PatientHome.tsx @@ -241,10 +241,15 @@ export const PatientHome = (props: any) => { !(patientData?.last_consultation?.facility === facilityId) ); }; + // Commented out as this is no longer used should I completely remove this? - const isPatientEligibleForNewConsultation = (patientData: PatientModel) => { - return patientData.is_active ? true : false; - }; + // const isPatientEligibleForNewConsultation = (patientData: PatientModel) => { + // return patientData.is_active && + // (!patientData?.last_consultation || + // patientData?.last_consultation?.discharge_date) + // ? true + // : false; + // }; return ( {
-
- isPatientEligibleForNewConsultation(patientData) && - navigate( - `/facility/${patientData?.facility}/patient/${id}/consultation`, - ) - } - > -
-
- - - -
- -
-

- Add Consultation -

-
-
-
navigate(`/patient/${id}/investigation_reports`)}