Generate binary primary/secondary diagnosis columns for ICD9/ICD10
- Use the new
createDiagnosisColumns
function to generate binary columns for the ICD9/ICD10 inpatient hospital diagnoses (data fields 41270 and 41271). These denote, for each diagnosis code, whether it was a primary or secondary diagnosis - No longer convert ICD9/ICD10/OPSC3/OPSC4 codes to numeric - these data fields are all binarised, so there is no need to convert them from their original alpha-numeric values.