Skip to content

Commit

Permalink
#374 - Extend API to save and load cohort and dataselection
Browse files Browse the repository at this point in the history
- modify script to copy saved queries and templates to not include a "null" dataExtraction object
  • Loading branch information
michael-82 committed Feb 25, 2025
1 parent 008a8f5 commit 4d3a8d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ insert into dataquery (created_by, label, comment, crtdl, last_modified, result_
select q.created_by,
sq.label,
sq.comment,
CONCAT('{"version":null,"display":"","cohortDefinition":', qc.query_content, ',"dataExtraction":null}'),
CONCAT('{"version":null,"display":"","cohortDefinition":', qc.query_content, '}'),
q.created_at,
sq.result_size
from saved_query sq
Expand All @@ -24,7 +24,7 @@ insert into dataquery (created_by, label, comment, crtdl, last_modified)
select q.created_by,
qt.label,
qt.comment,
CONCAT('{"version":null,"display":"","cohortDefinition":', qc.query_content, ',"dataExtraction":null}'),
CONCAT('{"version":null,"display":"","cohortDefinition":', qc.query_content, '}'),
q.created_at
from query_template qt
left join query q on qt.query_id = q.id
Expand Down

0 comments on commit 4d3a8d4

Please sign in to comment.