From 2dfbf3265061fdbef755b00075b457031612c729 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 28 Sep 2020 11:01:39 -0500 Subject: [PATCH] bug fix: sv3 parsing error, added a processor --- healthcareio/healthcare-io.py | 8 +++++--- healthcareio/parser.py | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/healthcareio/healthcare-io.py b/healthcareio/healthcare-io.py index 53f14a1..cd8413a 100644 --- a/healthcareio/healthcare-io.py +++ b/healthcareio/healthcare-io.py @@ -344,13 +344,15 @@ if __name__ == '__main__' : else: msg = """ - CLI Usage - healthcare-io.py --register --store + cli: + + healthcare-io.py --<[signup|init]> --store [--batch ] healthcare-io.py --parse claims --folder [--batch ] healthcare-io.py --parse remits --folder [--batch ] + 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 diff --git a/healthcareio/parser.py b/healthcareio/parser.py index f15ae14..f35a999 100644 --- a/healthcareio/parser.py +++ b/healthcareio/parser.py @@ -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)