use of se.inera.intyg.common.db.model.internal.DbUtlatande in project webcert by sklintyg.
the class CreateUtkastFromTemplateBuilderTest method createIntygContentHolder.
private IntygContentHolder createIntygContentHolder() throws Exception {
List<Status> status = new ArrayList<>();
status.add(new Status(CertificateState.RECEIVED, "HSVARD", LocalDateTime.now()));
status.add(new Status(CertificateState.SENT, "SKV", LocalDateTime.now()));
DbUtlatande utlatande = new CustomObjectMapper().readValue(new ClassPathResource("IntygDraftServiceImplTest/db-utlatande.json").getFile(), DbUtlatande.class);
return IntygContentHolder.builder().setContents("<external-json/>").setUtlatande(utlatande).setStatuses(status).setRevoked(false).setRelations(new Relations()).setDeceased(false).setSekretessmarkering(false).setPatientNameChangedInPU(false).setPatientAddressChangedInPU(false).build();
}
Aggregations