Search in sources :

Example 6 with PersonId

use of se.riv.infrastructure.directory.privatepractitioner.types.v1.PersonId in project webcert by sklintyg.

the class NotificationTestHelper method buildPatient.

public static Patient buildPatient() {
    PersonId personId = new PersonId();
    personId.setExtension(PERSNR);
    Patient patient = new Patient();
    patient.setPersonId(personId);
    patient.setFornamn("");
    patient.setMellannamn("");
    patient.setEfternamn("");
    patient.setPostadress("");
    patient.setPostnummer("");
    patient.setPostort("");
    return patient;
}
Also used : PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId) Patient(se.riv.clinicalprocess.healthcond.certificate.v3.Patient)

Example 7 with PersonId

use of se.riv.infrastructure.directory.privatepractitioner.types.v1.PersonId in project webcert by sklintyg.

the class CreateNewDraftRequestBuilderTest method createUtlatande.

private Utlatande createUtlatande() {
    Utlatande utlatande = new Utlatande();
    // Type
    TypAvUtlatande utlTyp = new TypAvUtlatande();
    utlTyp.setCode(CERT_TYPE);
    utlatande.setTypAvUtlatande(utlTyp);
    // HoSPerson
    HsaId userHsaId = new HsaId();
    userHsaId.setExtension(USER_HSAID);
    userHsaId.setRoot("USERHSAID");
    HosPersonal hosPerson = new HosPersonal();
    hosPerson.setPersonalId(userHsaId);
    hosPerson.setFullstandigtNamn(FULLSTANDIGT_NAMN);
    HsaId unitHsaId = new HsaId();
    unitHsaId.setExtension(UNIT_HSAID);
    unitHsaId.setRoot("UNITHSAID");
    Enhet hosEnhet = new Enhet();
    hosEnhet.setEnhetsId(unitHsaId);
    hosPerson.setEnhet(hosEnhet);
    utlatande.setSkapadAv(hosPerson);
    // Patient
    PersonId personId = new PersonId();
    personId.setRoot("PERSNR");
    personId.setExtension(PERSNR);
    Patient patType = new Patient();
    patType.setPersonId(personId);
    patType.getFornamn().add("Adam");
    patType.getFornamn().add("Bertil");
    patType.getMellannamn().add("Cesarsson");
    patType.getMellannamn().add("Davidsson");
    patType.setEfternamn("Eriksson");
    utlatande.setPatient(patType);
    return utlatande;
}
Also used : HosPersonal(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.HosPersonal) Enhet(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Enhet) PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v1.PersonId) Utlatande(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Utlatande) TypAvUtlatande(se.riv.clinicalprocess.healthcond.certificate.types.v1.TypAvUtlatande) Patient(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Patient) HsaId(se.riv.clinicalprocess.healthcond.certificate.types.v1.HsaId) TypAvUtlatande(se.riv.clinicalprocess.healthcond.certificate.types.v1.TypAvUtlatande)

Example 8 with PersonId

use of se.riv.infrastructure.directory.privatepractitioner.types.v1.PersonId in project webcert by sklintyg.

the class CreateNewDraftRequestBuilderTest method createIntyg.

private Intyg createIntyg() {
    Intyg intyg = new Intyg();
    TypAvIntyg intygTyp = new TypAvIntyg();
    intygTyp.setCode(CERT_TYPE);
    intyg.setTypAvIntyg(intygTyp);
    HosPersonal hosPerson = new HosPersonal();
    HsaId userHsaId = new HsaId();
    userHsaId.setExtension(USER_HSAID);
    userHsaId.setRoot("USERHSAID");
    hosPerson.setPersonalId(userHsaId);
    hosPerson.setFullstandigtNamn(FULLSTANDIGT_NAMN);
    Enhet hosEnhet = new Enhet();
    HsaId unitHsaId = new HsaId();
    unitHsaId.setExtension(UNIT_HSAID);
    unitHsaId.setRoot("UNITHSAID");
    hosEnhet.setEnhetsId(unitHsaId);
    hosPerson.setEnhet(hosEnhet);
    intyg.setSkapadAv(hosPerson);
    Patient patType = new Patient();
    PersonId personId = new PersonId();
    personId.setRoot("PERSNR");
    personId.setExtension(PERSONNUMMER);
    patType.setPersonId(personId);
    patType.setFornamn(FORNAMN);
    patType.setMellannamn(MELLANNAMN);
    patType.setEfternamn(EFTERNAMN);
    patType.setPostadress(PATIENT_POSTADRESS);
    patType.setPostnummer(PATIENT_POSTNUMMER);
    patType.setPostort(PATIENT_POSTORT);
    intyg.setPatient(patType);
    return intyg;
}
Also used : HosPersonal(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.HosPersonal) Enhet(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.Enhet) TypAvIntyg(se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvIntyg) PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId) TypAvIntyg(se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvIntyg) Intyg(se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.Intyg) Patient(se.riv.clinicalprocess.healthcond.certificate.v3.Patient) HsaId(se.riv.clinicalprocess.healthcond.certificate.types.v3.HsaId)

Example 9 with PersonId

use of se.riv.infrastructure.directory.privatepractitioner.types.v1.PersonId in project webcert by sklintyg.

the class SendMessageToCareResponderImplTest method createPersonId.

private PersonId createPersonId(String patientId) {
    PersonId res = new PersonId();
    res.setExtension(patientId);
    res.setRoot("");
    return res;
}
Also used : PersonId(se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId)

Example 10 with PersonId

use of se.riv.infrastructure.directory.privatepractitioner.types.v1.PersonId 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

PersonId (se.riv.clinicalprocess.healthcond.certificate.types.v3.PersonId)11 HsaId (se.riv.clinicalprocess.healthcond.certificate.types.v3.HsaId)6 Patient (se.riv.clinicalprocess.healthcond.certificate.v3.Patient)4 Test (org.junit.Test)3 Enhet (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Enhet)3 HosPersonal (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.HosPersonal)3 Patient (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Patient)3 Utlatande (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v1.Utlatande)3 Enhet (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.Enhet)3 HosPersonal (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.HosPersonal)3 Intyg (se.riv.clinicalprocess.healthcond.certificate.createdraftcertificateresponder.v3.Intyg)3 ListCertificatesForCareWithQAType (se.riv.clinicalprocess.healthcond.certificate.listCertificatesForCareWithQA.v3.ListCertificatesForCareWithQAType)3 HsaId (se.riv.clinicalprocess.healthcond.certificate.types.v1.HsaId)3 PersonId (se.riv.clinicalprocess.healthcond.certificate.types.v1.PersonId)3 TypAvUtlatande (se.riv.clinicalprocess.healthcond.certificate.types.v1.TypAvUtlatande)3 TypAvIntyg (se.riv.clinicalprocess.healthcond.certificate.types.v3.TypAvIntyg)3 Personnummer (se.inera.intyg.schemas.contract.Personnummer)2 Amneskod (se.riv.clinicalprocess.healthcond.certificate.types.v3.Amneskod)2 IntygId (se.riv.clinicalprocess.healthcond.certificate.types.v3.IntygId)2 MeddelandeReferens (se.riv.clinicalprocess.healthcond.certificate.v3.MeddelandeReferens)2