care icon indicating copy to clipboard operation
care copied to clipboard

Added constraints to models to not allot multiple patients the same bed

Open siddnikh opened this issue 2 years ago • 1 comments

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

siddnikh avatar Sep 27 '22 10:09 siddnikh

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Sep 27 '22 13:09 sonarqubecloud[bot]

@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.

siddnikh avatar Nov 28 '22 16:11 siddnikh

Already Resolved in https://github.com/coronasafe/care/pull/854

cc: @vigneshhari

gigincg avatar Nov 30 '22 14:11 gigincg