fixed patient history bug on medical