docker
Steve L. Nyemba 4 years ago
parent e0183adb71
commit b0cae5f96d

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

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

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

Loading…
Cancel
Save