care icon indicating copy to clipboard operation
care copied to clipboard

Multiple beds "in use" by same patient

Open rithviknishad opened this issue 1 year ago • 6 comments

Describe the bug

  • Able to assign multiple ConsultationBed records that are active for the same patient.
  • This leads to another issue, now the patient cannot be shifted to a new bed either.

Tip: My mouse has a nice flaw these days, 50% of the time it accidentally performs double-clicks when a single click was intended.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://localhost:4000/facility/015ad911-39b7-4104-b304-bf8178c33830/patient/76742faa-30dd-4eb9-9649-fe718f947ec0/consultation/2ad89b7c-7bff-4035-a3c6-36d53551a8f0
  2. See bed history

Expected behavior

  • Multiple active ConsultationBed for the same consultation should not be able to be created. (DB Constraint)
  • Should be able to shift for such buggy cases.

cc: @sainak

Screenshots image

rithviknishad avatar Jan 07 '24 05:01 rithviknishad

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity.

github-actions[bot] avatar Jan 22 '24 04:01 github-actions[bot]

i will work this issue.

balaji-sivasakthi avatar Mar 04 '24 20:03 balaji-sivasakthi

Hey, if the issue is not completed, I can work on this. @rithviknishad

Thanush19 avatar Mar 07 '24 23:03 Thanush19

Hi, @coronasafe/care-frontend-maintainers, This issue has been automatically marked as stale because it has not had any recent activity.

github-actions[bot] avatar Apr 28 '24 04:04 github-actions[bot]

@sainak Can you update the status of this? Is this still an issue?

gigincg avatar Aug 05 '24 01:08 gigincg

@sainak Can you update the status of this? Is this still an issue?

this issue is similar to the duplicate consultation issue, it is caused by a race condition

sainak avatar Aug 05 '24 18:08 sainak

@sainak status here!

bodhish avatar Nov 25 '24 05:11 bodhish