From 53a770667139610cd53a21e5e4e305c1a58ae145 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 15 Feb 2021 20:41:14 -0600 Subject: [PATCH] bug fix: ... weird stuff --- healthcareio/x12/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 1a49fdd..fe8d017 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -437,7 +437,7 @@ class Parser (Process): # # Let's parse this for default values - return jsonmerge.merge(value,self.apply(content,_code)) + return value # jsonmerge.merge(value,self.apply(content,_code)) def read(self,filename) : """ @@ -490,7 +490,10 @@ class Parser (Process): # 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) + # print (_default) + # print (DEFAULT_VALUE) + # print (jsonmerge.merge(DEFAULT_VALUE,_default)) + DEFAULT_VALUE = jsonmerge.merge(DEFAULT_VALUE,_default) segment.append(row)