From 55c4b31d5d96fb0d6ca7b9f50c7484c53cc4c3a5 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Thu, 26 Sep 2024 15:32:53 +0200 Subject: [PATCH] Generate special behandlingId to DVH if Trygderetten. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Øyvind N. Wedøe --- .../nav/klage/oppgave/eventlisteners/StatistikkTilDVHService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/klage/oppgave/eventlisteners/StatistikkTilDVHService.kt b/src/main/kotlin/no/nav/klage/oppgave/eventlisteners/StatistikkTilDVHService.kt index 4196175af..5e185909e 100644 --- a/src/main/kotlin/no/nav/klage/oppgave/eventlisteners/StatistikkTilDVHService.kt +++ b/src/main/kotlin/no/nav/klage/oppgave/eventlisteners/StatistikkTilDVHService.kt @@ -154,7 +154,7 @@ class StatistikkTilDVHService( behandling: Behandling, behandlingState: BehandlingState ): StatistikkTilDVH { - val behandlingId = if (behandling.fagsystem == Fagsystem.IT01 && behandling.type == Type.BEHANDLING_ETTER_TRYGDERETTEN_OPPHEVET) { + val behandlingId = if (behandling.fagsystem == Fagsystem.IT01) { try { behandling.fagsakId.substring(0, 4) + "-" + behandling.fagsakId.substring(4, 5) + "-" + behandling.fagsakId.substring(5) } catch (e: Exception) {