Search in sources :

Example 11 with Vardenhet

use of se.inera.intyg.common.support.model.common.internal.Vardenhet in project webcert by sklintyg.

the class CopyCompletionUtkastBuilderTest method createWebcertUser.

private WebCertUser createWebcertUser() {
    WebCertUser user = new WebCertUser();
    user.setHsaId(HOSPERSON_ID);
    user.setNamn(HOSPERSON_NAME);
    se.inera.intyg.infra.integration.hsa.model.Vardgivare vGivare = new se.inera.intyg.infra.integration.hsa.model.Vardgivare();
    vGivare.setId(VARDGIVARE_ID);
    vGivare.setNamn(VARDENHET_NAME);
    user.setVardgivare(Arrays.asList(vGivare));
    AbstractVardenhet vardenhet = new se.inera.intyg.infra.integration.hsa.model.Vardenhet();
    vardenhet.setId(VARDENHET_ID);
    vardenhet.setNamn(VARDENHET_NAME);
    user.setValdVardenhet(vardenhet);
    return user;
}
Also used : ValidateDraftResponse(se.inera.intyg.common.support.modules.support.api.dto.ValidateDraftResponse) CopyUtkastBuilderResponse(se.inera.intyg.webcert.web.service.utkast.dto.CopyUtkastBuilderResponse) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardgivare(se.inera.intyg.common.support.model.common.internal.Vardgivare) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardenhet(se.inera.intyg.common.support.model.common.internal.Vardenhet) WebCertUser(se.inera.intyg.webcert.web.service.user.dto.WebCertUser)

Example 12 with Vardenhet

use of se.inera.intyg.common.support.model.common.internal.Vardenhet in project webcert by sklintyg.

the class CopyCompletionUtkastBuilderTest method setup.

@Before
public void setup() {
    hoSPerson = new HoSPersonal();
    hoSPerson.setPersonId(HOSPERSON_ID);
    hoSPerson.setFullstandigtNamn(HOSPERSON_NAME);
    Vardgivare vardgivare = new Vardgivare();
    vardgivare.setVardgivarid(VARDGIVARE_ID);
    vardgivare.setVardgivarnamn(VARDGIVARE_NAME);
    Vardenhet vardenhet = new Vardenhet();
    vardenhet.setEnhetsid(VARDENHET_ID);
    vardenhet.setEnhetsnamn(VARDENHET_NAME);
    vardenhet.setVardgivare(vardgivare);
    hoSPerson.setVardenhet(vardenhet);
    patient = new Patient();
    patient.setPersonId(PATIENT_SSN);
}
Also used : HoSPersonal(se.inera.intyg.common.support.model.common.internal.HoSPersonal) Patient(se.inera.intyg.common.support.model.common.internal.Patient) Vardgivare(se.inera.intyg.common.support.model.common.internal.Vardgivare) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardenhet(se.inera.intyg.common.support.model.common.internal.Vardenhet) Before(org.junit.Before)

Example 13 with Vardenhet

use of se.inera.intyg.common.support.model.common.internal.Vardenhet in project webcert by sklintyg.

the class CreateRenewalCopyUtkastBuilderImplTest method setup.

@Before
public void setup() {
    hoSPerson = new HoSPersonal();
    hoSPerson.setPersonId(HOSPERSON_ID);
    hoSPerson.setFullstandigtNamn(HOSPERSON_NAME);
    Vardgivare vardgivare = new Vardgivare();
    vardgivare.setVardgivarid(VARDGIVARE_ID);
    vardgivare.setVardgivarnamn(VARDGIVARE_NAME);
    Vardenhet vardenhet = new Vardenhet();
    vardenhet.setEnhetsid(VARDENHET_ID);
    vardenhet.setEnhetsnamn(VARDENHET_NAME);
    vardenhet.setVardgivare(vardgivare);
    hoSPerson.setVardenhet(vardenhet);
    patient = new Patient();
    patient.setPersonId(PATIENT_SSN);
}
Also used : HoSPersonal(se.inera.intyg.common.support.model.common.internal.HoSPersonal) Patient(se.inera.intyg.common.support.model.common.internal.Patient) Vardgivare(se.inera.intyg.common.support.model.common.internal.Vardgivare) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardenhet(se.inera.intyg.common.support.model.common.internal.Vardenhet) Before(org.junit.Before)

Example 14 with Vardenhet

use of se.inera.intyg.common.support.model.common.internal.Vardenhet in project webcert by sklintyg.

the class CreateRenewalCopyUtkastBuilderImplTest method createWebcertUser.

