use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId in project webcert by sklintyg.
the class IntygRelationHelperImplTest method buildRelation.
private Relation buildRelation(String fromIntygId, String toIntygId) {
Relation r = new Relation();
IntygId from = new IntygId();
from.setExtension(fromIntygId);
IntygId to = new IntygId();
to.setExtension(toIntygId);
r.setFranIntygsId(from);
r.setTillIntygsId(to);
TypAvRelation typ = new TypAvRelation();
typ.setCode(RelationKod.ERSATT.value());
r.setTyp(typ);
r.setSkapad(LocalDateTime.now());
return r;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId in project webcert by sklintyg.
the class IntygRelationHelperImplTest method buildResponse.
private ListRelationsForCertificateResponseType buildResponse() {
ListRelationsForCertificateResponseType resp = new ListRelationsForCertificateResponseType();
IntygRelations intygRelations = new IntygRelations();
IntygId intygId = new IntygId();
intygId.setExtension(INTYG_ID);
intygRelations.setIntygsId(intygId);
intygRelations.getRelation().add(buildRelation(OTHER_INTYG_ID, INTYG_ID));
resp.getIntygRelation().add(intygRelations);
return resp;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId in project webcert by sklintyg.
the class NotificationTestHelper method createIntyg.
public static Intyg createIntyg(String intygsTyp) {
Intyg intyg = new Intyg();
IntygId intygId = new IntygId();
intygId.setExtension("intyg123");
intyg.setIntygsId(intygId);
TypAvIntyg typAvIntyg = new TypAvIntyg();
typAvIntyg.setCode(intygsTyp);
intyg.setTyp(typAvIntyg);
intyg.setPatient(buildPatient());
HosPersonal hosPersonal = new HosPersonal();
Enhet enhet = new Enhet();
enhet.setVardgivare(new Vardgivare());
enhet.setArbetsplatskod(new ArbetsplatsKod());
hosPersonal.setEnhet(enhet);
intyg.setSkapadAv(hosPersonal);
// DatePeriodType and PartialDateType must be allowed
intyg.getSvar().add(InternalConverterUtil.aSvar("").withDelsvar("", InternalConverterUtil.aDatePeriod(LocalDate.now(), LocalDate.now().plusDays(1))).withDelsvar("", InternalConverterUtil.aPartialDate(PartialDateTypeFormatEnum.YYYY, Year.of(1999))).build());
return intyg;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId in project webcert by sklintyg.
the class NotificationWSClientTest method createRequest.
private CertificateStatusUpdateForCareType createRequest() {
CertificateStatusUpdateForCareType res = new CertificateStatusUpdateForCareType();
res.setIntyg(new Intyg());
res.getIntyg().setIntygsId(new IntygId());
res.getIntyg().getIntygsId().setExtension("intygsId");
return res;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId in project webcert by sklintyg.
the class SendMessageToCareResponderImplTest method createIntygsId.
private IntygId createIntygsId(String intygId) {
IntygId res = new IntygId();
res.setExtension(intygId);
res.setRoot("");
return res;
}
Aggregations