Skip to content

Commit

Permalink
Generate special behandlingId to DVH if Trygderetten.
Browse files Browse the repository at this point in the history
Co-authored-by: Øyvind N. Wedøe <[email protected]>
  • Loading branch information
flexable777 and oyvind-wedoe committed Sep 26, 2024
1 parent df3b7c3 commit 55c4b31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 55c4b31

Please sign in to comment.