Encounter Details Template

This solved my issue.

Thanks…

https://talk.openmrs.org/t/posting-to-a-fragment-controller/2920

This is related post in case someone else is looking for the same thing.