-
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.
VDA-1935-1969 Update for agd and death tables (#1115)
* Updated for agd-data-availability, deceased attributes * Updated for deceased and vpc subnet for dataflow * Updated and added DISTINCT since x_poa column could result in duplicates * Updated person for death table and added condition from omop/condition to sd * updated to add ui-components * updated emerge and local
- Loading branch information
Showing
17 changed files
with
1,394 additions
and
15 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...in/resources/config/criteria/sd/criteriaselector/agdGenotypeResult/agdGenotypeResult.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,3 @@ | ||
{ | ||
"attribute": "has_agd_genotype_result" | ||
} |
15 changes: 15 additions & 0 deletions
15
...ay/src/main/resources/config/criteria/sd/criteriaselector/agdGenotypeResult/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,15 @@ | ||
{ | ||
"name": "agdGenotypeResult", | ||
"displayName": "AGD Data Availability", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": false, | ||
"display": { | ||
"category": "BioVU", | ||
"tags": null | ||
}, | ||
"filterBuilder": "core.PrimaryEntityFilterBuilder", | ||
"plugin": "attribute", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "agdGenotypeResult.json", | ||
"modifiers": null | ||
} |
3 changes: 3 additions & 0 deletions
3
underlay/src/main/resources/config/criteria/sd/criteriaselector/deceased/deceased.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,3 @@ | ||
{ | ||
"attribute": "is_deceased" | ||
} |
15 changes: 15 additions & 0 deletions
15
underlay/src/main/resources/config/criteria/sd/criteriaselector/deceased/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,15 @@ | ||
{ | ||
"name": "tanagra-deceased", | ||
"displayName": "Deceased", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": false, | ||
"display": { | ||
"category": "Demographics", | ||
"tags": null | ||
}, | ||
"filterBuilder": "core.PrimaryEntityFilterBuilder", | ||
"plugin": "attribute", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "deceased.json", | ||
"modifiers": null | ||
} |
10 changes: 10 additions & 0 deletions
10
underlay/src/main/resources/config/datamapping/sd/entity/condition/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,10 @@ | ||
SELECT | ||
concept_id, | ||
concept_name, | ||
vocabulary_id, | ||
concept_code, | ||
(CASE WHEN standard_concept IS NULL THEN 'Source' WHEN standard_concept = 'S' THEN 'Standard' ELSE 'Unknown' END) AS standard_concept | ||
|
||
FROM `${omopDataset}.concept` | ||
|
||
WHERE domain_id = 'Condition' |
12 changes: 12 additions & 0 deletions
12
underlay/src/main/resources/config/datamapping/sd/entity/condition/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,12 @@ | ||
SELECT | ||
cr.concept_id_1 AS parent, | ||
cr.concept_id_2 AS child, | ||
FROM `${omopDataset}.concept_relationship` cr | ||
JOIN `${omopDataset}.concept` c1 ON c1.concept_id = cr.concept_id_1 | ||
JOIN `${omopDataset}.concept` c2 ON c2.concept_id = cr.concept_id_2 | ||
WHERE | ||
cr.relationship_id = 'Subsumes' | ||
AND c1.domain_id = c2.domain_id | ||
AND c2.domain_id = 'Condition' | ||
AND c1.vocabulary_id = c2.vocabulary_id | ||
AND c2.vocabulary_id = 'SNOMED' |
25 changes: 25 additions & 0 deletions
25
underlay/src/main/resources/config/datamapping/sd/entity/condition/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,25 @@ | ||
{ | ||
"name": "condition", | ||
"allInstancesSqlFile": "all.sql", | ||
"attributes": [ | ||
{ "name": "id", "dataType": "INT64", "valueFieldName": "concept_id" }, | ||
{ "name": "name", "dataType": "STRING", "valueFieldName": "concept_name" }, | ||
{ "name": "vocabulary", "dataType": "STRING", "valueFieldName": "vocabulary_id", "isComputeDisplayHint": true }, | ||
{ "name": "standard_concept", "dataType": "STRING", "isComputeDisplayHint": true }, | ||
{ "name": "concept_code", "dataType": "STRING" } | ||
], | ||
"idAttribute": "id", | ||
"textSearch": { | ||
"attributes": [ "id", "name", "concept_code" ] | ||
}, | ||
"hierarchies": [ | ||
{ | ||
"childParentIdPairsSqlFile": "childParent.sql", | ||
"childIdFieldName": "child", | ||
"parentIdFieldName": "parent", | ||
"rootNodeIds": [ 441840 ], | ||
"maxDepth": 20, | ||
"keepOrphanNodes": false | ||
} | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
underlay/src/main/resources/config/datamapping/sd/entity/conditionOccurrence/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT | ||
SELECT DISTINCT | ||
co.condition_occurrence_id, | ||
co.person_id, | ||
p.person_source_value, | ||
|
2 changes: 1 addition & 1 deletion
2
underlay/src/main/resources/config/datamapping/sd/entity/measurementOccurrence/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT | ||
SELECT DISTINCT | ||
mo.measurement_id, | ||
mo.person_id, | ||
p.person_source_value, | ||
|
2 changes: 1 addition & 1 deletion
2
underlay/src/main/resources/config/datamapping/sd/entity/observationOccurrence/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SELECT | ||
SELECT DISTINCT | ||
o.observation_id, | ||
o.person_id, | ||
p.person_source_value, | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
}, | ||
"indexData": { | ||
"projectId": "vumc-sd-dev", | ||
"datasetId": "indexed_sd_20240831_1" | ||
"datasetId": "indexed_sd_20240831_2" | ||
}, | ||
"queryProjectId": "vumc-sd-dev", | ||
"dataLocation": "us-central1" | ||
|
@@ -20,6 +20,7 @@ | |
"serviceAccountEmail": "[email protected]", | ||
"gcsTempDirectory": "gs://dataflow-indexing-sd-dev/temp/", | ||
"workerMachineType": "n1-standard-4", | ||
"usePublicIps": false | ||
"usePublicIps": false, | ||
"vpcSubnetworkName": "us-central1" | ||
} | ||
} |
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