From 68a0aaeddefdcee7bdc120423f6e5a57c757d48c Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sat, 6 Feb 2021 11:23:04 -0600 Subject: [PATCH] bug fix --- healthcareio/export/export.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcareio/export/export.py b/healthcareio/export/export.py index edae913..0dd52bd 100644 --- a/healthcareio/export/export.py +++ b/healthcareio/export/export.py @@ -161,7 +161,7 @@ def init (**_args) : _name = "$"+".".join([table,field_name]) project[field_name] = {"$ifNull":[_name,""]} #{"$cond":[{"$eq":[_name,None]},"",_name]} project["_id"] = 1 - pipeline = [{"$unwind":"$"+table},{"$project":project}] + pipeline = [{"$match":{"procedures":{"$nin":[None,'']}}},{"$unwind":"$"+table},{"$project":project}] r += [{"table":table,"mongo":{"aggregate":TABLE_NAME,"cursor":{},"pipeline":pipeline,"allowDiskUse":True},"sql":create(table=table,key='claim_id',fields=fields)}] return r diff --git a/setup.py b/setup.py index fc5d4ba..e5b5d53 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.5.8", + "name":"healthcareio","version":"1.5.9", "author":"Vanderbilt University Medical Center", "author_email":"steve.l.nyemba@vumc.org", "include_package_data":True,