use of ch.elexis.core.model.builder.ICoverageBuilder in project elexis-server by elexis.
the class AbstractServiceTest method createTestMandantPatientFallBehandlung.
public void createTestMandantPatientFallBehandlung() {
TimeTool timeTool = new TimeTool();
IPerson mandator = new IContactBuilder.PersonBuilder(modelService, "mandator1 " + timeTool.toString(), "Anton" + timeTool.toString(), timeTool.toLocalDate(), Gender.MALE).mandator().buildAndSave();
mandator.setMandator(true);
testContacts.add(mandator);
IPatient patient = new IContactBuilder.PatientBuilder(modelService, "Armer", "Anton" + timeTool.toString(), timeTool.toLocalDate(), Gender.MALE).buildAndSave();
testPatients.add(patient);
ICoverage testFall = new ICoverageBuilder(modelService, patient, "Fallbezeichnung", "Fallgrund", "KVG").buildAndSave();
testFaelle.add(testFall);
IEncounter behandlung = new IEncounterBuilder(modelService, testFall, (IMandator) mandator).buildAndSave();
testBehandlungen.add(behandlung);
}
Aggregations