Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs redirection to patient edit consultation form is not working as expected #8759

Open
1 task
nihal467 opened this issue Oct 11, 2024 · 5 comments · May be fixed by #8985
Open
1 task

Breadcrumbs redirection to patient edit consultation form is not working as expected #8759

nihal467 opened this issue Oct 11, 2024 · 5 comments · May be fixed by #8985
Assignees

Comments

@nihal467
Copy link
Member

Describe the bug

from the patient consent record page, when we click on the consultation, in the breadcrumbs, we are taken to a new consultation form,not the existing consultation of the patient

To Reproduce
Steps to reproduce the behavior:

  1. Go to any active consultation
  2. Click on manage patients and click on the consent records
  3. view the breadcrumbs on the left side and click on the consultation
  4. See error

Expected behavior

  • When we click on the consultation in the breadcrumbs, it should take the user to the patient's existing consultation page

Screenshots

Image

@nihal467 nihal467 changed the title Breadcrumbs redirection to patient edit consultation form is not as expected Breadcrumbs redirection to patient edit consultation form is not working as expected Oct 11, 2024
@noufalrahim
Copy link
Contributor

@nihal467 can u assign this to me

@shauryag2002
Copy link
Contributor

Hi @nihal467 , Can i work on this issue?

@ahmedobaid23
Copy link
Contributor

@nihal467 is someone working on this?

@ahmedobaid23
Copy link
Contributor

ahmedobaid23 commented Oct 15, 2024

@nihal467

First of all, these are the breadcrumbs:

Image

and these are the URIs linked to each of the breadcrumb:

Image

As you can see, no matter which page you are on, whenever you click on Consultation from the breadcrumbs, you will always be redirected to Create Consultation page because the URI linked to Consultation corresponds to that page in the routing. However if you click on Admitted on 03:54 PM; 10/12/2023 (which is unclickable from the Patient Consent Records page), you will be redirected to the consultation of the patient because of its URI.

Similar is the case for when you click on Patient from the breadcrumbs, you will be redirected to Create Patient page because the URI linked to Patient corresponds to that page in the routing. But when you click on the name of the patient (Anjali Krishnan in this case), you will be redirected to her page.

Actually, in many pages like Patient Dashboard and Patient Consent Records page, the patientId and consultationId are replaced by patient's name and encounter date respectively as you can see in the picture below:

Image

Also, on every page, the last two crumbs were rendered unclickable (as a span) because of the logic issue. Shouldn't only the last crumb be rendered as unclickable and the rest as a Link? In this way, clicking on the Admitted on 03:54 PM; 10/12/2023 navigates the user to the consultation of the patient.

The solution I have in my mind is to change Admitted on 03:54 PM; 10/12/2023 back to consultationId on all these pages and make it clickable so that clicking it navigates the user back to consultation of the patient.

If you have some other solution, kindly suggest me.

@github-actions github-actions bot added the stale label Oct 30, 2024
@shauryag2002
Copy link
Contributor

@nihal467 ,Working on this issue as the initially assigned person was unable to complete it on time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Review required
Development

Successfully merging a pull request may close this issue.

4 participants