From b4a5c6d2a516e22c8515761423c6f52aa3b18f0c Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 15 Feb 2021 20:14:00 -0600 Subject: [PATCH] bug fix: toprows as default values --- healthcareio/x12/__init__.py | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index f660f0f..1a49fdd 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -485,6 +485,10 @@ class Parser (Process): elif segment and not row.startswith(section): 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_VALUE = dict(DEFAULT_VALUE,**_default) segment.append(row) diff --git a/setup.py b/setup.py index 360d2cc..26c3512 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.4", + "name":"healthcareio","version":"1.6.2.6", "author":"Vanderbilt University Medical Center", "author_email":"steve.l.nyemba@vumc.org", "include_package_data":True,