Search in sources :

Example 1 with ICoverageBuilder

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);
}
Also used : IPerson(ch.elexis.core.model.IPerson) IEncounter(ch.elexis.core.model.IEncounter) IContactBuilder(ch.elexis.core.model.builder.IContactBuilder) ICoverage(ch.elexis.core.model.ICoverage) IMandator(ch.elexis.core.model.IMandator) ICoverageBuilder(ch.elexis.core.model.builder.ICoverageBuilder) TimeTool(ch.rgw.tools.TimeTool) IEncounterBuilder(ch.elexis.core.model.builder.IEncounterBuilder) IPatient(ch.elexis.core.model.IPatient)

Aggregations

ICoverage (ch.elexis.core.model.ICoverage)1 IEncounter (ch.elexis.core.model.IEncounter)1 IMandator (ch.elexis.core.model.IMandator)1 IPatient (ch.elexis.core.model.IPatient)1 IPerson (ch.elexis.core.model.IPerson)1 IContactBuilder (ch.elexis.core.model.builder.IContactBuilder)1 ICoverageBuilder (ch.elexis.core.model.builder.ICoverageBuilder)1 IEncounterBuilder (ch.elexis.core.model.builder.IEncounterBuilder)1 TimeTool (ch.rgw.tools.TimeTool)1