Skip to content

Commit

Permalink
Merge pull request #3 from gtsueng/master
Browse files Browse the repository at this point in the history
change name value from file name to more descriptive label.
  • Loading branch information
juliamullen authored May 12, 2022
2 parents 5402f20 + becc521 commit 6e9d4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def getProtocols(row):
protCat = "procedure"
else:
protCat = "protocol"
arr.append({"@type": "Protocol", "name": doc['LargeDocFilename'], "author": row["author"], "curatedBy": row["curatedBy"], "datePublished": formatDate(
arr.append({"@type": "Protocol", "name": f"{row['name']} {protCat} file: {doc['LargeDocLabel']}","alternateName": doc['LargeDocFilename'], "author": row["author"], "curatedBy": row["curatedBy"], "datePublished": formatDate(
doc["LargeDocDate"]), "description": f"{doc['LargeDocLabel']} for Clinical Trial {id}: {row['name']}", "_id": f"{id}_{doc['LargeDocFilename']}", "identifier": f"{id}_{doc['LargeDocFilename']}", "protocolCategory": protCat, "protocolSetting": "clinical", "url": f"https://clinicaltrials.gov/ct2/show/{id}"})
return(arr)

Expand Down

0 comments on commit 6e9d4db

Please sign in to comment.