Skip to content

Commit

Permalink
Fix BP export for SD underlay (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolbeew authored Feb 25, 2025
1 parent 119883f commit ef2dabf
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SELECT
ROW_NUMBER() OVER (ORDER BY xbp.person_id, xbp.measurement_datetime) AS row_id,
ROW_NUMBER() OVER (ORDER BY xbp.person_id, xbp.measurement_datetime) AS id,
xbp.person_id,
p.person_source_value,
xbp.measurement_datetime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"name": "bloodPressure",
"allInstancesSqlFile": "all.sql",
"attributes": [
{ "name": "id", "dataType": "INT64", "valueFieldName": "row_id", "isSuppressedForExport": true },
{ "name": "id", "dataType": "INT64", "isSuppressedForExport": true },
{ "name": "person_id", "dataType": "INT64" },
{ "name": "GRID", "dataType": "STRING", "valueFieldName": "person_source_value", "isSuppressedForExport": true },
{ "name": "date", "dataType": "TIMESTAMP", "valueFieldName": "measurement_datetime" },
{ "name": "date", "dataType": "TIMESTAMP", "valueFieldName": "person_id",
"sourceQuery": {
"displayFieldName": "measurement_datetime",
"displayFieldTable": "${omopDataset}.x_blood_pressure",
"displayFieldTableJoinFieldName": "person_id"
}
},
{ "name": "systolic", "dataType": "INT64", "isComputeDisplayHint": true },
{ "name": "diastolic", "dataType": "INT64", "isComputeDisplayHint": true },
{ "name": "bp", "dataType": "STRING" },
Expand All @@ -15,5 +21,5 @@
{ "name": "visit_type", "dataType": "INT64", "valueFieldName": "visit_concept_id", "displayFieldName": "visit_concept_name", "isComputeDisplayHint": true, "isSuppressedForExport": true }
],
"idAttribute": "id",
"sourceQueryTableName": "${omopDataset}.x_blood_pressure"
"sourceQueryTableName": "${indexedDataset}.ENT_bloodPressure"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"projectId": "vumc-sd-dev",
"datasetId": "sd_20240831",
"sqlSubstitutions": {
"indexedDataset": "vumc-sd-dev.indexed_sd_20240831",
"omopDataset": "vumc-sd-dev.sd_20240831",
"staticTablesDataset": "vumc-sd-dev.sd_20240831"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"projectId": "vumc-sd-prod",
"datasetId": "sd_20240831",
"sqlSubstitutions": {
"indexedDataset": "vumc-sd-prod.indexed_sd_20240831",
"omopDataset": "vumc-sd-prod.sd_20240831",
"staticTablesDataset": "vumc-sd-prod.sd_20240831"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"projectId": "vumc-sd-test",
"datasetId": "sd_20240831",
"sqlSubstitutions": {
"indexedDataset": "vumc-sd-test.indexed_sd_20240831",
"omopDataset": "vumc-sd-test.sd_20240831",
"staticTablesDataset": "vumc-sd-test.sd_20240831"
}
Expand Down
7 changes: 4 additions & 3 deletions underlay/src/main/resources/config/service/sd/sd_local.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"projectId": "vumc-sd-dev",
"datasetId": "sd_20240831",
"sqlSubstitutions": {
"omopDataset": "vumc-sd-test.sd_20240831",
"staticTablesDataset": "vumc-sd-test.sd_20240831"
"indexedDataset": "vumc-sd-dev.indexed_sd_20240831_2",
"omopDataset": "vumc-sd-dev.sd_20240831",
"staticTablesDataset": "vumc-sd-dev.sd_20240831"
}
},
"indexData": {
"projectId": "vumc-sd-dev",
"datasetId": "indexed_sd_20240831_2"
},
"queryProjectId": "vumc-sd-test",
"queryProjectId": "vumc-sd-dev",
"dataLocation": "us-central1"
},
"uiConfigFile": "ui.json"
Expand Down

0 comments on commit ef2dabf

Please sign in to comment.