Skip to content

Commit 5b8bf13

Browse files
authored
Merge pull request #181 from WengLab-InformaticsResearch/upstream_resource_ids
Add upstream_resource_ids on COHD sources
2 parents 9d5769c + 81f79fc commit 5b8bf13

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cohd/cohd_trapi_14.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,14 +1313,15 @@ def _add_kg_edge(self, node_1, node_2, cohd_result):
13131313

13141314
# Add source retrieval
13151315
sources = [
1316-
{
1317-
'resource_id': CohdTrapi._INFORES_ID,
1318-
'resource_role': 'primary_knowledge_source',
1319-
},
13201316
{
13211317
'resource_id': 'infores:columbia-cdw-ehr-data',
13221318
'resource_role': 'supporting_data_source',
13231319
},
1320+
{
1321+
'resource_id': CohdTrapi._INFORES_ID,
1322+
'resource_role': 'primary_knowledge_source',
1323+
'upstream_resource_ids': ['infores:columbia-cdw-ehr-data']
1324+
},
13241325
]
13251326

13261327
# Add properties from COHD results to the edge attributes

0 commit comments

Comments
 (0)