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

Multiple beds "in use" by same patient #6989

Open
rithviknishad opened this issue Jan 7, 2024 · 6 comments
Open

Multiple beds "in use" by same patient #6989

rithviknishad opened this issue Jan 7, 2024 · 6 comments
Assignees
Labels
Backend backlog bug Something isn't working

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Jan 7, 2024

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 rithviknishad added bug Something isn't working Backend labels Jan 7, 2024
@sainak sainak self-assigned this Jan 7, 2024
Copy link

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 github-actions bot added the stale label Jan 22, 2024
@balaji-sivasakthi
Copy link

i will work this issue.

@github-actions github-actions bot removed the stale label Mar 6, 2024
@Thanush19
Copy link

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

Copy link

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

@github-actions github-actions bot added the stale label Apr 28, 2024
@gigincg
Copy link
Member

gigincg commented Aug 5, 2024

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

@gigincg gigincg added backlog and removed stale labels Aug 5, 2024
@sainak
Copy link
Member

sainak commented Aug 5, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend backlog bug Something isn't working
Projects
Status: Up Next
Development

No branches or pull requests

5 participants