I am using patientSearchWidget and wanted to instead of having it load a url i can configure after a patient is selected, rather bind a selected patient onto the search input field so that i can use the same widget in my own form that i submit separately.
I have therefore made afterSelectedUrl configuration optional to trigger a binding of 2 attributes selected_uuid and selected_name onto the patient search input field.
here is the pull request: https://github.com/openmrs/openmrs-module-coreapps/pull/154
I am using those 2 new fields attributes in my other module to dynamically set the a hidden patientId/uuid input which i bind to a Patient object in the controller and to append the selected patient onto some desired element