ningosi
(Nicholas Ingosi)
March 9, 2018, 12:39pm
1
All,
I have a use case where I need to have a create patien t button in the search app in reference application such that when a patient is missed through searching, one can just click the button to redirect tot he registration page. Anyone who has done that already I can extend? @mksd @ssmusoke @darius @raff
ssmusoke
(Stephen Senkomago Musoke)
March 9, 2018, 4:53pm
2
@ningosi That is already there on the Search Page. I suggest you do the following:
Disable the current search widget on the home page
Create a new search widget and add the registationAppLink which will enable the button, see example from UgandaEMR
{ "id": "ugandaemr.findPatient", "instanceOf": "coreapps.template.findPatient", "description": "Basic patient search that goes to the patient dashboard", "order": 2, "extensions": [ { "id": "ugandaemr.findPatientLink", "extensionPointId": "org.openmrs.referenceapplication.homepageLink", "type": "link", "label": "coreapps.findPatient.app.label", "url": "coreapps/findpatient/findPatient.page?app=ugandaemr.findPatient", "icon": "icon-search", "requiredPrivilege": "App: coreapps.findPatient" } ], "config": { "registrationAppLink": "registrationapp/registerPatient.page?appId=aijar.registrationapp.registerPatient" } }
``
1 Like