Przeglądaj źródła

bug fix with dates

Steve Nyemba 4 lat temu
rodzic
commit
36311e9482
2 zmienionych plików z 9 dodań i 2 usunięć
  1. 8 1
      healthcareio/x12/__init__.py
  2. 1 1
      setup.py

+ 8 - 1
healthcareio/x12/__init__.py

@@ -134,7 +134,14 @@ class Formatters :
             year = '20' + value[:2]
             month = value[2:4]
             day   = value[4:]
-        
+        elif value.isnumeric() and len(value) >= 10:
+            #
+            # Here I a will assume we have a numeric vale
+            year = value[:4]
+            month= value[4:6]
+            day = value[6:8]
+        else:
+            
             #
             # We have a date formatting issue
            

+ 1 - 1
setup.py

@@ -8,7 +8,7 @@ import sys
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read() 
 args = {
-    "name":"healthcareio","version":"1.6.4.1",
+    "name":"healthcareio","version":"1.6.4.2",
     "author":"Vanderbilt University Medical Center",
     "author_email":"steve.l.nyemba@vumc.org",
     "include_package_data":True,