瀏覽代碼

bug fix .. top row (rewrite)

Steve Nyemba 4 年之前
父節點
當前提交
d2021bb430
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      healthcareio/x12/__init__.py

+ 2 - 2
healthcareio/x12/__init__.py

@@ -452,7 +452,7 @@ class Parser (Process):
         claims  = []
         try:
             file = open(filename.strip(),errors='ignore')
-            INITIAL_ROWS = list(islice(file,100)) #.readlines(4)
+            INITIAL_ROWS = list(islice(file,100)) # Read the first 100 lines (no particular reason)
             _code = "unknown"
             # if len(INITIAL_ROWS) == 1 :
             #     file = INITIAL_ROWS[0].split('~')
@@ -560,7 +560,7 @@ class Parser (Process):
                     
                     # claim = merger.merge(claim,self.apply(_toprows,_code))
                     # claims.append(dict(DEFAULT_VALUE,**claim))
-                    claims.append(merger.merge(DEFAULT_VALUE,claim))
+                    claims.append(merger.merge(DEFAULT_VALUE.copy(),claim))
             if type(file) != list :
                 file.close()