From ab5090915216ae9f64890e4327116ae49589d061 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 15 Feb 2021 20:56:54 -0600 Subject: [PATCH] bug fix ... top_row bug with BPR --- healthcareio/x12/__init__.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index fe8d017..c6290ad 100644 --- a/healthcareio/x12/__init__.py +++ b/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() diff --git a/setup.py b/setup.py index 504c003..08b4511 100644 --- a/setup.py +++ b/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,