-
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.
Merge branch 'main' into dexamundsen/snyk-1
- Loading branch information
Showing
20 changed files
with
269 additions
and
54 deletions.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
underlay/src/main/resources/config/criteria/aouRT/criteriaselector/hasPMData/hasPMData.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_pm_data" | ||
} |
15 changes: 15 additions & 0 deletions
15
underlay/src/main/resources/config/criteria/aouRT/criteriaselector/hasPMData/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-has-pm-data", | ||
"displayName": "Has Any Physical Measurements Data", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": false, | ||
"display": { | ||
"category": "Physical Measurements", | ||
"tags": null | ||
}, | ||
"filterBuilder": "core.PrimaryEntityFilterBuilder", | ||
"plugin": "attribute", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "hasPMData.json", | ||
"modifiers": null | ||
} |
8 changes: 8 additions & 0 deletions
8
underlay/src/main/resources/config/criteria/aouRT/criteriaselector/pregnant/pregnant.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,8 @@ | ||
{ | ||
"entity": "pregnant", | ||
"valueConfigs": [ | ||
{ | ||
"attribute": "pregnant_at_enrollment" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
underlay/src/main/resources/config/criteria/aouRT/criteriaselector/pregnant/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-pregnant", | ||
"displayName": "Pregnant at enrollment", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": false, | ||
"display": { | ||
"category": "Physical Measurements", | ||
"tags": null | ||
}, | ||
"filterBuilder": "core.MultiAttributeFilterBuilder", | ||
"plugin": "multiAttribute", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "pregnant.json", | ||
"modifiers": null | ||
} |
15 changes: 15 additions & 0 deletions
15
underlay/src/main/resources/config/criteria/aouRT/criteriaselector/wheelchair/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-wheelchair", | ||
"displayName": "Wheelchair user at enrollment", | ||
"isEnabledForCohorts": true, | ||
"isEnabledForDataFeatureSets": false, | ||
"display": { | ||
"category": "Physical Measurements", | ||
"tags": null | ||
}, | ||
"filterBuilder": "core.MultiAttributeFilterBuilder", | ||
"plugin": "multiAttribute", | ||
"pluginConfig": null, | ||
"pluginConfigFile": "wheelchair.json", | ||
"modifiers": null | ||
} |
8 changes: 8 additions & 0 deletions
8
...rlay/src/main/resources/config/criteria/aouRT/criteriaselector/wheelchair/wheelchair.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,8 @@ | ||
{ | ||
"entity": "wheelchair", | ||
"valueConfigs": [ | ||
{ | ||
"attribute": "wheelchair_at_enrollment" | ||
} | ||
] | ||
} |
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
26 changes: 26 additions & 0 deletions
26
underlay/src/main/resources/config/datamapping/aouRT/entity/pregnant/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,26 @@ | ||
SELECT | ||
mo.measurement_id, | ||
mo.person_id, | ||
(CASE WHEN mo.measurement_concept_id IS NULL THEN 0 ELSE mo.measurement_concept_id END) AS measurement_concept_id, | ||
mc.concept_name AS measurement_concept_name, | ||
mo.measurement_datetime, | ||
mo.value_as_number, | ||
mo.value_as_concept_id, | ||
evc.concept_name AS value_as_concept_name, | ||
mo.unit_concept_id, | ||
uc.concept_name AS unit_concept_name, | ||
mo.measurement_source_value, | ||
mo.measurement_source_concept_id, | ||
CAST(FLOOR(TIMESTAMP_DIFF(mo.measurement_datetime, p.birth_datetime, DAY) / 365.25) AS INT64) AS age_at_occurrence, | ||
mo.visit_occurrence_id, | ||
vo.visit_concept_id, | ||
vc.concept_name AS visit_concept_name, | ||
true as pregnant_at_enrollment | ||
FROM `${omopDataset}.measurement` AS mo | ||
JOIN `${omopDataset}.person` AS p ON p.person_id = mo.person_id | ||
LEFT JOIN `${omopDataset}.concept` AS mc ON mc.concept_id = mo.measurement_concept_id | ||
LEFT JOIN `${omopDataset}.concept` AS evc ON evc.concept_id = mo.value_as_concept_id | ||
LEFT JOIN `${omopDataset}.concept` AS uc ON uc.concept_id = mo.unit_concept_id | ||
LEFT JOIN `${omopDataset}.visit_occurrence` AS vo ON vo.visit_occurrence_id = mo.visit_occurrence_id | ||
LEFT JOIN `${omopDataset}.concept` AS vc ON vc.concept_id = vo.visit_concept_id | ||
WHERE mo.measurement_source_concept_id = 903120 |
20 changes: 20 additions & 0 deletions
20
underlay/src/main/resources/config/datamapping/aouRT/entity/pregnant/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,20 @@ | ||
{ | ||
"name": "pregnant", | ||
"allInstancesSqlFile": "all.sql", | ||
"attributes": [ | ||
{ "name": "id", "dataType": "INT64", "valueFieldName": "measurement_id" }, | ||
{ "name": "person_id", "dataType": "INT64" }, | ||
{ "name": "measurement", "dataType": "INT64", "valueFieldName": "measurement_concept_id", "displayFieldName": "measurement_concept_name" }, | ||
{ "name": "date", "dataType": "TIMESTAMP", "valueFieldName": "measurement_datetime" }, | ||
{ "name": "value_numeric", "dataType": "DOUBLE", "valueFieldName": "value_as_number", "isComputeDisplayHint": true, "displayHintRangeMin": 0, "displayHintRangeMax": 100 }, | ||
{ "name": "value_enum", "dataType": "INT64", "valueFieldName": "value_as_concept_id", "displayFieldName": "value_as_concept_name" }, | ||
{ "name": "unit", "dataType": "INT64", "valueFieldName": "unit_concept_id", "displayFieldName": "unit_concept_name" }, | ||
{ "name": "source_value", "dataType": "STRING", "valueFieldName": "measurement_source_value" }, | ||
{ "name": "source_criteria_id", "dataType": "INT64", "valueFieldName": "measurement_source_concept_id" }, | ||
{ "name": "age_at_occurrence", "dataType": "INT64", "isComputeDisplayHint": true }, | ||
{ "name": "visit_occurrence_id", "dataType": "INT64" }, | ||
{ "name": "visit_type", "dataType": "INT64", "valueFieldName": "visit_concept_id", "displayFieldName": "visit_concept_name", "isComputeDisplayHint": true }, | ||
{ "name": "pregnant_at_enrollment", "dataType": "BOOLEAN", "isSuppressedForExport": true } | ||
], | ||
"idAttribute": "id" | ||
} |
26 changes: 26 additions & 0 deletions
26
underlay/src/main/resources/config/datamapping/aouRT/entity/wheelchair/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,26 @@ | ||
SELECT | ||
mo.measurement_id, | ||
mo.person_id, | ||
(CASE WHEN mo.measurement_concept_id IS NULL THEN 0 ELSE mo.measurement_concept_id END) AS measurement_concept_id, | ||
mc.concept_name AS measurement_concept_name, | ||
mo.measurement_datetime, | ||
mo.value_as_number, | ||
mo.value_as_concept_id, | ||
evc.concept_name AS value_as_concept_name, | ||
mo.unit_concept_id, | ||
uc.concept_name AS unit_concept_name, | ||
mo.measurement_source_value, | ||
mo.measurement_source_concept_id, | ||
CAST(FLOOR(TIMESTAMP_DIFF(mo.measurement_datetime, p.birth_datetime, DAY) / 365.25) AS INT64) AS age_at_occurrence, | ||
mo.visit_occurrence_id, | ||
vo.visit_concept_id, | ||
vc.concept_name AS visit_concept_name, | ||
true as wheelchair_at_enrollment | ||
FROM `${omopDataset}.measurement` AS mo | ||
JOIN `${omopDataset}.person` AS p ON p.person_id = mo.person_id | ||
LEFT JOIN `${omopDataset}.concept` AS mc ON mc.concept_id = mo.measurement_concept_id | ||
LEFT JOIN `${omopDataset}.concept` AS evc ON evc.concept_id = mo.value_as_concept_id | ||
LEFT JOIN `${omopDataset}.concept` AS uc ON uc.concept_id = mo.unit_concept_id | ||
LEFT JOIN `${omopDataset}.visit_occurrence` AS vo ON vo.visit_occurrence_id = mo.visit_occurrence_id | ||
LEFT JOIN `${omopDataset}.concept` AS vc ON vc.concept_id = vo.visit_concept_id | ||
WHERE mo.measurement_source_concept_id = 903111 |
20 changes: 20 additions & 0 deletions
20
underlay/src/main/resources/config/datamapping/aouRT/entity/wheelchair/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,20 @@ | ||
{ | ||
"name": "wheelchair", | ||
"allInstancesSqlFile": "all.sql", | ||
"attributes": [ | ||
{ "name": "id", "dataType": "INT64", "valueFieldName": "measurement_id" }, | ||
{ "name": "person_id", "dataType": "INT64" }, | ||
{ "name": "measurement", "dataType": "INT64", "valueFieldName": "measurement_concept_id", "displayFieldName": "measurement_concept_name" }, | ||
{ "name": "date", "dataType": "TIMESTAMP", "valueFieldName": "measurement_datetime" }, | ||
{ "name": "value_numeric", "dataType": "DOUBLE", "valueFieldName": "value_as_number", "isComputeDisplayHint": true, "displayHintRangeMin": 0, "displayHintRangeMax": 100 }, | ||
{ "name": "value_enum", "dataType": "INT64", "valueFieldName": "value_as_concept_id", "displayFieldName": "value_as_concept_name" }, | ||
{ "name": "unit", "dataType": "INT64", "valueFieldName": "unit_concept_id", "displayFieldName": "unit_concept_name" }, | ||
{ "name": "source_value", "dataType": "STRING", "valueFieldName": "measurement_source_value" }, | ||
{ "name": "source_criteria_id", "dataType": "INT64", "valueFieldName": "measurement_source_concept_id" }, | ||
{ "name": "age_at_occurrence", "dataType": "INT64", "isComputeDisplayHint": true }, | ||
{ "name": "visit_occurrence_id", "dataType": "INT64" }, | ||
{ "name": "visit_type", "dataType": "INT64", "valueFieldName": "visit_concept_id", "displayFieldName": "visit_concept_name", "isComputeDisplayHint": true }, | ||
{ "name": "wheelchair_at_enrollment", "dataType": "BOOLEAN", "isSuppressedForExport": true } | ||
], | ||
"idAttribute": "id" | ||
} |
6 changes: 6 additions & 0 deletions
6
...y/src/main/resources/config/datamapping/aouRT/entitygroup/pregnantPerson/entityGroup.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,6 @@ | ||
{ | ||
"name": "pregnantPerson", | ||
"groupEntity": "person", | ||
"itemsEntity": "pregnant", | ||
"foreignKeyAttributeItemsEntity": "person_id" | ||
} |
6 changes: 6 additions & 0 deletions
6
...src/main/resources/config/datamapping/aouRT/entitygroup/wheelchairPerson/entityGroup.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,6 @@ | ||
{ | ||
"name": "wheelchairPerson", | ||
"groupEntity": "person", | ||
"itemsEntity": "wheelchair", | ||
"foreignKeyAttributeItemsEntity": "person_id" | ||
} |
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.