Skip to content

Commit

Permalink
chore: renamed typealias PatientAgeOver70Rule to PatientAgeUnder13Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Sep 25, 2024
1 parent 04aff3b commit 6aaf3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/syfo/rules/patientunder13/Rules.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import no.nav.syfo.services.sortedTOMDate
typealias Rule<T> =
(sykmelding: Sykmelding, ruleMetadataSykmelding: RuleMetadataSykmelding) -> RuleResult<T>

typealias PatientAgeOver70Rule = Rule<PatientAgeUnder13Rules>
typealias PatientAgeUnder13Rule = Rule<PatientAgeUnder13Rules>

val pasientUnder13Aar: PatientAgeOver70Rule = { sykmelding, ruleMetadata ->
val pasientUnder13Aar: PatientAgeUnder13Rule = { sykmelding, ruleMetadata ->
val sisteTomDato = sykmelding.perioder.sortedTOMDate().last()
val pasientFodselsdato = ruleMetadata.ruleMetadata.pasientFodselsdato

Expand Down

0 comments on commit 6aaf3ca

Please sign in to comment.