BehandlingRepositoryImpl

class BehandlingRepositoryImpl(val connection: DBConnection) : BehandlingRepository(source)

Constructors

Link copied to clipboard
constructor(connection: DBConnection)

Types

Link copied to clipboard
object Companion : RepositoryFactory<BehandlingRepositoryImpl>
Link copied to clipboard
private data class VurderingsbehovJson(val aarsak: String, val tid: String)

Properties

Link copied to clipboard
private val connection: DBConnection

Functions

Link copied to clipboard
open override fun finnFørstegangsbehandling(sakId: SakId): Behandling
Link copied to clipboard
open override fun finnSaksnummer(referanse: BehandlingReferanse): Saksnummer
Link copied to clipboard
open override fun flyttForrigeBehandlingId(behandlingId: BehandlingId, nyForrigeBehandlingId: BehandlingId)
Link copied to clipboard
open override fun hent(referanse: BehandlingReferanse): Behandling
open override fun hent(behandlingId: BehandlingId): Behandling
Link copied to clipboard
open override fun hentAlleFor(sakId: SakId, behandlingstypeFilter: List<TypeBehandling>): List<Behandling>
Link copied to clipboard
open override fun hentAlleMedVedtakFor(sakId: SakId, behandlingstypeFilter: List<TypeBehandling>): List<BehandlingMedVedtak>
Link copied to clipboard
open override fun hentNyesteEndringForSteg(behandlingId: BehandlingId): List<StegTilstand>
Link copied to clipboard
open override fun hentSakId(referanse: BehandlingReferanse): SakId
Link copied to clipboard
open override fun hentStegHistorikk(behandlingId: BehandlingId): List<StegTilstand>
Link copied to clipboard

Merk at denne ikke vil returnere vurderingsbehov og årsaker for behandlinger før tabellen behandling_aarsak ble introdusert. Det er besluttet å ikke migrere data for denne perioden da det mangler data for å gjøre dette korrekt samt at det er snakk om få behandlinger hvor dette er aktuelt.

Link copied to clipboard
open override fun kopier(fraBehandling: BehandlingId, tilBehandling: BehandlingId)
Link copied to clipboard
open override fun leggTilNyttAktivtSteg(behandlingId: BehandlingId, tilstand: StegTilstand)
Link copied to clipboard
private fun mapBehandling(row: Row): Behandling
Link copied to clipboard
Link copied to clipboard
open override fun markerSavepoint()
Link copied to clipboard
open override fun oppdaterBehandlingStatus(behandlingId: BehandlingId, status: Status)
Link copied to clipboard
open override fun oppdaterVurderingsbehovOgÅrsak(behandling: Behandling, vurderingsbehovOgÅrsak: VurderingsbehovOgÅrsak)
Link copied to clipboard
open override fun opprettBehandling(sakId: SakId, typeBehandling: TypeBehandling, forrigeBehandlingId: BehandlingId?, vurderingsbehovOgÅrsak: VurderingsbehovOgÅrsak): Behandling
Link copied to clipboard
private fun setStegtilstand(behandlingId: BehandlingId): Query<StegTilstand>.() -> Unit
Link copied to clipboard
open override fun slett(behandlingId: BehandlingId)