2nd Attempt

- new way to detect standalone mode — file url protocol is file
— implemented search for patients and reports