Added search visit page to legal, fixed doctor search visit page to only search patients they have access to.
fixing merge issues