ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
249 stars 430 forks source link

Add Consultation button is disabled after patient is discharged #9055

Open yash-learner opened 6 hours ago

yash-learner commented 6 hours ago

Describe the bug Can not add a consultation via UI after a patient is discharged as the Add Consultation button is disabled. It is can be still accessed via visiting the route.

To Reproduce Steps to reproduce the behavior:

  1. Go to patient with a consultation. - Visit consultation page
  2. Click Manage Patient
  3. Click Discharge from Care
  4. Now, you can notice Add consultation button is disabled but you can still access the route.

Expected behavior I think the button should be enabled and should be possible to add a new consultation.

Screenshots If applicable, add screenshots to help explain your problem.

https://github.com/user-attachments/assets/9a835589-ba85-44b7-89be-e4eb74af66ba

Rishith25 commented 5 hours ago

Can I work on this

yash-learner commented 4 hours ago

@rithviknishad @Jacobjeevan 👆

nihal467 commented 2 hours ago

@yash-learner It is an expected behavior, once a patient is discharged, without readmission we shouldn't allow new consultation