From 0f4cce2b22051b2a1ab3b8acdec129b0be6a08eb Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 15 Feb 2021 20:11:49 -0600 Subject: [PATCH] bug fix with billing provider information --- healthcareio/x12/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 90d1884..f660f0f 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -471,6 +471,7 @@ class Parser (Process): segment = [] index = 0; _toprows = [] + _default = None for row in file : row = row.replace('\r','') if not segment and not row.startswith(section): @@ -483,7 +484,9 @@ class Parser (Process): continue elif segment and not row.startswith(section): - + if not _default : + _default = (self.apply(_toprows,_code)) + DEFAULT_VALUE = dict(DEFAULT_VALUE,**_default) segment.append(row)