|
|
@ -422,7 +422,7 @@ class Parser (Process):
|
|
|
|
# x12_file = open(filename.strip(),errors='ignore').read().split('\n')
|
|
|
|
# x12_file = open(filename.strip(),errors='ignore').read().split('\n')
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|
logs.append ({"parse":"claims" if _code == '837' else 'remits',"completed":False,"name":filename,"msg":e.args[0]})
|
|
|
|
logs.append ({"parse":"claims" if _code == '837' else 'remits',"completed":False,"name":filename,"msg":e.args[0]})
|
|
|
|
return [],logs
|
|
|
|
return [],logs,_code
|
|
|
|
|
|
|
|
|
|
|
|
rate = 0 if len(claims) == 0 else (1 + index)/len(claims)
|
|
|
|
rate = 0 if len(claims) == 0 else (1 + index)/len(claims)
|
|
|
|
logs.append ({"parse":"claims" if _code == '837' else 'remits',"completed":True,"name":filename,"rate":rate})
|
|
|
|
logs.append ({"parse":"claims" if _code == '837' else 'remits',"completed":True,"name":filename,"rate":rate})
|
|
|
|