예제 #1
0
 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;
 }
예제 #2
0
 @After
 public void tearDown() {
   markForDeletion(allPatients.getAll().toArray());
 }