Search in sources :

Example 1 with Komplettering

use of se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType.Komplettering in project webcert by sklintyg.

the class ArendeConverterTest method createSendMessageToCare.

private SendMessageToCareType createSendMessageToCare(String amneskod, String intygId, String kontaktInfo, String skickatAv, String frageId, Integer instans, String kompletteringsText, String meddelande, String meddelandeId, String paminnelseMeddelandeId, String personId, String referensId, String rubrik, LocalDate sistaDatum, LocalDateTime skickatTidpunkt, String svarPa, String svarReferensId) {
    SendMessageToCareType res = new SendMessageToCareType();
    Amneskod amne = new Amneskod();
    amne.setCode(amneskod);
    res.setAmne(amne);
    SkickatAv sa = new SkickatAv();
    sa.getKontaktInfo().add(kontaktInfo);
    Part part = new Part();
    part.setCode(skickatAv);
    sa.setPart(part);
    res.setSkickatAv(sa);
    Komplettering komplettering = new Komplettering();
    komplettering.setFrageId(frageId);
    komplettering.setInstans(instans);
    komplettering.setText(kompletteringsText);
    res.getKomplettering().add(komplettering);
    PersonId pid = new PersonId();
    pid.setExtension(personId);
    res.setPatientPersonId(pid);
    MeddelandeReferens mr = new MeddelandeReferens();
    mr.setMeddelandeId(svarPa);
    mr.setReferensId(svarReferensId);
    res.setSvarPa(mr);
    IntygId ii = new IntygId();
    ii.setExtension(intygId);
    res.setIntygsId(ii);
    res.setMeddelande(meddelande);
    res.setMeddelandeId(meddelandeId);
    res.setPaminnelseMeddelandeId(paminnelseMeddelandeId);
    res.setReferensId(referensId);
    res.setRubrik(rubrik);
    res.setSistaDatumForSvar(sistaDatum);
    res.setSkickatTidpunkt(skickatTidpunkt);
    return res;
}
Also used : PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId) SendMessageToCareType(se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType) Part(se.riv.clinicalprocess.healthcond.certificate.types.v3.Part) SkickatAv(se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType.SkickatAv) Amneskod(se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod) MeddelandeReferens(se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens) Komplettering(se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType.Komplettering) IntygId(se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)

Aggregations

SendMessageToCareType (se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType)1 Komplettering (se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType.Komplettering)1 SkickatAv (se.riv.clinicalprocess.healthcond.certificate.sendMessageToCare.v2.SendMessageToCareType.SkickatAv)1 Amneskod (se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod)1 IntygId (se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)1 Part (se.riv.clinicalprocess.healthcond.certificate.types.v3.Part)1 PersonId (se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId)1 MeddelandeReferens (se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens)1