|
@@ -150,8 +150,10 @@ def get_content(filename,config,section=None) :
|
|
|
logs = []
|
|
|
|
|
|
# VERSION = x12_file[2].split('*')[3].replace('~','')
|
|
|
- VERSION = x12_file[1].split('*')[-1].replace('~','')
|
|
|
-
|
|
|
+ TOP_ROW = x12_file[1].split('*')
|
|
|
+ VERSION = x12_file[1].split('*')[-1].replace('~','')
|
|
|
+ SUBMITTED_DATE = format_date(TOP_ROW[4])
|
|
|
+ SENDER_ID = TOP_ROW[2]
|
|
|
row = split(x12_file[3])
|
|
|
_info = get_config(config,row)
|
|
|
|
|
@@ -182,7 +184,13 @@ def get_content(filename,config,section=None) :
|
|
|
break
|
|
|
|
|
|
if 'label' not in _info :
|
|
|
- tmp['version'] = VERSION
|
|
|
+ tmp['version'] = VERSION
|
|
|
+ tmp['submitted'] = SUBMITTED_DATE
|
|
|
+ if TOP_ROW[1] == 'HP' :
|
|
|
+ tmp['payer_id'] = SENDER_ID
|
|
|
+ else:
|
|
|
+ tmp['provider_id'] = SENDER_ID
|
|
|
+
|
|
|
claim = dict(claim, **tmp)
|
|
|
|
|
|
|