care
care copied to clipboard
Added constraints to models to not allot multiple patients the same bed
Proposed Changes
- Added constraint in ConsultationBed model so no 2 patients can be allotted the same bed.
- Added constraint in PatientConsultation model so no 2 patients can be allotted the same bed provided both of them are admitted.
Associated Issue
Issue #898
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@vigneshhari I tried adding a patient to the same bed, except we don't get that bed listed when we're trying to add another patient.
Already Resolved in https://github.com/coronasafe/care/pull/854
cc: @vigneshhari