This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from navikt/visning_av_servicegruppe_eller_in…
…nsatsgruppe_og_hovedmal Viser enten servicegruppe eller innsatsgruppe+hovedmål
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
import { OppfolgingsstatusData } from '../rest/datatyper/oppfolgingsstatus'; | ||
import { OppfolgingsstatusData, Servicegruppe } from '../rest/datatyper/oppfolgingsstatus'; | ||
import { OrNothing } from './felles-typer'; | ||
|
||
export function erBrukerSykmeldt(oppfolging: OppfolgingsstatusData): boolean { | ||
return oppfolging.formidlingsgruppe === 'IARBS' && oppfolging.servicegruppe === 'VURDI'; | ||
} | ||
|
||
export function erInnsatsgruppe(kvalifiseringsgruppe: OrNothing<Servicegruppe>) { | ||
switch (kvalifiseringsgruppe) { | ||
case 'IKVAL': | ||
case 'BATT': | ||
case 'BFORM': | ||
case 'VARIG': | ||
return true; | ||
default: | ||
return false; | ||
} | ||
} |