Use same patientsname query function in WebPortal and in BrowserController