Skip to content

Commit

Permalink
Fix: Breadcrumbs redirection to patient edit consultation form (#8985)
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryag2002 authored Nov 28, 2024
1 parent 6bea49a commit fa5fa25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ export const ConsultationDetails = (props: any) => {
crumbsReplacements={{
[facilityId]: { name: patientData?.facility_object?.name },
[patientId]: { name: patientData?.name },
consultation: {
name: "Consultation",
uri: `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/update`,
},
[consultationId]: {
name:
consultationData.suggestion === "A"
Expand Down
6 changes: 5 additions & 1 deletion src/components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,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"
Expand All @@ -121,7 +125,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}
Expand Down

0 comments on commit fa5fa25

Please sign in to comment.