Not possible to create Bed Layout without mentioning all bed details

Description

As a user, I am unable to create "bed layout" in "Ward Management Console".

Tech: A liquibase migration was added that made "bed_location_map.bed_id" as NOT NULL column. This has resulted that no layout can be created without beds allocated to each and every position. This means that only way one can create a layout is by specifying beds for all the "locations" in the layout. However, the "Ward management" and the apps display the layout by computing the "Layout Grid" (row_number and column_number of bed_location_map table), where the "bed_id" column can be NULL/EMPTY.

Resolution: Remove NOT null constraint for the field "bed_location_map.bed_id"

Verification Step:
1. Check the "bed_id" column is nullable in openmrs.bed_location_map.
> Show create table bed_location_map;

2. Verify that we can create a layout from the "ward management" for a given Ward ("Admission location")

Activity

Show:
Himabindu Akkinepalli
March 15, 2019, 7:06 AM
Himabindu Akkinepalli
March 15, 2019, 7:08 AM

We need to update bahmni-distro with latest bedmanagement omod released version which has above migration changes

Himabindu Akkinepalli
April 17, 2019, 8:47 AM

Updated BM version 5.10.0 in the bahmni distro. Need to test this card for bahmni 0.91, bahmni 0.92 and bahmni 0.93

Angshuman Sarkar
April 22, 2019, 7:27 AM
  • R 0.92: Tested and Verified with BM module OMOD version 5.10.0.

Angshuman Sarkar
April 23, 2019, 12:31 PM
  • R 0.91 patch: Tested and verified with BM 5.10.0

Fixed

Assignee

Angshuman Sarkar

Reporter

Angshuman Sarkar

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Sprint

0.93 Product M1

Fix versions

Configure