Filter out data from the dataset that is not going to be tabulated

filtrer_ut(
  tabell,
  fane,
  verdi,
  aar,
  bo,
  beh,
  behandlingsniva,
  alder,
  kjonn,
  hastegrad1,
  hastegrad2
)

Arguments

tabell

The dataset that is going to be filtred.

fane

The active tab (effect if 'dogn', 'dag' or 'poli')

verdi

The value that is going to be tabulated (only an effect if 'liggedognindex' or 'drg_index')

aar

The years to be tabulated

bo

Possible values 1:6

beh

Possible values 1:7

behandlingsniva

Type of contact (admissions, outpatient consultations or day patient treatments)

alder

Age group

kjonn

Gender

hastegrad2

Degree of urgency