Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Enabling the new Bed Management Module

You can enable the new BM by configuring it as an extension in bahmni_config/home/extension.json like below or as configured in default config here

App Extension Definition
"newBedManagement": {
    "id": "bahmni.ipd",
    "extensionPointId": "org.bahmni.home.dashboard",
    "type": "link",
    "translationKey": "MODULE_LABEL_BED_MANAGEMENT_KEY",
    "label": "InPatient",
    "url": "../bedmanagement/#/home",
    "icon": "fa-bed",
    "order": 7,
    "requiredPrivilege": "app:adt"
 }

App Configuration

The new Bed Management Application is configured by typical app config in form a app.json file placed within "bahmni_config/openmrs/apps/ipd/". You can refer to this file as an example


Ward List View 

  • The configuration for this field is mandatory

"wardListSqlSearchHandler": "bedManagement.sqlGet.patientListForAdmissionLocation"

The above configuration fetches the data that is shown in the list view of a ward. You may modify the SQL query relevant to the above Global Property defined in OpenMRS. You can do this via OpenMRS Admin UI

  • Administration => Maintenance => Bed Management => edit property 'SQL Get Patient List For Admission Location'


Default Visit Type

"defaultVisitType": "IPD",



Key Fields

Configuration NameDefault ValueDescriptionValue Type
wardListSqlSearchHandler
Internationalizes the dashboard title. You can provide the key or the title itself.Text
label
If internationalization is not required, then the title of the dashboard can be directly given in label.
Either translationKey or a label is mandatory. 
Text
displayByDefault

True/false. Opens the dashboard tab by default if given as true.

At least one dashboard should mandatorily have this as true.

True/false
maxRecentlyViewedPatients
Configure the number of patients in "recently viewed patients" under the patient switch buttonNumber
sections
Any display control can be configured in this section. To configure display controls see
Display Controls 
{}

printing


This is optional parameter. This can be defined when print functionality is needed

KeyInfo
title
name of organisation
header
name of document
logo
path of hospital logo file
showNameAndImage
If set to false, will hide patient name and image on the print page. By default, patient name and image are displayed on the print page

Below keys are considered only when QuickPrint is enabled

label

name to be displayed on the QuickPrint dropdown.

Default value when no configuration for label

If label is not configured, then header is considered

shortcutKey

character to be used as keyboard short cut



 Sample configuration for printing
"printing": {
           "title": "ABC Hospital",
           "header": "General Report",
           "logo": "../images/bahmniLogo.png",
			"showNameAndImage": true,
		   "label": "General"
           "shortcutKey":"g"
       }

{}



"diagnosisStatus": "Inactive",
"onAdmissionForwardTo": "#",
"onTransferForwardTo": "#",
"onDischargeForwardTo": "#",
"defaultVisitType": "IPD",
"expectedDateOfDischarge": "",
"conceptSetUI": {
"Expected Date of Discharge": {
"disableAddNotes": true,
"allowFutureDates": true
}
}



Enhancements

  1. Left Panel for Patient Context
  2. Tags
  3. Patient movement history 
  4. Expected Date Of Discharge
  5. wardListSqlSearchHandler
  6. hideStartNewVisitPopUp

Configure Patient Lists/Queues

Add the configuration in extension.json file in the ipd folder here https://github.com/Bahmni/default-config/blob/master/openmrs/apps/adt/extension.json


The extension that you need to implement is "org.bahmni.patient.search"

Configure "To Admit" Tab

This tab is used to view the the list of patients who are asked to admit.

"bahmniAdtPatientsSearchPatientsToAdmit":{
    "id": "bahmni.adt.patients.search.patientsToAdmit",
    "extensionPointId": "org.bahmni.patient.search",
    "type": "config",
    "extensionParams": {
      "searchHandler": "emrapi.sqlSearch.patientsToAdmit",
      "translationKey": "MODULE_LABEL_TO_ADMIT_KEY",
      "forwardUrl":"#/bedManagement/patient/{{patientUuid}}"
    },
    "label": "To Admit",
    "order": 1,
    "requiredPrivilege": "app:adt"
  }

Configure Admitted Tab

This tab is used to view the the list of patients who are already admitted.

"bahmniAdtPatientsSearchPatientsAdmitted":{
    "id": "bahmni.adt.patients.search.patientsAdmitted",
    "extensionPointId": "org.bahmni.patient.search",
    "type": "config",
    "extensionParams": {
      "searchHandler": "emrapi.sqlSearch.admittedPatients",
      "translationKey": "MODULE_LABEL_ADMITTED_KEY",
      "forwardUrl" : "#/bedManagement/patient/{{patientUuid}}"
    },
    "label": "Admitted",
    "order": 2,
    "requiredPrivilege": "app:adt"
}

Configure "To Discharge" Tab

This tab is used to view the the list of patients who have to be discharged.

"bahmniAdtPatientsSearchPatientsToDischarge":{
    "id": "bahmni.adt.patients.search.patientsToDischarge",
    "extensionPointId": "org.bahmni.patient.search",
    "type": "config",
    "extensionParams": {
      "searchHandler": "emrapi.sqlSearch.patientsToDischarge",
      "translationKey": "MODULE_LABEL_TO_DISCHARGE_KEY",
      "forwardUrl" : "#/bedManagement/patient/{{patientUuid}}"
    },
    "label": "To Discharge",
    "order": 3,
    "requiredPrivilege": "app:adt"
}

Configure "All" Tab

This tab is used to view the the list of patients who have to be admitted.

"bahmniAdtPatientsSearchAllPatients":{
    "id": "bahmni.adt.patients.search.allPatients",
    "extensionPointId": "org.bahmni.patient.search",
    "type": "config",
    "extensionParams": {
      "translationKey": "MODULE_LABEL_ALL_KEY",
      "forwardUrl" : "#/bedManagement/patient/{{patientUuid}}"
    },
    "label": "All",
    "order": 4,
    "requiredPrivilege": "app:adt"
}
  • No labels