Skip to content

Commit

Permalink
legg til oppreisningsStolInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
olesls committed Aug 25, 2023
1 parent 77a735c commit e646a26
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- seng-madrass-valg
- oppreisingsstol

env:
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package no.nav.hjelpemidler.soknad.db.domain

import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.module.kotlin.treeToValue
import no.nav.hjelpemidler.soknad.db.JacksonMapper.Companion.objectMapper
import no.nav.hjelpemidler.soknad.db.client.hmdb.hentproduktermedhmsnrs.Produkt
import java.util.Date
Expand Down Expand Up @@ -97,7 +98,6 @@ class SøknadForBruker private constructor(
}
}


private val bekreftedeVilkårReader =
objectMapper.readerFor(object : TypeReference<List<BrukersituasjonVilkår>?>() {})

Expand Down Expand Up @@ -306,7 +306,7 @@ private fun hjelpemidler(søknad: JsonNode): List<Hjelpemiddel> {

private fun oppreisningsStolInfo(hjelpemiddel: JsonNode): OppreisningsStolInfo? {
val oppreisningsStolInfo = hjelpemiddel["oppreisningsStolInfo"] ?: return null
return objectMapper.readValue(oppreisningsStolInfo)
return objectMapper.treeToValue<OppreisningsStolInfo>(oppreisningsStolInfo)
}

private fun arsakForAntall(hjelpemiddel: JsonNode): String? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ data class HjelpemiddelItem(
val elektriskVendesystemInfo: ElektriskVendesystemInfo?,
val posisjoneringssystemInfo: PosisjoneringssystemInfo?,
val posisjoneringsputeForBarnInfo: PosisjoneringsputeForBarnInfo?,
val oppreisningsStolInfo: OppreisningsStolInfo?,
)

@JsonInclude(JsonInclude.Include.NON_NULL)
Expand Down Expand Up @@ -476,3 +477,21 @@ data class HjelpemiddelVilkar(
val kreverTilleggsinfo: Boolean?,
val tilleggsinfo: String?
)

@JsonInclude(JsonInclude.Include.NON_NULL)
data class OppreisningsStolInfo(
val kanBrukerReiseSegSelvFraVanligStol: Boolean,
val behov: List<OppreisningsStolBehov>?,
val behovForStolBegrunnelse: String?,
val sideBetjeningsPanel: SideBetjeningsPanelPosisjon?
)

enum class OppreisningsStolBehov {
OPPGAVER_I_DAGLIGLIVET,
PLEID_I_HJEMMET,
FLYTTE_MELLOM_STOL_OG_RULLESTOL,
}

enum class SideBetjeningsPanelPosisjon {
HØYRE, VENSTRE
}

0 comments on commit e646a26

Please sign in to comment.