An automated transition to ICD-10 encoding