Skip to content

Commit

Permalink
Merge pull request #181 from WengLab-InformaticsResearch/upstream_res…
Browse files Browse the repository at this point in the history
…ource_ids

Add upstream_resource_ids on COHD sources
  • Loading branch information
CaseyTa authored Aug 11, 2023
2 parents 9d5769c + 81f79fc commit 5b8bf13
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cohd/cohd_trapi_14.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,14 +1313,15 @@ def _add_kg_edge(self, node_1, node_2, cohd_result):

# Add source retrieval
sources = [
{
'resource_id': CohdTrapi._INFORES_ID,
'resource_role': 'primary_knowledge_source',
},
{
'resource_id': 'infores:columbia-cdw-ehr-data',
'resource_role': 'supporting_data_source',
},
{
'resource_id': CohdTrapi._INFORES_ID,
'resource_role': 'primary_knowledge_source',
'upstream_resource_ids': ['infores:columbia-cdw-ehr-data']
},
]

# Add properties from COHD results to the edge attributes
Expand Down

0 comments on commit 5b8bf13

Please sign in to comment.