@@ -5,6 +5,7 @@ import no.nav.syfo.client.pdl.PdlClient
5
5
import no.nav.syfo.domain.PersonIdent
6
6
import no.nav.syfo.oppfolgingstilfelle.domain.PersonOppfolgingstilfelleVirksomhet
7
7
import no.nav.syfo.personoppgavehendelse.kafka.*
8
+ import no.nav.syfo.personstatus.application.IPersonOversiktStatusRepository
8
9
import no.nav.syfo.personstatus.db.*
9
10
import no.nav.syfo.personstatus.domain.*
10
11
import java.sql.Connection
@@ -13,6 +14,7 @@ import java.time.LocalDate
13
14
class PersonoversiktStatusService (
14
15
private val database : DatabaseInterface ,
15
16
private val pdlClient : PdlClient ,
17
+ private val personoversiktStatusRepository : IPersonOversiktStatusRepository ,
16
18
) {
17
19
private val isUbehandlet = true
18
20
private val isBehandlet = false
@@ -83,6 +85,10 @@ class PersonoversiktStatusService(
83
85
}
84
86
}
85
87
88
+ fun updateArbeidsuforhetVurderingStatus (personident : PersonIdent , isAktivVurdering : Boolean ) {
89
+ personoversiktStatusRepository.updateArbeidsuforhetVurderingStatus(personident, isAktivVurdering)
90
+ }
91
+
86
92
private fun createOrUpdatePersonOversiktStatus (
87
93
connection : Connection ,
88
94
personident : PersonIdent ,
0 commit comments