Closed lwjohnst86 closed 4 months ago
Right now there is no logic for the algorithm here 😉 so no need to fill in the algorithm file. Only the include_
and exclude_
functions contain the actual logic. This and the other future functions are helper functions.
Ah! I thought we wanted logic from all functions (including helper functions) in the algorithms.csv
Don't we need a
recnum
in one ofactual_lpr_diag
and/oractual_lpr_adm
that's not in the other to test that its actually a full join and not e.g., a left join?
In the real data there is always a record of each recnum in both _diag and _adm, so it doesn't matter if it's a full/inner/right or left-join in practice. Now that I think about it, I guess that if there was a mismatch/corruption in the input data, I think we would want to only keep the complete records, so I'll change it to inner_join?
Added some more tests and refined a few things, but nothing major. Merging in.
Closes #88. Has tests and documentation generated.
I don't know what I did, but I think I made a branch off of the hba1c branch, so this is a stacked PR.