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"
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")
Below PR raised by -> https://github.com/openmrs/openmrs-module-bedmanagement/pull/53
has approved and merged the above PR. Below are the commit details
We need to update bahmni-distro with latest bedmanagement omod released version which has above migration changes
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
R 0.92: Tested and Verified with BM module OMOD version 5.10.0.
R 0.91 patch: Tested and verified with BM 5.10.0