public Patient createPatientOnActiveTreatment( String patientId, String firstName, String providerId, String providerDistrict, DateTime dateModified) { Therapy therapy = createTherapy(); Patient patient = new Patient(patientId, firstName, "Singh", Gender.M, "1234567890"); Treatment treatment = createTreatment(providerId, providerDistrict); patient.addTreatment(treatment, therapy, dateModified, dateModified); allPatients.add(patient); return patient; }
@After public void tearDown() { markForDeletion(allPatients.getAll().toArray()); }