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/chartsearch.page?patientId={{patient.patientId}}’, so i have so-far tried this:

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

but this fails on selecting a result, with a NPE as http://pastebin.com/D0QU0NpH

@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