Capture Consultation Data

Displaying a Prompt when Navigating Away Consultation/Closing the Browser/Webpage

Displaying a Prompt when Navigating Away From Consultation

 

This is undesirable as the User can lose any unsaved information for the current patient. To improve usability, the user is shown a prompt asking to save any unsaved changes. This is configurable for an installation.

Please find the code snippet below:

Display Pop-up Message to Save Data when Closing the Browser/Webpage

Similar to what functions above, there is a checkpoint to prompt the User to save any unsaved changes when he navigates within the Consultation section, stays on the same patient and tries to close the browser/webpage. This checkpoint is configurable.

Please find the code snippet below: 

For example , in Clinical/app.json

 

“config” : {
“showSaveConfirmDialog” : true
}

 

Show recent patient button on consultation

Currently we have ability to switch recent patients as well as search active patients on patient dashboard. If you want the same functionality on consultation page you can configure as follows:

You can configure "allowPatientSwitchOnConsultation" on config section of app.json in clinical module. You can pass true/false to this config. The default value is false.

Sample Config
"config": {
	"allowPatientSwitchOnConsultation": true
}

 

 

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)