bugfix: date pasing

master
Steve L. Nyemba 4 years ago
parent 36311e9482
commit 4019158769

@ -208,8 +208,8 @@ class Formatters :
xchar = '>' if '>' in value else ':' xchar = '>' if '>' in value else ':'
x = value.split(xchar) 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} 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['code'] return x
class Parser (Process): class Parser (Process):
def __init__(self,path): def __init__(self,path):
""" """
@ -511,9 +511,9 @@ class Parser (Process):
if len(file) == 1 : if len(file) == 1 :
file = file[0].split('HL') file = file[0].split('CLM') #.split('HL')
_code = '837' _code = '837'
section = 'HL' section = 'CLM' #'HL'
INITIAL_ROWS = file[0].split(section)[0].split('\n') INITIAL_ROWS = file[0].split(section)[0].split('\n')

Loading…
Cancel
Save