steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

Reuse recnum and other variables between registers in fake data #84

Open lwjohnst86 opened 5 months ago

lwjohnst86 commented 5 months ago

We need to reuse the same vector of recnums in both the lpr_adm + lpr_diag tables (and, similarly, reuse an dw_ek_kontakt vector for both LPR3 tables), similar to how the pnrs are the same in all the tables. Otherwise joining the tables using recnum/dw_ek_kontakt as the joining key is going to be messy.

_Originally posted by @Aastedet in https://github.com/steno-aarhus/osdc/pull/70#discussion_r1585551339_