medical student legal obligations