I want to rename the button Abnormal at Observation form e.g. at Vitals. I have checked the concept class “Abnormal” and I have renamed the concept class to something else but after that, the button wasn’t in the form. Does dose anyone know how to rename this button?
This button is an indicator to show whether the value is outside or within Normal range. It cannot be modified at concept level, since it is not controlled by a specific concept. It is a generic Bahmni UI feature.
If I open the Chrome Dev tools for this screen, here is what I see:
The solution: I have changed the value of OBS_ABNORMAL_TRANSLATE_KEY in the file bahmni_apps/i18n/clinical/locale_en.json and the string value of button Abnormal was changed.
Please note, that since you modified a core file – the next time you upgrade Bahmni UI to a new version, this file will be overwritten and you will see “Abnormal” string again showing up. Do make a list of all such modifications, so that post a Bahmni upgrade, you manually make these changes. And inform your team.
As per Bahmni design, the bahmni_config folder is the place where ideally all implementation specific changes reside, so that when you make a core upgrade, the bahmni_config folder remains as-is, and the new Bahmni EMR picks up the configurations/translations from its linked bahmni_config folder. Please do check if you can add this translation line in the local_en.json in bahmni_config. If that works, then that would be a better solution.