bugfix: date pasing

This commit is contained in:
Steve Nyemba 2021-05-03 11:15:23 -05:00
parent 36311e9482
commit 4019158769
1 changed files with 4 additions and 4 deletions

View File

@ -208,8 +208,8 @@ class Formatters :
xchar = '>' if '>' in value else ':'
x = value.split(xchar)
x = {"code":x[0],"indicator":x[1],"frequency":x[2]} if len(x) == 3 else {"code":x[0],"indicator":None,"frequency":None}
return x['code']
x = {"place_of_service":x[0],"indicator":x[1],"frequency":x[2]} if len(x) == 3 else {"place_of_service":x[0],"indicator":None,"frequency":None}
return x
class Parser (Process):
def __init__(self,path):
"""
@ -511,9 +511,9 @@ class Parser (Process):
if len(file) == 1 :
file = file[0].split('HL')
file = file[0].split('CLM') #.split('HL')
_code = '837'
section = 'HL'
section = 'CLM' #'HL'
INITIAL_ROWS = file[0].split(section)[0].split('\n')