create medicine model and update patient model