private WebCertUser createWebcertUser() {
    WebCertUser user = new WebCertUser();
    user.setHsaId(HOSPERSON_ID);
    user.setNamn(HOSPERSON_NAME);
    se.inera.intyg.infra.integration.hsa.model.Vardgivare vGivare = new se.inera.intyg.infra.integration.hsa.model.Vardgivare();
    vGivare.setId(VARDGIVARE_ID);
    vGivare.setNamn(VARDENHET_NAME);
    user.setVardgivare(Arrays.asList(vGivare));
    AbstractVardenhet vardenhet = new se.inera.intyg.infra.integration.hsa.model.Vardenhet();
    vardenhet.setId(VARDENHET_ID);
    vardenhet.setNamn(VARDENHET_NAME);
    user.setValdVardenhet(vardenhet);
    user.setValdVardgivare(vGivare);
    return user;
}
Also used : ValidateDraftResponse(se.inera.intyg.common.support.modules.support.api.dto.ValidateDraftResponse) CopyUtkastBuilderResponse(se.inera.intyg.webcert.web.service.utkast.dto.CopyUtkastBuilderResponse) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardgivare(se.inera.intyg.common.support.model.common.internal.Vardgivare) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardenhet(se.inera.intyg.common.support.model.common.internal.Vardenhet) WebCertUser(se.inera.intyg.webcert.web.service.user.dto.WebCertUser)

Example 15 with Vardenhet

use of se.inera.intyg.common.support.model.common.internal.Vardenhet in project webcert by sklintyg.

the class CreateUtkastFromTemplateBuilderTest method createWebcertUser.

private WebCertUser createWebcertUser() {
    WebCertUser user = new WebCertUser();
    user.setHsaId(HOSPERSON_ID);
    user.setNamn(HOSPERSON_NAME);
    se.inera.intyg.infra.integration.hsa.model.Vardgivare vGivare = new se.inera.intyg.infra.integration.hsa.model.Vardgivare();
    vGivare.setId(VARDGIVARE_ID);
    vGivare.setNamn(VARDENHET_NAME);
    user.setVardgivare(Arrays.asList(vGivare));
    AbstractVardenhet vardenhet = new se.inera.intyg.infra.integration.hsa.model.Vardenhet();
    vardenhet.setId(VARDENHET_ID);
    vardenhet.setNamn(VARDENHET_NAME);
    user.setValdVardenhet(vardenhet);
    user.setValdVardgivare(vGivare);
    return user;
}
Also used : ValidateDraftResponse(se.inera.intyg.common.support.modules.support.api.dto.ValidateDraftResponse) CopyUtkastBuilderResponse(se.inera.intyg.webcert.web.service.utkast.dto.CopyUtkastBuilderResponse) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardgivare(se.inera.intyg.common.support.model.common.internal.Vardgivare) AbstractVardenhet(se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet) Vardenhet(se.inera.intyg.common.support.model.common.internal.Vardenhet) WebCertUser(se.inera.intyg.webcert.web.service.user.dto.WebCertUser)

Aggregations

Vardenhet (se.inera.intyg.common.support.model.common.internal.Vardenhet)20 Vardgivare (se.inera.intyg.common.support.model.common.internal.Vardgivare)13 AbstractVardenhet (se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet)8 Patient (se.inera.intyg.common.support.model.common.internal.Patient)6 HoSPersonal (se.inera.intyg.common.support.model.common.internal.HoSPersonal)5 Before (org.junit.Before)4 Utkast (se.inera.intyg.webcert.persistence.utkast.model.Utkast)4 VardpersonReferens (se.inera.intyg.webcert.persistence.utkast.model.VardpersonReferens)4 WebCertUser (se.inera.intyg.webcert.web.service.user.dto.WebCertUser)4 CopyUtkastBuilderResponse (se.inera.intyg.webcert.web.service.utkast.dto.CopyUtkastBuilderResponse)4 ValidateDraftResponse (se.inera.intyg.common.support.modules.support.api.dto.ValidateDraftResponse)3 IntegreradEnhetEntry (se.inera.intyg.webcert.web.integration.registry.dto.IntegreradEnhetEntry)3 IOException (java.io.IOException)2 ModuleApi (se.inera.intyg.common.support.modules.support.api.ModuleApi)2 ModuleException (se.inera.intyg.common.support.modules.support.api.exception.ModuleException)2 WebCertServiceException (se.inera.intyg.webcert.common.service.exception.WebCertServiceException)2 LocalDateTime (java.time.LocalDateTime)1 Consumes (javax.ws.rs.Consumes)1 POST (javax.ws.rs.POST)1 Produces (javax.ws.rs.Produces)1