use of se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvRelation 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;
}
Aggregations