|
|
@ -100,8 +100,8 @@ def DTP (**_args):
|
|
|
|
# _columns = ['to','from','type']
|
|
|
|
# _columns = ['to','from','type']
|
|
|
|
# return self.parse(_columns,[3],**_args)
|
|
|
|
# return self.parse(_columns,[3],**_args)
|
|
|
|
_data = _args['data']
|
|
|
|
_data = _args['data']
|
|
|
|
_data['to'] = '-'.join([_data['to'][:4],_data['to'][4:6],_data['to'][6:]])
|
|
|
|
_data['end_date'] = '-'.join([_data['end_date'][:4],_data['end_date'][4:6],_data['end_date'][6:]])
|
|
|
|
_data['from'] = '-'.join([_data['from'][:4],_data['from'][4:6],_data['from'][6:]])
|
|
|
|
_data['start_date'] = '-'.join([_data['start_date'][:4],_data['start_date'][4:6],_data['start_date'][6:]])
|
|
|
|
return _data
|
|
|
|
return _data
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
@parser(element='PER',anchor={'IC':'submitter'},map={2:'contact',4:'phone_number',8:'email'})
|
|
|
|
@parser(element='PER',anchor={'IC':'submitter'},map={2:'contact',4:'phone_number',8:'email'})
|
|
|
@ -124,7 +124,7 @@ def CLM (**_args):
|
|
|
|
Expected Element CLM
|
|
|
|
Expected Element CLM
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
_data = _args['data']
|
|
|
|
_data = _args['data']
|
|
|
|
_data['claim_amount'] = np.float64(_data['claim_amount'])
|
|
|
|
_data['claim_amount'] = np.float64(_data['claim_amount']) if _data['claim_amount'] not in ['',None] else ''
|
|
|
|
return _data
|
|
|
|
return _data
|
|
|
|
# _columns = ['claim_id','claim_amount','facility_code','facility_qualifier','frequency_code']
|
|
|
|
# _columns = ['claim_id','claim_amount','facility_code','facility_qualifier','frequency_code']
|
|
|
|
# return self.parse(_columns,[1,2,5,5,5],**_args)
|
|
|
|
# return self.parse(_columns,[1,2,5,5,5],**_args)
|
|
|
|