Search in sources :

Example 11 with IntygId

use of se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId 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

IntygId (se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)11 ArbetsplatsKod (se.riv.clinicalprocess.healthcond.certificate.types.v3.ArbetsplatsKod)3 Enhet (se.riv.clinicalprocess.healthcond.certificate.v3.Enhet)3 HosPersonal (se.riv.clinicalprocess.healthcond.certificate.v3.HosPersonal)3 Intyg (se.riv.clinicalprocess.healthcond.certificate.v3.Intyg)3 Vardgivare (se.riv.clinicalprocess.healthcond.certificate.v3.Vardgivare)3 Amneskod (se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod)2 PersonId (se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId)2 MeddelandeReferens (se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens)2 Message (org.apache.camel.Message)1 DefaultMessage (org.apache.camel.impl.DefaultMessage)1 Test (org.junit.Test)1 IntygRelations (se.inera.intyg.clinicalprocess.healthcond.certificate.listrelationsforcertificate.v1.IntygRelations)1 ListRelationsForCertificateResponseType (se.inera.intyg.clinicalprocess.healthcond.certificate.listrelationsforcertificate.v1.ListRelationsForCertificateResponseType)1 Relation (se.inera.intyg.clinicalprocess.healthcond.certificate.listrelationsforcertificate.v1.Relation)1 ModuleApi (se.inera.intyg.common.support.modules.support.api.ModuleApi)1 NotificationMessage (se.inera.intyg.common.support.modules.support.api.notification.NotificationMessage)1 WebcertCertificateRelation (se.inera.intyg.webcert.common.model.WebcertCertificateRelation)1 CertificateStatusUpdateForCareType (se.riv.clinicalprocess.healthcond.certificate.certificatestatusupdateforcareresponder.v3.CertificateStatusUpdateForCareType)1 CreateDraftCertificateResponseType (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.CreateDraftCertificateResponseType)1