In the new BM front end, users would want to see a list view of a particular ward. In line with the older BM feature, we would like to have the List View details configurable.
To achieve this, we will use SQL based queries which will be registered against a global property "bedManagement.sqlGet.patientListForAdmissionLocation".
In app-config for IPD, we can configure the "wardListSqlSearchHandler" to specify the above named sql search handler.
Bed Management Module - The module should come bundled with a default SQL for listing Patients in a ward. Since the BM itself is an independent openmrs module (no dependency on Bahmni), the SQL should not assume anything relevant to Bahmni - Concepts, Process/Workflow, Metadata etc.
Bahmni-Core - should override the above global property and provide a more contextual bahmni specific SQL with information like Admission date time, admission by, disposition by, disposition date, diagnosis of the patient etc etc - inline with existing feature in older bed management.
default-config should have wardListSqlSearchHandler" specified as "bedManagement.sqlGet.patientListForAdmissionLocation".
Removed patientWardDetails.sql from default-config as has moved sql to both bedmanagement and bahmni-core modules. Below is the commit detail
Tested on qa08 and working as expected.