From a1200564ba0b9b52301f39d3660579f64b3d5294 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 28 Apr 2021 14:40:22 -0500 Subject: [PATCH] bug fix: 837 claims --- healthcareio/x12/__init__.py | 7 +++++-- setup.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 0677ec0..0359f3d 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -386,6 +386,7 @@ class Parser (Process): _cinfo = util.get.config(self._custom_config[_code],row) else: _cinfo = {} + if _info or _cinfo: try: @@ -393,6 +394,8 @@ class Parser (Process): _info = jsonmerge.merge(_info,_cinfo) tmp = self.get.value(row,_info) + + if not tmp : continue @@ -501,7 +504,7 @@ class Parser (Process): if len(file) == 1 : - file = file[0].split('CLM') + file = file[0].split('HL') _code = '837' section = 'HL' @@ -592,7 +595,7 @@ class Parser (Process): if segment and segment[0].startswith(section) : # default_claim = dict({"name":index},**DEFAULT_VALUE) - + claim = self.apply(segment,_code) if claim : claim['index'] = len(claims) diff --git a/setup.py b/setup.py index f60532b..af38222 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.3.4", + "name":"healthcareio","version":"1.6.4", "author":"Vanderbilt University Medical Center", "author_email":"steve.l.nyemba@vumc.org", "include_package_data":True,