Update Details
diff --git a/src/components/Patient/DailyRounds.tsx b/src/components/Patient/DailyRounds.tsx
index c12621e410f..d9bcb1366d5 100644
--- a/src/components/Patient/DailyRounds.tsx
+++ b/src/components/Patient/DailyRounds.tsx
@@ -144,7 +144,7 @@ export const DailyRounds = (props: any) => {
const [diagnoses, setDiagnoses] = useState
();
const [showDiscontinuedPrescriptions, setShowDiscontinuedPrescriptions] =
useState(false);
- const headerText = !id ? "Add Consultation Update" : "Info";
+ const headerText = !id ? t("add") + " " + t("log_update") : "Info";
const buttonText = !id
? !["VENTILATOR", "DOCTORS_LOG"].includes(state.form.rounds_type)
? t("save")
@@ -411,7 +411,7 @@ export const DailyRounds = (props: any) => {
);
} else {
navigate(
- `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/daily_rounds/${obj.id}/update`,
+ `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/log_updates/${obj.id}/update`,
);
}
}
@@ -439,7 +439,7 @@ export const DailyRounds = (props: any) => {
);
} else {
navigate(
- `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/daily_rounds/${obj.id}/update`,
+ `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/log_updates/${obj.id}/critical_care/update`,
);
}
}
@@ -553,7 +553,7 @@ export const DailyRounds = (props: any) => {
}}
backUrl={
id
- ? `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/daily-rounds`
+ ? `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/log_updates`
: `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}`
}
className="mx-auto max-w-4xl"
diff --git a/src/components/Patient/PatientHome.tsx b/src/components/Patient/PatientHome.tsx
index 3b5924009bb..9d3ab238e5b 100644
--- a/src/components/Patient/PatientHome.tsx
+++ b/src/components/Patient/PatientHome.tsx
@@ -242,14 +242,6 @@ export const PatientHome = (props: any) => {
);
};
- 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`,
- )
- }
- >
-
-
navigate(`/patient/${id}/investigation_reports`)}
@@ -1290,28 +1239,6 @@ export const PatientHome = (props: any) => {
-
-
- navigate(
- `/facility/${patientData?.facility}/patient/${id}/consultation`,
- )
- }
- >
-
-
- Add Consultation
-
-
-
{
if (