From 36311e9482864031889fe8cefd24e401b34cecdd Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sun, 2 May 2021 23:50:41 -0500 Subject: [PATCH] bug fix with dates --- healthcareio/x12/__init__.py | 9 ++++++++- setup.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 0359f3d..b8e6f81 100644 --- a/healthcareio/x12/__init__.py +++ b/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 diff --git a/setup.py b/setup.py index 33bba4d..0cb3a4d 100644 --- a/setup.py +++ b/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,