Search in sources :

Example 1 with InternalDate

use of se.inera.intyg.common.support.model.InternalDate in project webcert by sklintyg.

the class ArendeViewConverterTest method buildLisjpUtlatande.

private LisjpUtlatande buildLisjpUtlatande(String intygsid2, String enhetsId, String enhetsNamn, String patientPersonId, String skapadAvNamn, String skapadavPersonId, LocalDateTime timeStamp) {
    LisjpUtlatande.Builder template = LisjpUtlatande.builder();
    template.setId(intygsId);
    GrundData grundData = buildGrundData(enhetsId, enhetsNamn, patientPersonId, skapadavPersonId, timeStamp);
    template.setGrundData(grundData);
    template.setTextVersion("");
    template.setTelefonkontaktMedPatienten(new InternalDate(timeStamp.toLocalDate()));
    return template.build();
}
Also used : InternalDate(se.inera.intyg.common.support.model.InternalDate) LisjpUtlatande(se.inera.intyg.common.lisjp.model.internal.LisjpUtlatande)

Example 2 with InternalDate

use of se.inera.intyg.common.support.model.InternalDate in project webcert by sklintyg.

the class ArendeViewConverterTest method buildLuseUtlatande.

private LuseUtlatande buildLuseUtlatande(String intygsId, String enhetsId, String enhetsnamn, String patientPersonId, String string, String skapadAvId, LocalDateTime timeStamp) {
    LuseUtlatande.Builder template = LuseUtlatande.builder();
    template.setId(intygsId);
    GrundData grundData = buildGrundData(enhetsId, enhetsnamn, patientPersonId, skapadAvId, timeStamp);
    template.setGrundData(grundData);
    template.setTextVersion("");
    template.setAnhorigsBeskrivningAvPatienten(new InternalDate(timeStamp.toLocalDate()));
    return template.build();
}
Also used : InternalDate(se.inera.intyg.common.support.model.InternalDate) LuseUtlatande(se.inera.intyg.common.luse.model.internal.LuseUtlatande)

Aggregations

InternalDate (se.inera.intyg.common.support.model.InternalDate)2 LisjpUtlatande (se.inera.intyg.common.lisjp.model.internal.LisjpUtlatande)1 LuseUtlatande (se.inera.intyg.common.luse.model.internal.LuseUtlatande)1