Skip to content

Commit

Permalink
chore: Update PatientConsentRecords component
Browse files Browse the repository at this point in the history
- Added Consultation breadcrumb with URI for updating consultation
- Updated backUrl for consultation update
Fixes ohcnetwork#8765
  • Loading branch information
shauryag2002 committed Oct 11, 2024
1 parent cad0b65 commit 2e2ad85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}
Expand Down

0 comments on commit 2e2ad85

Please sign in to comment.