Open VolodymyrClarify opened 5 years ago
I think the problem might be here:
https://github.com/jackwasey/icd/blob/e54bb247da2e4128c1ba91598767a18160cbff1d/R/hcc.R#L81
x$year
is set from the data without validation. Also if the dates are before 2014 or after 2019 you get an empty result.
There should be a way for the user to override the year auto-guessing and apply the same year for all visits because:
Hello!
In the following example Hierarchy is not respected for diabetes (with ICD10 codes as inputs):
Output:
####################################### Update: It is a bug somewhere in
date
parameter of the function.In the following example the hierarchy is working: