Making diagnosis and Discharge Summary mandatory

There is a request from a hospital using Bahmni that the diagnosis and Discharge summary should be mandatory, without which discharge should not be allowed to be done. Any suggestions on how can this be done?

I think you can make this using client side validation or server side validation at the time of capturing diagnosis

you need a trigger point - if you are thinking of doing this from IPD discharge, then maybe we can think of a decision point that is configurable for that action?

1 Like

For completeness sake for this conversation, it seems the way this was done in Bahmni at JSS, was to use the Groovy script option to pre-fill Discharge Summary Form with template data.

Here is the code: jss-config/openmrs/BahmniObsValueCalculator.groovy at master · JanSwasthyaSahyog/jss-config · GitHub

Groovy Script Documentation on Bahmni Wiki: