diff --git a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java index c498e4499ac..440b9c5d5ce 100644 --- a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java +++ b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java @@ -1,6 +1,7 @@ package no.nav.registre.testnorge.sykemelding.provider; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import no.nav.registre.testnorge.sykemelding.domain.ApplicationInfo; import no.nav.registre.testnorge.sykemelding.domain.Sykemelding; import no.nav.registre.testnorge.sykemelding.service.SykemeldingService; @@ -17,6 +18,7 @@ @RestController @RequestMapping("/api/v1/sykemeldinger") @RequiredArgsConstructor +@Slf4j public class SykemeldingController { private final SykemeldingService sykemeldingService; @@ -30,6 +32,7 @@ public SykemeldingResponseDTO create(@RequestBody SykemeldingDTO dto) { @PostMapping(value = "/validate") public Mono validate(@RequestBody SykemeldingDTO dto) { + log.info("Mottok sykemelding: {}", dto); SykemeldingRequestValidator.validate(dto); return sykemeldingService.validate(new Sykemelding(dto, applicationInfo)); diff --git a/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingDTO.java b/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingDTO.java index 062e4b574a3..2a95343c497 100644 --- a/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingDTO.java +++ b/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingDTO.java @@ -1,7 +1,6 @@ package no.nav.testnav.libs.dto.sykemelding.v1; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -18,27 +17,17 @@ @AllArgsConstructor public class SykemeldingDTO { - @JsonProperty private LocalDate startDato; - @JsonProperty private PasientDTO pasient; - @JsonProperty private HelsepersonellDTO helsepersonell; - @JsonProperty private ArbeidsgiverDTO arbeidsgiver; - @JsonProperty private Boolean manglendeTilretteleggingPaaArbeidsplassen; private List perioder; - @JsonProperty private OrganisasjonDTO sender; - @JsonProperty private OrganisasjonDTO mottaker; - @JsonProperty private DiagnoseDTO hovedDiagnose; private List biDiagnoser; - @JsonProperty private DetaljerDTO detaljer; - @JsonProperty private Boolean umiddelbarBistand; private List utdypendeOpplysninger;