Skip to content

Commit dc75ede

Browse files
Enable PC and DPC for source and non-standard concepts (#2258)
1 parent 7d288ef commit dc75ede

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/main/resources/ddl/achilles/achilles_result_concept_count.sql

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,27 @@ WITH counts AS (
7676
), counts_person AS (
7777
SELECT stratum_1 as concept_id, MAX (count_value) agg_count_value
7878
FROM @results_schema.achilles_results
79-
WHERE analysis_id IN (200, 400, 600, 700, 800, 900, 1000, 1300, 1800, 2100, 2200)
79+
WHERE analysis_id IN (200, 240, 400, 440, 540, 600, 640, 700, 740, 800, 840, 900, 1000, 1300, 1340, 1800, 1840, 2100, 2140, 2200)
8080
/* analyses:
8181
Number of persons with at least one visit occurrence, by visit_concept_id
82+
Number of persons with at least one visit occurrence, by visit_source_concept_id
8283
Number of persons with at least one condition occurrence, by condition_concept_id
84+
Number of persons with at least one condition occurrence, by condition_source_concept_id
85+
Number of persons with death, by cause_source_concept_id
8386
Number of persons with at least one procedure occurrence, by procedure_concept_id
87+
Number of persons with at least one procedure occurrence, by procedure_source_concept_id
8488
Number of persons with at least one drug exposure, by drug_concept_id
89+
Number of persons with at least one drug exposure, by drug_source_concept_id
8590
Number of persons with at least one observation occurrence, by observation_concept_id
91+
Number of persons with at least one observation occurrence, by observation_source_concept_id
8692
Number of persons with at least one drug era, by drug_concept_id
8793
Number of persons with at least one condition era, by condition_concept_id
8894
Number of persons with at least one visit detail, by visit_detail_concept_id
95+
Number of persons with at least one visit detail, by visit_detail_source_concept_id
8996
Number of persons with at least one measurement occurrence, by measurement_concept_id
97+
Number of persons with at least one measurement occurrence, by measurement_source_concept_id
9098
Number of persons with at least one device exposure, by device_concept_id
99+
Number of persons with at least one device exposure, by device_source_concept_id
91100
Number of persons with at least one note by note_type_concept_id
92101
*/
93102
GROUP BY stratum_1

0 commit comments

Comments
 (0)