Added form for patient category. Also fixed patient search.