-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'heracles-analysis-fix'
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/resources/db/migration/postgresql/V1.0.0.4.2__measurement_types.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,19 @@ | ||
|
||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1300,'Number of persons with at least one measurement occurrence, by measurement_concept_id','measurement_concept_id',null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1301,'Number of measurement occurrence records, by measurement_concept_id','measurement_concept_id',null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1302,'Number of persons by measurement occurrence start month, by measurement_concept_id','measurement_concept_id','calendar month',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1303,'Number of distinct measurement occurrence concepts per person',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1304,'Number of persons with at least one measurement occurrence, by measurement_concept_id by calendar year by gender by age decile','measurement_concept_id','calendar year','gender_concept_id','age decile',null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1305,'Number of measurement occurrence records, by measurement_concept_id by measurement_type_concept_id','measurement_concept_id','measurement_type_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1306,'Distribution of age by measurement_concept_id','measurement_concept_id','gender_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1307,'Number of measurement occurrence records, by measurement_concept_id and unit_concept_id','measurement_concept_id','unit_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1309,'Number of measurement records with invalid person_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1310,'Number of measurement records outside valid measurement period',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1312,'Number of measurement records with invalid provider_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1313,'Number of measurement records with invalid visit_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1314,'Number of measurement records with no value (numeric, string, or concept)',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1315,'Distribution of numeric values, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1316,'Distribution of low range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1317,'Distribution of high range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1318,'Number of measurement records below/within/above normal range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1320,'Number of measurement records by measurement start month','calendar month',null,null,null,null,'MEASUREMENT'); |
19 changes: 19 additions & 0 deletions
19
src/main/resources/db/migration/sqlserver/V1.0.0.4.2__measurement_types.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,19 @@ | ||
|
||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1300,'Number of persons with at least one measurement occurrence, by measurement_concept_id','measurement_concept_id',null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1301,'Number of measurement occurrence records, by measurement_concept_id','measurement_concept_id',null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1302,'Number of persons by measurement occurrence start month, by measurement_concept_id','measurement_concept_id','calendar month',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1303,'Number of distinct measurement occurrence concepts per person',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1304,'Number of persons with at least one measurement occurrence, by measurement_concept_id by calendar year by gender by age decile','measurement_concept_id','calendar year','gender_concept_id','age decile',null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1305,'Number of measurement occurrence records, by measurement_concept_id by measurement_type_concept_id','measurement_concept_id','measurement_type_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1306,'Distribution of age by measurement_concept_id','measurement_concept_id','gender_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1307,'Number of measurement occurrence records, by measurement_concept_id and unit_concept_id','measurement_concept_id','unit_concept_id',null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1309,'Number of measurement records with invalid person_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1310,'Number of measurement records outside valid measurement period',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1312,'Number of measurement records with invalid provider_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1313,'Number of measurement records with invalid visit_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1314,'Number of measurement records with no value (numeric, string, or concept)',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1315,'Distribution of numeric values, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1316,'Distribution of low range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1317,'Distribution of high range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1318,'Number of measurement records below/within/above normal range, by measurement_concept_id and unit_concept_id',null,null,null,null,null,'MEASUREMENT'); | ||
insert into ${ohdsiSchema}.heracles_analysis (ANALYSIS_ID,ANALYSIS_NAME,STRATUM_1_NAME,STRATUM_2_NAME,STRATUM_3_NAME,STRATUM_4_NAME,STRATUM_5_NAME,ANALYSIS_TYPE) values (1320,'Number of measurement records by measurement start month','calendar month',null,null,null,null,'MEASUREMENT'); |
2 changes: 1 addition & 1 deletion
2
src/main/resources/db/migration/sqlserver/V1.0.0.8.3__heracles_data_fix.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,3 +1,3 @@ | ||
ALTER TABLE ${ohdsiSchema}.HERACLES_VISUALIZATION_DATA DROP COLUMN data; | ||
ALTER TABLE ${ohdsiSchema}.HERACLES_VISUALIZATION_DATA ADD data [varchar(max)]; | ||
ALTER TABLE ${ohdsiSchema}.HERACLES_VISUALIZATION_DATA ADD data varchar(max); | ||
|
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