This commit is contained in:
Steve Nyemba 2020-09-16 11:23:31 -05:00
parent e0183adb71
commit b0cae5f96d
3 changed files with 5 additions and 3 deletions

View File

@ -245,7 +245,8 @@ if __name__ == '__main__' :
try:
content,logs = parse(filename = filename,type=SYS_ARGS['parse'])
if content :
writer.write(content)
print (content)
# writer.write(content)
if logs :
[logger.write(_row) for _row in logs]
else:

View File

@ -154,7 +154,6 @@ def get_map(row,config,version):
for row_item in row :
value = get_map(row_item,config,version)
value['_index'] = len(object_value)
object_value.append(value)
#
# We need to add the index of the object it matters in determining the claim types
@ -290,7 +289,9 @@ def get_content(filename,config,section=None) :
if len(claim[label]) > 0 :
labels = []
for item in claim[label] :
item['_index'] = len(labels)
if item not in labels :
labels.append(item)
claim[label] = labels
# claim[label] = list( set(claim[label])) #-- removing redundancies

View File

@ -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.2.6",
"name":"healthcareio","version":"1.2.7",
"author":"Vanderbilt University Medical Center",
"author_email":"steve.l.nyemba@vumc.org",
"license":"MIT",