Added updating of PatientQuery