From 8b4eb81564ce9bbb1c74c23990d179f4d69e2b39 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 2 Nov 2020 15:35:40 -0600 Subject: [PATCH] bug fix: payer information on 837 --- healthcareio/x12/__init__.py | 11 ++++++----- setup.py | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index cd3a2fd..2e22d98 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -279,11 +279,12 @@ class Parser (Process): row = util.split(row.replace('\n','').replace('~','')) _info = util.get.config(self.config[_code][0],row) - + if _info : try: tmp = self.get.value(row,_info) + # if 'P1080351470' in content[0] and 'PLB' in row: # print (_info) # print (row) @@ -300,10 +301,10 @@ class Parser (Process): else: if label not in value: value[label] = [tmp] - elif len(list(tmp.keys())) == 1 : - # print "\t",len(claim[label]),tmp - index = len(value[label]) -1 - value[label][index] = dict(value[label][index],**tmp) + # elif len(list(tmp.keys())) == 1 : + # # print "\t",len(claim[label]),tmp + # index = len(value[label]) -1 + # value[label][index] = dict(value[label][index],**tmp) else: value[label].append(tmp) tmp['_index'] = len(value[label]) -1 diff --git a/setup.py b/setup.py index 61c69b0..0c9fb86 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.3.7", + "name":"healthcareio","version":"1.4.0", "author":"Vanderbilt University Medical Center", "author_email":"steve.l.nyemba@vumc.org", "license":"MIT",