bug fix: sv3 parsing error, added a processor

docker
Steve L. Nyemba 4 years ago
parent 2e4aea2f9b
commit 2dfbf32650

@ -344,13 +344,15 @@ if __name__ == '__main__' :
else:
msg = """
CLI Usage
healthcare-io.py --register <email> --store <sqlite|mongo>
cli:
healthcare-io.py --<[signup|init]> <email> --store <sqlite|mongo> [--batch <value>]
healthcare-io.py --parse claims --folder <path> [--batch <value>]
healthcare-io.py --parse remits --folder <path> [--batch <value>]
parameters :
--<[signup|init]> signup or get a configuration file from a parsing server
--store data store mongo or sqlite
--store data store mongo or sqlite or mongodb
"""
print(msg)
pass

@ -91,6 +91,12 @@ def format_date(value) :
return "-".join([year,month,day])
def format_time(value):
return ":".join([value[:2],value[2:] ])[:5]
def sv3_parse(value):
if '>' in value :
terms = value.split('>')
return {'type':terms[0],'code':terms[1]}
pass
def sv2_parse(value):
#
# @TODO: Sometimes there's a suffix (need to inventory all the variations)

Loading…
Cancel
Save