Medic modul visits bug fix; forms templating