added patient vars for prescriptions and appointments