Defining unique URL for afterSelectedUrl property of patientsearch widget

Am writing a fragment that includes the patient search widget and am interested in setting the afterSelectedUrl to something like: ‘/chartsearch/{{patient.patientId}}’, so i have so-far tried this:

${ ui.includeFragment("coreapps", "patientsearch/patientSearchWidget",
[ afterSelectedUrl: '/chartsearch/{{patient.patientId}}',
	showLastViewedPatients: true 

but this fails on selecting a result, with a NPE as

@mogoodrich and @darius , plus @wyclif, et-cetera, how do i go about this?

I searched on github here and all of the examples show {{patientId}} (not patient.patientId).

1 Like

That works well, thanks @darius