Преглед изворни кода

bug fix: sv3 parsing error, added a processor

Steve Nyemba пре 4 година
родитељ
комит
2dfbf32650
2 измењених фајлова са 11 додато и 3 уклоњено
  1. 5 3
      healthcareio/healthcare-io.py
  2. 6 0
      healthcareio/parser.py

+ 5 - 3
healthcareio/healthcare-io.py

@@ -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

+ 6 - 0
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)