Skip to content

Generate binary primary/secondary diagnosis columns for ICD9/ICD10

Paul McCarthy requested to merge mnt/diagnosis-columns into master
  • 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.

Merge request reports