Customizing Forms and Visits display controls

Hello friends, needed help on customisation of the forms display control, could it be possible to show concepts with corresponding values in colums for example from surgery form it should display surgery date, surery procedure not the form Likewise with the visits, wanted it to show visit date, visit site for every particular visit and not IPD/OPD visit

Hello @ejustine, You can use custom display control feature in Bahmni to display the same. Please check for the same here: https://bahmni.atlassian.net/wiki/display/BAH/Custom+Controls. You can build your own HTML view for the display control.

Likewise with the visits, wanted it to show visit date, visit site for every particular visit and not IPD/OPD visit

For this, I believe bahmni already shows multiple visits rather than only OPD/IPD.

1 Like

Thanks for the help, to be specific what i meant was customising visit display control to show pivot table which is looks like this:

And the source is fields from the visit form

Hello @ejustine,

Currently Bahmni doesn’t support visit display control like above pivot table. It only display visit time and visit type on two different column. If you want to display a customize display control, please use Bahmni Custom Display Control. On the Javascript end you can make API calls to fetch those values and display on your pivot table.

Alright thanks for the response but am not that good in java or coding how can i be helped

Hi, You no need to know Java for this. Just need some basic idea about HTML, JSON, Javascript and AngularJS to achieve this display control. You can read online articles and follow some tutorials to get a sense of these programming related tasks. If you are a non programmer, and want to customize Bahmni, then I would suggest you to sit with one who have understanding related to these languages. It might give you a good starting point.

Alright may be, i try pushing the post to other forums, someone could be having a snippet