bug fix: 837 claims

This commit is contained in:
Steve Nyemba 2021-04-28 14:40:22 -05:00
parent 2ffe827063
commit a1200564ba
2 changed files with 6 additions and 3 deletions

View File

@ -386,6 +386,7 @@ class Parser (Process):
_cinfo = util.get.config(self._custom_config[_code],row) _cinfo = util.get.config(self._custom_config[_code],row)
else: else:
_cinfo = {} _cinfo = {}
if _info or _cinfo: if _info or _cinfo:
try: try:
@ -393,6 +394,8 @@ class Parser (Process):
_info = jsonmerge.merge(_info,_cinfo) _info = jsonmerge.merge(_info,_cinfo)
tmp = self.get.value(row,_info) tmp = self.get.value(row,_info)
if not tmp : if not tmp :
continue continue
@ -501,7 +504,7 @@ class Parser (Process):
if len(file) == 1 : if len(file) == 1 :
file = file[0].split('CLM') file = file[0].split('HL')
_code = '837' _code = '837'
section = 'HL' section = 'HL'
@ -592,7 +595,7 @@ class Parser (Process):
if segment and segment[0].startswith(section) : if segment and segment[0].startswith(section) :
# default_claim = dict({"name":index},**DEFAULT_VALUE) # default_claim = dict({"name":index},**DEFAULT_VALUE)
claim = self.apply(segment,_code) claim = self.apply(segment,_code)
if claim : if claim :
claim['index'] = len(claims) claim['index'] = len(claims)

View File

@ -8,7 +8,7 @@ import sys
def read(fname): def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = { args = {
"name":"healthcareio","version":"1.6.3.4", "name":"healthcareio","version":"1.6.4",
"author":"Vanderbilt University Medical Center", "author":"Vanderbilt University Medical Center",
"author_email":"steve.l.nyemba@vumc.org", "author_email":"steve.l.nyemba@vumc.org",
"include_package_data":True, "include_package_data":True,