浏览代码

bug fix ... top_row bug with BPR

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

+ 4 - 4
healthcareio/x12/__init__.py

@@ -516,7 +516,7 @@ class Parser (Process):
             #
             # Handling the last claim found 
             if segment[0].startswith(section) :
-                default_claim = dict({"name":index},**DEFAULT_VALUE)
+                # default_claim = dict({"name":index},**DEFAULT_VALUE)
                 
                 claim = self.apply(segment,_code)
                 if claim :
@@ -528,10 +528,10 @@ class Parser (Process):
                     else:
                         schema = {}
                     merger = jsonmerge.Merger(schema)
-                    top_row_claim = self.apply(_toprows,_code)
+                    # top_row_claim = self.apply(_toprows,_code)
+                    
+                    # claim = merger.merge(claim,self.apply(_toprows,_code))
                     
-                    claim = merger.merge(claim,self.apply(_toprows,_code))
-                    # claims.append(dict(DEFAULT_VALUE,**claim))
                     claims.append(merger.merge(DEFAULT_VALUE,claim))
             if type(file) != list :
                 file.close()

+ 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.8",
+    "name":"healthcareio","version":"1.6.2.9",
     "author":"Vanderbilt University Medical Center",
     "author_email":"steve.l.nyemba@vumc.org",
     "include_package_data":True,