Is there a way to dynamically update an observation form field based on a change in another?

Hi Dominic, Yes, there is a way in Bahmni to dynamically update an observation form field based on other inputs. It’s being used for calculations like EDD from LMP and BMI from Height & Weight. You can have a look at how it works in Obstetrics form on demo.mybahmni.org To understand how to set it up, please refer to the wiki page Auto-Calculation of Observations. Implementer has to write the calculations in a groovy script. The calculations happen at server side. So the user has to save the form before the field is calculated and shown on UI.

2 Likes