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)