coreapps patientSearchWidget on patient select action

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:

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

I have commented on github

1 Like