fixed trigger for visit_medicines, but it still cannot be loaded (syntax error in load file i think)