removed change for null patients and medicine as it didn't work