diff --git a/src/main/kotlin/no/nav/syfo/service/FellesformatMapperService.kt b/src/main/kotlin/no/nav/syfo/service/FellesformatMapperService.kt index d4a2fae6..335f7276 100644 --- a/src/main/kotlin/no/nav/syfo/service/FellesformatMapperService.kt +++ b/src/main/kotlin/no/nav/syfo/service/FellesformatMapperService.kt @@ -35,6 +35,7 @@ import no.nav.helse.sm2013.URL import no.nav.syfo.domain.Sykmelder import no.nav.syfo.log import no.nav.syfo.pdl.model.PdlPerson +import no.nav.syfo.securelog import no.nav.syfo.sm.Diagnosekoder import no.nav.syfo.util.LoggingMeta @@ -53,6 +54,13 @@ fun mapOcrFilTilFellesformat( ) } + securelog.info( + "aktivitetIkkeMulig gradertSykmelding: {} {} {}", + skanningmetadata.sykemeldinger.aktivitet.aktivitetIkkeMulig.toString(), + skanningmetadata.sykemeldinger.aktivitet.gradertSykmelding.sykmeldingsgrad.toString(), + fields(loggingMeta), + ) + return XMLEIFellesformat().apply { any.add( XMLMsgHead().apply { diff --git a/src/main/kotlin/no/nav/syfo/service/SykmeldingService.kt b/src/main/kotlin/no/nav/syfo/service/SykmeldingService.kt index 56530514..0c24682f 100644 --- a/src/main/kotlin/no/nav/syfo/service/SykmeldingService.kt +++ b/src/main/kotlin/no/nav/syfo/service/SykmeldingService.kt @@ -1,7 +1,5 @@ package no.nav.syfo.service -import com.migesok.jaxb.adapter.javatime.LocalDateTimeXmlAdapter -import com.migesok.jaxb.adapter.javatime.LocalDateXmlAdapter import java.time.LocalDate import java.time.LocalDateTime import java.time.ZoneId @@ -33,15 +31,12 @@ import no.nav.syfo.pdl.model.PdlPerson import no.nav.syfo.pdl.service.PdlPersonService import no.nav.syfo.securelog import no.nav.syfo.util.LoggingMeta -import no.nav.syfo.util.XMLDateAdapter -import no.nav.syfo.util.XMLDateTimeAdapter import no.nav.syfo.util.extractHelseOpplysningerArbeidsuforhet import no.nav.syfo.util.fellesformatMarshaller import no.nav.syfo.util.get import no.nav.syfo.util.getLocalDateTime import no.nav.syfo.util.toString import org.apache.kafka.clients.producer.KafkaProducer -import javax.xml.bind.Marshaller class SykmeldingService( private val oppgaveService: OppgaveService, @@ -166,8 +161,8 @@ class SykmeldingService( ) val fellesformatText = fellesformatMarshaller.toString(fellesformat) - - securelog.info("Fellesformat: {} {}", + securelog.info( + "Fellesformat: {} {}", fellesformatText, fields(loggingMeta), )