Skip to contents

Keeping cases with similar date and health institution in FMDS and Somatic data only. Nevertheless, patients registered in FMDS that aren't found in Somatic data will be kept.

Usage

is_same_dates(
  d1,
  d2,
  key1 = c("lopenr", "skadeDato"),
  key2 = c("lopenr", "innDato")
)

Arguments

d1

FMDS dataset

d2

Somatic dataset

key1

Columnames in d1 for sorting the data. Default are lopenr and skadeDato

key2

Columnames in d2 for sorting the data. Default are lopenr and innDato