How to print an encounter details? - OpenMRS 2x and RefApp 2x

This is what I was asking for

Currently, I have hard-coded the xreport URL for each encounter type in Coreapps Module.

In future, we can set this report URL in Form Management for each form. Also we should be able to set the print right based on encounter type.