Skip to content

Commit

Permalink
Corrected error in the load file
Browse files Browse the repository at this point in the history
Deleted %%cypher and added some ;
  • Loading branch information
KirstenLangendorf authored Jul 2, 2020
1 parent d04a17f commit 55a3277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dataloader/load_data_interventional.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ MERGE(ct)-[:IS_SUPPORTED_BY]->(sp);
// Oversight: IsFDARegulatedDrug,IsFDARegulatedDevice, IsUnapprovedDevice, HasExpandedAccess
// Interventional studies - QUERY at https://clinicaltrials.gov/api/gui/demo/simple_study_fields:
// COVID AND AREA[StudyType]Interventional
%%cypher
MERGE(r:Response{YN:'Yes'})
MERGE(k:Response{YN:'No'})
MERGE(k:Response{YN:'No'});
call apoc.load.json('https://clinicaltrials.gov/api/query/study_fields?expr=COVID+AND+AREA%5BStudyType%5DInterventional&fields=NCTId&fmt=json&max_rnk=1000') yield value
with value.StudyFieldsResponse.NStudiesFound as NStudies, RANGE(0,(value.StudyFieldsResponse.NStudiesFound/1000)) as nloop
UNWIND nloop as i
Expand Down
2 changes: 1 addition & 1 deletion dataloader/load_data_observational.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ MERGE(ct)-[:IS_SUPPORTED_BY]->(sp);
// Observational studies - QUERY at https://clinicaltrials.gov/api/gui/demo/simple_study_fields:
// COVID AND AREA[StudyType]Observational
MERGE(r:Response{YN:'Yes'})
MERGE(k:Response{YN:'No'})
MERGE(k:Response{YN:'No'});
call apoc.load.json('https://clinicaltrials.gov/api/query/study_fields?expr=COVID+AND+AREA%5BStudyType%5DObservational&fields=NCTId&fmt=json&max_rnk=1000') yield value
with value.StudyFieldsResponse.NStudiesFound as NStudies, RANGE(0,(value.StudyFieldsResponse.NStudiesFound/1000)) as nloop
UNWIND nloop as i
Expand Down

0 comments on commit 55a3277

Please sign in to comment.