Search in sources :

Example 1 with TypAvRelation

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;
}
Also used : WebcertCertificateRelation(se.inera.intyg.webcert.common.model.WebcertCertificateRelation) TypAvRelation(se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvRelation) Relation(se.inera.intyg.clinicalprocess.healthcond.certificate.listrelationsforcertificate.v1.Relation) TypAvRelation(se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvRelation) IntygId(se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)

Aggregations

Relation (se.inera.intyg.clinicalprocess.healthcond.certificate.listrelationsforcertificate.v1.Relation)1 WebcertCertificateRelation (se.inera.intyg.webcert.common.model.WebcertCertificateRelation)1 IntygId (se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)1 TypAvRelation (se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvRelation)1