Skip to content

Commit

Permalink
Update load_data_observational.cypher
Browse files Browse the repository at this point in the history
Changed IS_REGULATED_DEVICE to IS_UNAPPROVED_DEVICE
  • Loading branch information
KirstenLangendorf authored Oct 13, 2020
1 parent a2da313 commit fd0adfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataloader/load_data_observational.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ UNWIND study_metadata.NCTId as Id
match(ct:ClinicalTrial{NCTId:Id}), (r:Response{YN:'Yes'})
UNWIND study_metadata.IsUnapprovedDevice as IsUnapprovedDevice
FOREACH(ignoreMe IN CASE WHEN IsUnapprovedDevice='Yes' THEN [1] ELSE [] END |
MERGE(ct)-[:IS_FDA_REGULATED_DEVICE]->(r))
MERGE(ct)-[:IS_FDA_UNAPPROVED_DEVICE]->(r))
with study_metadata
UNWIND study_metadata.NCTId as Id
match(ct:ClinicalTrial{NCTId:Id}),(r:Response{YN:'No'})
UNWIND study_metadata.IsUnapprovedDevice as IsUnapprovedDevice
FOREACH(ignoreMe IN CASE WHEN IsUnapprovedDevice='No' THEN [1] ELSE [] END |
MERGE(ct)-[:IS_FDA_REGULATED_DEVICE]->(r))
MERGE(ct)-[:IS_FDA_UNAPPROVED_DEVICE]->(r))
;
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
Expand Down

0 comments on commit fd0adfd

Please sign in to comment.