From 2e2ad85d33f07b6b29025c17389ab7217c11d5e2 Mon Sep 17 00:00:00 2001 From: Shaurya Gupta Date: Sat, 12 Oct 2024 02:57:59 +0530 Subject: [PATCH] chore: Update PatientConsentRecords component - Added Consultation breadcrumb with URI for updating consultation - Updated backUrl for consultation update Fixes #8765 --- src/Components/Patient/PatientConsentRecords.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/Patient/PatientConsentRecords.tsx b/src/Components/Patient/PatientConsentRecords.tsx index 4ea9a0f294a..1c94e3054b9 100644 --- a/src/Components/Patient/PatientConsentRecords.tsx +++ b/src/Components/Patient/PatientConsentRecords.tsx @@ -107,6 +107,10 @@ export default function PatientConsentRecords(props: { crumbsReplacements={{ [facilityId]: { name: patient?.facility_object?.name }, [patientId]: { name: patient?.name }, + consultation: { + name: "Consultation", + uri: `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/update`, + }, [consultationId]: { name: patient?.last_consultation?.suggestion === "A" @@ -116,7 +120,7 @@ export default function PatientConsentRecords(props: { : patient?.last_consultation?.suggestion_text, }, }} - backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/`} + backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/update`} > {fileUpload.Dialogues} {fileManager.Dialogues}