浏览代码

bug fix -- no more synonyms

Steve Nyemba 4 年之前
父节点
当前提交
5ef1f31907
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 6 4
      healthcareio/x12/__init__.py
  2. 1 1
      setup.py

+ 6 - 4
healthcareio/x12/__init__.py

@@ -290,7 +290,8 @@ class Parser (Process):
                             if type(value[objkey]) == dict :
                                 continue 
                             if 'syn' in config and value[objkey] in config['syn'] :
-                                value[objkey] = config['syn'][ value[objkey]]
+                                # value[objkey] = config['syn'][ value[objkey]]
+                                pass
                             
                         if key in rewrite :
                             
@@ -309,7 +310,8 @@ class Parser (Process):
                     else:
                         
                         if 'syn' in config and value in config['syn'] :
-                            value = config['syn'][value]
+                            # value = config['syn'][value]
+                            pass
                             
                     if type(value) == dict :  
                         
@@ -495,7 +497,7 @@ class Parser (Process):
                     
                     if _claim :
                         _claim['index'] = index #len(claims)
-                        # claims.append(dict(DEFAULT_VALUE,**_claim))
+                        # claims.append(dict(DEFAULT_VALUE,**_claim))                        
                         claims.append( jsonmerge.merge(DEFAULT_VALUE,_claim))
                     segment = [row]
                     index += 1
@@ -513,7 +515,7 @@ class Parser (Process):
                     schema = [key for key in claim.keys() if type(claim[key]) == list]
                     if schema :
                         schema  = {"properties":dict.fromkeys(schema,{"mergeStrategy":"append"})}
-                        print (schema)
+                        
                     else:
                         schema = {}
                     merger = jsonmerge.Merger(schema)

+ 1 - 1
setup.py

@@ -8,7 +8,7 @@ import sys
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read() 
 args = {
-    "name":"healthcareio","version":"1.6.2.2",
+    "name":"healthcareio","version":"1.6.2.3",
     "author":"Vanderbilt University Medical Center",
     "author_email":"steve.l.nyemba@vumc.org",
     "include_package_data":True,