bug fix: sv3 parsing error, added a processor
This commit is contained in:
parent
2e4aea2f9b
commit
2dfbf32650
|
@ -344,13 +344,15 @@ if __name__ == '__main__' :
|
||||||
|
|
||||||
else:
|
else:
|
||||||
msg = """
|
msg = """
|
||||||
CLI Usage
|
cli:
|
||||||
healthcare-io.py --register <email> --store <sqlite|mongo>
|
|
||||||
|
healthcare-io.py --<[signup|init]> <email> --store <sqlite|mongo> [--batch <value>]
|
||||||
healthcare-io.py --parse claims --folder <path> [--batch <value>]
|
healthcare-io.py --parse claims --folder <path> [--batch <value>]
|
||||||
healthcare-io.py --parse remits --folder <path> [--batch <value>]
|
healthcare-io.py --parse remits --folder <path> [--batch <value>]
|
||||||
|
|
||||||
parameters :
|
parameters :
|
||||||
--<[signup|init]> signup or get a configuration file from a parsing server
|
--<[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)
|
print(msg)
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -91,6 +91,12 @@ def format_date(value) :
|
||||||
return "-".join([year,month,day])
|
return "-".join([year,month,day])
|
||||||
def format_time(value):
|
def format_time(value):
|
||||||
return ":".join([value[:2],value[2:] ])[:5]
|
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):
|
def sv2_parse(value):
|
||||||
#
|
#
|
||||||
# @TODO: Sometimes there's a suffix (need to inventory all the variations)
|
# @TODO: Sometimes there's a suffix (need to inventory all the variations)
|
||||||
|
|
Loading…
Reference in New Issue