bug fix: toprows as default values

This commit is contained in:
Steve Nyemba 2021-02-15 20:14:00 -06:00
parent 0f4cce2b22
commit b4a5c6d2a5
2 changed files with 5 additions and 1 deletions

View File

@ -485,6 +485,10 @@ class Parser (Process):
elif segment and not row.startswith(section): elif segment and not row.startswith(section):
if not _default : if not _default :
#
# NOTE:
# Some information in the toprows can be available and applied to claims that do not have this
# This holds true for dates, N1, NM1 segments
_default = (self.apply(_toprows,_code)) _default = (self.apply(_toprows,_code))
DEFAULT_VALUE = dict(DEFAULT_VALUE,**_default) DEFAULT_VALUE = dict(DEFAULT_VALUE,**_default)
segment.append(row) segment.append(row)

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.2.4", "name":"healthcareio","version":"1.6.2.6",
"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,