changed patients_reinitiated query