add a wait after confirmPatient