Commits

Anonymous committed 5a41b84

fix c_tablename, c_columname of modifiers

  • Participants
  • Parent commits c162652

Comments (0)

Files changed (1)

File dmtoterms.py

     2 \PCORI_MOD\DX_SOURCE\AD\ Admitting \PCORI\DIAGNOSIS\%
     2 \PCORI_MOD\DX_SOURCE\DI\ Discharge \PCORI\DIAGNOSIS\%
     2 \PCORI_MOD\DX_SOURCE\FI\ Final \PCORI\DIAGNOSIS\%
+
+    >>> ms[0].c_tablename, ms[0].c_columnname
+    ('modifier_dimension', 'modifier_path')
+
     '''
     root = 'PCORI'
     workbook = xlrd.open_workbook(
             vizs=['DAE' for _ in mod_fields],
             applies=[['', cls.root] + mods[f.field_name] for f in mod_fields])
 
-        return folders + value_terms
+        return [t._replace(c_tablename='modifier_dimension',
+                           c_columnname='modifier_path')
+                for t in (folders + value_terms)]
 
 
 def _nodups(l):