@laxman, some progress has been made on the above feature. Still the custom widget is available as a Custom Display Control unfortunately (as opposed to a Control brought by Bahmni Apps directly) in one of our client’s config.
Collapsed:
Expanded:
Feel free to have a look and try it if you want to. https://github.com/CRUDEM/bahmni-config-hsc/blob/master/configuration/openmrs/apps/customDisplayControl/js/customControl.js