Search in sources :

Example 6 with AbstractVardenhet

use of se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet 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

AbstractVardenhet (se.inera.intyg.infra.integration.hsa.model.AbstractVardenhet)6 Vardenhet (se.inera.intyg.common.support.model.common.internal.Vardenhet)5 Vardgivare (se.inera.intyg.common.support.model.common.internal.Vardgivare)3 ValidateDraftResponse (se.inera.intyg.common.support.modules.support.api.dto.ValidateDraftResponse)3 WebCertUser (se.inera.intyg.webcert.web.service.user.dto.WebCertUser)3 CopyUtkastBuilderResponse (se.inera.intyg.webcert.web.service.utkast.dto.CopyUtkastBuilderResponse)3 SelectableVardenhet (se.inera.intyg.infra.integration.hsa.model.SelectableVardenhet)2 Mottagning (se.inera.intyg.infra.integration.hsa.model.Mottagning)1 Vardgivare (se.inera.intyg.infra.integration.hsa.model.Vardgivare)1 Enhet (se.riv.clinicalprocess.healthcond.certificate.v3.Enhet)1