Skip to content

Commit

Permalink
Merge branch 'heracles-analysis-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Apr 15, 2016
2 parents 5ab4bfc + 697916d commit c3c007c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
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');
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');
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);

Original file line number Diff line number Diff line change
Expand Up @@ -5247,7 +5247,7 @@ group by cohort_definition_id
-- 1813 Distribution of duration (days) from cohort end to observation end
insert into @results_schema.HERACLES_results_dist (cohort_definition_id, analysis_id, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value)
select cohort_definition_id,
1812 as analysis_id,
1813 as analysis_id,
COUNT_BIG(count_value) as count_value,
min(count_value) as min_value,
max(count_value) as max_value,
Expand Down

0 comments on commit c3c007c

Please sign in to comment.