-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add COPE surveys to AoU underlay (#1017)
* add entity and group for covid vaccine survey * make surveyOccurrence select distinct * add ui config for survey versions * add entity for cope survey * fix cope name in ui config
- Loading branch information
Showing
18 changed files
with
415 additions
and
11 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...rc/main/resources/config/criteria/aouSR2023Q3R2/criteriaselector/surveyCope/selector.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "tanagra-surveyCope", | ||
"displayName": "COVID-19 Participant Experience (COPE) Survey", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": true, | ||
"display": { | ||
"category": "Surveys", | ||
"tags": [ | ||
"Standard Codes" | ||
] | ||
}, | ||
"filterBuilder": "core.EntityGroupFilterBuilder", | ||
"plugin": "entityGroup", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "surveyCope.json", | ||
"modifiers": [] | ||
} |
61 changes: 61 additions & 0 deletions
61
.../main/resources/config/criteria/aouSR2023Q3R2/criteriaselector/surveyCope/surveyCope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"columns": [ | ||
{ | ||
"key": "name", | ||
"widthString": "100%", | ||
"title": "Name" | ||
}, | ||
{ | ||
"key": "concept_id", | ||
"widthDouble": 120, | ||
"title": "Concept Id" | ||
}, | ||
{ | ||
"key": "value", | ||
"widthDouble": 120, | ||
"title": "Answer Concept Id" | ||
}, | ||
{ | ||
"key": "subtype", | ||
"widthDouble": 180, | ||
"title": "Type" | ||
}, | ||
{ | ||
"key": "t_rollup_count", | ||
"widthDouble": 150, | ||
"title": "Count" | ||
} | ||
], | ||
"hierarchyColumns": [ | ||
{ | ||
"key": "name", | ||
"widthString": "60%", | ||
"title": "Name" | ||
}, | ||
{ | ||
"key": "t_rollup_count", | ||
"widthString": "40%", | ||
"title": "Count" | ||
} | ||
], | ||
"classificationEntityGroups": [ | ||
{ | ||
"id": "surveyCopePerson", | ||
"sortOrder": { | ||
"attribute": "id", | ||
"direction": "SORT_ORDER_DIRECTION_ASCENDING" | ||
} | ||
} | ||
], | ||
"multiSelect": false, | ||
"valueConfigs": [ | ||
{ | ||
"attribute": "value_numeric", | ||
"title": "Numeric value" | ||
}, | ||
{ | ||
"attribute": "survey_version", | ||
"title": "Survey Version" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
...resources/config/criteria/aouSR2023Q3R2/criteriaselector/surveyCovidVaccine/selector.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "tanagra-surveyCovidVaccine", | ||
"displayName": "COVID-19 Vaccine Survey", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": true, | ||
"display": { | ||
"category": "Surveys", | ||
"tags": [ | ||
"Standard Codes" | ||
] | ||
}, | ||
"filterBuilder": "core.EntityGroupFilterBuilder", | ||
"plugin": "entityGroup", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "surveyCovidVaccine.json", | ||
"modifiers": [] | ||
} |
61 changes: 61 additions & 0 deletions
61
...config/criteria/aouSR2023Q3R2/criteriaselector/surveyCovidVaccine/surveyCovidVaccine.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"columns": [ | ||
{ | ||
"key": "name", | ||
"widthString": "100%", | ||
"title": "Name" | ||
}, | ||
{ | ||
"key": "concept_id", | ||
"widthDouble": 120, | ||
"title": "Concept Id" | ||
}, | ||
{ | ||
"key": "value", | ||
"widthDouble": 120, | ||
"title": "Answer Concept Id" | ||
}, | ||
{ | ||
"key": "subtype", | ||
"widthDouble": 180, | ||
"title": "Type" | ||
}, | ||
{ | ||
"key": "t_rollup_count", | ||
"widthDouble": 150, | ||
"title": "Count" | ||
} | ||
], | ||
"hierarchyColumns": [ | ||
{ | ||
"key": "name", | ||
"widthString": "60%", | ||
"title": "Name" | ||
}, | ||
{ | ||
"key": "t_rollup_count", | ||
"widthString": "40%", | ||
"title": "Count" | ||
} | ||
], | ||
"classificationEntityGroups": [ | ||
{ | ||
"id": "surveyCovidVaccinePerson", | ||
"sortOrder": { | ||
"attribute": "id", | ||
"direction": "SORT_ORDER_DIRECTION_ASCENDING" | ||
} | ||
} | ||
], | ||
"multiSelect": false, | ||
"valueConfigs": [ | ||
{ | ||
"attribute": "value_numeric", | ||
"title": "Numeric value" | ||
}, | ||
{ | ||
"attribute": "survey_version", | ||
"title": "Survey Version" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
underlay/src/main/resources/config/datamapping/aouRT/entity/surveyCope/all.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT id, name, code, subtype, concept_id, CAST(value AS INT64) AS value | ||
FROM `${omopDataset}.prep_survey` | ||
WHERE survey IN ('May2020Covid19Participa', 'July2020Covid19Particip', 'February2021COVID19Part') |
3 changes: 3 additions & 0 deletions
3
underlay/src/main/resources/config/datamapping/aouRT/entity/surveyCope/childParent.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT parent_id AS parent, id AS child | ||
FROM `${omopDataset}.prep_survey` | ||
WHERE parent_id != 0 AND survey IN ('May2020Covid19Participa', 'July2020Covid19Particip', 'February2021COVID19Part') |
27 changes: 27 additions & 0 deletions
27
underlay/src/main/resources/config/datamapping/aouRT/entity/surveyCope/entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "surveyCope", | ||
"allInstancesSqlFile": "all.sql", | ||
"attributes": [ | ||
{ "name": "id", "dataType": "INT64" }, | ||
{ "name": "name", "dataType": "STRING" }, | ||
{ "name": "code", "dataType": "STRING" }, | ||
{ "name": "subtype", "dataType": "STRING", "isComputeDisplayHint": true }, | ||
{ "name": "concept_id", "dataType": "INT64" }, | ||
{ "name": "value", "dataType": "INT64" } | ||
], | ||
"idAttribute": "id", | ||
"textSearch": { | ||
"attributes": [ "name", "code", "subtype", "concept_id", "value" ] | ||
}, | ||
"hierarchies": [ | ||
{ | ||
"childParentIdPairsSqlFile": "childParent.sql", | ||
"childIdFieldName": "child", | ||
"parentIdFieldName": "parent", | ||
"rootNodeIds": [ 24000 ], | ||
"maxDepth": 5, | ||
"keepOrphanNodes": false, | ||
"cleanHierarchyNodesWithZeroCounts": true | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
underlay/src/main/resources/config/datamapping/aouRT/entity/surveyCovidVaccine/all.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT id, name, code, subtype, concept_id, CAST(value AS INT64) AS value | ||
FROM `${omopDataset}.prep_survey` | ||
WHERE survey = 'NewYearMinuteSurveyOnCO' |
3 changes: 3 additions & 0 deletions
3
...lay/src/main/resources/config/datamapping/aouRT/entity/surveyCovidVaccine/childParent.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT parent_id AS parent, id AS child | ||
FROM `${omopDataset}.prep_survey` | ||
WHERE parent_id != 0 AND survey = 'NewYearMinuteSurveyOnCO' |
27 changes: 27 additions & 0 deletions
27
underlay/src/main/resources/config/datamapping/aouRT/entity/surveyCovidVaccine/entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "surveyCovidVaccine", | ||
"allInstancesSqlFile": "all.sql", | ||
"attributes": [ | ||
{ "name": "id", "dataType": "INT64" }, | ||
{ "name": "name", "dataType": "STRING" }, | ||
{ "name": "code", "dataType": "STRING" }, | ||
{ "name": "subtype", "dataType": "STRING", "isComputeDisplayHint": true }, | ||
{ "name": "concept_id", "dataType": "INT64" }, | ||
{ "name": "value", "dataType": "INT64" } | ||
], | ||
"idAttribute": "id", | ||
"textSearch": { | ||
"attributes": [ "name", "code", "subtype", "concept_id", "value" ] | ||
}, | ||
"hierarchies": [ | ||
{ | ||
"childParentIdPairsSqlFile": "childParent.sql", | ||
"childIdFieldName": "child", | ||
"parentIdFieldName": "parent", | ||
"rootNodeIds": [ 42000 ], | ||
"maxDepth": 5, | ||
"keepOrphanNodes": false, | ||
"cleanHierarchyNodesWithZeroCounts": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.