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;
}
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);
}
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);
}
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;
}
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;
}
Aggregations