Commit ae935560 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: icd10.saveCodes uses hierarhy func rather than icd10 func

parent 571937f5
......@@ -20,6 +20,7 @@ a later stage.
import logging
import itertools as it
import functools as ft
import numpy as np
import pandas as pd
......@@ -100,7 +101,8 @@ def saveCodes(fname, hierarchy, fields=None):
for f in fields:
if f == 'code': continue
elif f == 'value': func = codeToNumeric
elif f == 'value': func = ft.partial(hierarchy.codeToNumeric,
name='icd10')
elif f == 'description': func = hierarchy.description
elif f == 'parent_codes': func = parent_codes
elif f == 'parent_descs': func = parent_descs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment