@navikt/kalkuler-omsorgsdager
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

kalkuler-omsorgsdager

Funksjon som beregner antall omsorgsdager: beregnOmsorgsdager

How to install

npm i @navikt/kalkuler-omsorgsdager

Signatur

Signatur for beregnOmsorgsdager:

export type BeregnOmsorgsdagerType = (barn: Barn[], inkluderKoronadager: boolean) => Omsorgsprinsipper;

Eksempel

import { beregnOmsorgsdager } from "@navikt/kalkuler-omsorgsdager/lib/kalkulerOmsorgsdager";
import { AlderType } from "@navikt/kalkuler-omsorgsdager/lib/types/Barn";
import Barn from "@navikt/kalkuler-omsorgsdager/lib/types/Barn";

const barn: Barn[] = [
  {
    søkerHarAleneomsorgFor: true,
    kroniskSykt: true,
    alder: AlderType.UNDER12,
    id: '1',
  },
  {
    alder: AlderType.UNDER12,
    id: '2',
  },
  {
    alder: AlderType.UNDER12,
    id: '3',
  },
];

const { grunnrett, aleneomsorg, kroniskSykt, aleneomsorgKroniskSyke } = beregnOmsorgsdager(barn, true);

Package Sidebar

Install

npm i @navikt/kalkuler-omsorgsdager

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

13.6 kB

Total Files

21

Last publish

Collaborators

  • andnorda
  • perkynades
  • lars.hartvigsen
  • poroshinalex
  • sindrebroch
  • kjesvale
  • jksolbakken
  • frodehansenbekk
  • zrrrzzt
  • thuzad
  • kenajoh
  • christeredvartsen
  • nutgaard
  • peter-brottveit-bock-nav
  • terjeofnorway