Search in sources :

Example 1 with MeddelandeReferens

use of se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens in project webcert by sklintyg.

the class SendMessageToRecipientTypeConverterTest method buildSendMessageToRecipientType.

private SendMessageToRecipientType buildSendMessageToRecipientType() {
    SendMessageToRecipientType res = new SendMessageToRecipientType();
    res.setAmne(new Amneskod());
    res.getAmne().setCode("OVRIGT");
    res.getAmne().setCodeSystem("ffa59d8f-8d7e-46ae-ac9e-31804e8e8499");
    res.getAmne().setDisplayName("Övrigt");
    res.setIntygsId(new IntygId());
    res.getIntygsId().setRoot("TSTNMT2321000156-1039");
    res.getIntygsId().setExtension("79d77cad-0c19-4278-8212-b23c82a7e33c");
    res.setLogiskAdressMottagare("SendMessageStub");
    res.setMeddelande("svarstext meddelande");
    res.setMeddelandeId("b7360a70-80a3-4d24-b10e-621c3c0c826a");
    res.setPatientPersonId(new PersonId());
    res.getPatientPersonId().setRoot("1.2.752.129.2.1.3.1");
    res.getPatientPersonId().setExtension("19121212-1212");
    res.setReferensId("referensId");
    res.setRubrik("en fråga");
    res.setSkickatAv(new HosPersonal());
    res.getSkickatAv().setEnhet(new Enhet());
    res.getSkickatAv().getEnhet().setArbetsplatskod(new ArbetsplatsKod());
    res.getSkickatAv().getEnhet().getArbetsplatskod().setRoot("1.2.752.29.4.71");
    res.getSkickatAv().getEnhet().getArbetsplatskod().setExtension("1234567890");
    res.getSkickatAv().getEnhet().setEnhetsId(new HsaId());
    res.getSkickatAv().getEnhet().getEnhetsId().setRoot("1.2.752.129.2.1.4.1");
    res.getSkickatAv().getEnhet().getEnhetsId().setExtension("TSTNMT2321000156-1039");
    res.getSkickatAv().getEnhet().setEnhetsnamn("NMT vg1 ve2");
    res.getSkickatAv().getEnhet().setVardgivare(new Vardgivare());
    res.getSkickatAv().getEnhet().getVardgivare().setVardgivareId(new HsaId());
    res.getSkickatAv().getEnhet().getVardgivare().getVardgivareId().setRoot("1.2.752.129.2.1.4.1");
    res.getSkickatAv().getEnhet().getVardgivare().getVardgivareId().setExtension("TSTNMT2321000156-1002");
    res.getSkickatAv().getEnhet().getVardgivare().setVardgivarnamn("NMT vg1");
    res.getSkickatAv().setForskrivarkod("0000000");
    res.getSkickatAv().setFullstandigtNamn("Leonie Koehl");
    res.getSkickatAv().setPersonalId(new HsaId());
    res.getSkickatAv().getPersonalId().setRoot("1.2.752.129.2.1.4.1");
    res.getSkickatAv().getPersonalId().setExtension("TSTNMT2321000156-103F");
    res.setSkickatTidpunkt(LocalDateTime.now());
    res.setSvarPa(new MeddelandeReferens());
    res.getSvarPa().setMeddelandeId("5d665d73-7029-4619-9a91-3225a90d81c8");
    res.getSvarPa().setReferensId("referensid2");
    return res;
}
Also used : HosPersonal(se.riv.clinicalprocess.healthcond.certificate.v3.HosPersonal) Enhet(se.riv.clinicalprocess.healthcond.certificate.v3.Enhet) ArbetsplatsKod(se.riv.clinicalprocess.healthcond.certificate.types.v3.ArbetsplatsKod) PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId) SendMessageToRecipientType(se.riv.clinicalprocess.healthcond.certificate.sendMessageToRecipient.v2.SendMessageToRecipientType) Vardgivare(se.riv.clinicalprocess.healthcond.certificate.v3.Vardgivare) Amneskod(se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod) HsaId(se.riv.clinicalprocess.healthcond.certificate.types.v3.HsaId) MeddelandeReferens(se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens) IntygId(se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)

Example 2 with MeddelandeReferens

use of se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens in project webcert by sklintyg.

the class SendMessageToRecipientTypeBuilder method decorateWithSvarPa.

private static void decorateWithSvarPa(SendMessageToRecipientType request, Arende arende) {
    if (arende.getSvarPaId() != null) {
        MeddelandeReferens meddelandeReferens = new MeddelandeReferens();
        meddelandeReferens.setMeddelandeId(arende.getSvarPaId());
        if (arende.getSvarPaReferens() != null) {
            meddelandeReferens.setReferensId(arende.getSvarPaReferens());
        }
        request.setSvarPa(meddelandeReferens);
    }
}
Also used : MeddelandeReferens(se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens)

Example 3 with MeddelandeReferens

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

MeddelandeReferens (se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens)3 Amneskod (se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod)2 IntygId (se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)2 PersonId (se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId)2 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 SendMessageToRecipientType (se.riv.clinicalprocess.healthcond.certificate.sendMessageToRecipient.v2.SendMessageToRecipientType)1 ArbetsplatsKod (se.riv.clinicalprocess.healthcond.certificate.types.v3.ArbetsplatsKod)1 HsaId (se.riv.clinicalprocess.healthcond.certificate.types.v3.HsaId)1 Part (se.riv.clinicalprocess.healthcond.certificate.types.v3.Part)1 Enhet (se.riv.clinicalprocess.healthcond.certificate.v3.Enhet)1 HosPersonal (se.riv.clinicalprocess.healthcond.certificate.v3.HosPersonal)1 Vardgivare (se.riv.clinicalprocess.healthcond.certificate.v3.Vardgivare)1