-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brought back missing analyses, bugfixes for PG/Oracle, Redshift (#321)
* Fix for #317 (more Oracle cast issues), #313 (allow vocabDatabaseSchema parameter in achillesHeel), #312 (convert cdmVersion to character). Also, some strange encoding in the exportToJson.R script. Removed redundant concept_hierarchy.sql file (this was supposed to be removed for 1.6). * Added analyses 822, 823, 1822, 1823 back. Fixed missing null cast in Heel RD 25. Adjusted analysis_details CSV to match new analyses. Added drop index statements. * Fixes to analysis_details CSV, analysis 1822 had the wrong field name, added drop if not null statements in dropAllScratchTables * Removed usage of DatabaseConnector::getTableNames() due to inconsistent effectiveness in Redshift * Updated version number to 1.6.1
- Loading branch information
1 parent
07c47f3
commit 7fa4deb
Showing
40 changed files
with
160 additions
and
643 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: Achilles | ||
Type: Package | ||
Title: Creates descriptive statistics summary for an entire OMOP CDM instance | ||
Version: 1.6 | ||
Date: 2018-04-09 | ||
Version: 1.6.1 | ||
Date: 2018-10-02 | ||
Author: Patrick Ryan, Martijn Schuemie, Vojtech Huser, Chris Knoll, Ajit Londhe | ||
Maintainer: Patrick Ryan <[email protected]> | ||
LazyData: true | ||
|
@@ -20,4 +20,4 @@ Suggests: | |
R.utils | ||
License: Apache License | ||
Roxygen: list(wrap = FALSE) | ||
RoxygenNote: 6.0.1 | ||
RoxygenNote: 6.1.0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
-- 1822 Number of measurement records, by measurement_concept_id and value_as_concept_id | ||
|
||
--HINT DISTRIBUTE_ON_KEY(stratum_1) | ||
select | ||
1822 AS analysis_id, | ||
cast(measurement_concept_id AS varchar(255)) AS stratum_1, | ||
cast(value_as_concept_id AS varchar(255)) AS stratum_2, | ||
cast(null as varchar(255)) as stratum_3, | ||
cast(null as varchar(255)) as stratum_4, | ||
cast(null as varchar(255)) as stratum_5, | ||
count_big(*) AS count_value | ||
into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_1822 | ||
from @cdmDatabaseSchema.measurement | ||
group by measurement_concept_id, value_as_concept_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
-- 1823 Number of measurement records, by measurement_concept_id and operator_concept_id | ||
|
||
--HINT DISTRIBUTE_ON_KEY(stratum_1) | ||
select | ||
1823 AS analysis_id, | ||
cast(measurement_concept_id AS varchar(255)) AS stratum_1, | ||
cast(operator_concept_id AS varchar(255)) AS stratum_2, | ||
cast(null as varchar(255)) as stratum_3, | ||
cast(null as varchar(255)) as stratum_4, | ||
cast(null as varchar(255)) as stratum_5, | ||
count_big(*) AS count_value | ||
into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_1823 | ||
from @cdmDatabaseSchema.measurement | ||
group by measurement_concept_id, operator_concept_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
-- 822 Number of observation records, by observation_concept_id and value_as_concept_id, observation_concept_id | ||
|
||
--HINT DISTRIBUTE_ON_KEY(stratum_1) | ||
select | ||
822 AS analysis_id, | ||
cast(observation_concept_id AS varchar(255)) AS stratum_1, | ||
cast(value_as_concept_id AS varchar(255)) AS stratum_2, | ||
cast(null as varchar(255)) as stratum_3, | ||
cast(null as varchar(255)) as stratum_4, | ||
cast(null as varchar(255)) as stratum_5, | ||
count_big(*) AS count_value | ||
into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_822 | ||
from @cdmDatabaseSchema.observation | ||
group by observation_concept_id, value_as_concept_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
-- 823 Number of observation records, by observation_concept_id and qualifier_concept_id | ||
|
||
--HINT DISTRIBUTE_ON_KEY(stratum_1) | ||
select | ||
823 AS analysis_id, | ||
cast(observation_concept_id AS varchar(255)) AS stratum_1, | ||
cast(qualifier_concept_id AS varchar(255)) AS stratum_2, | ||
cast(null as varchar(255)) as stratum_3, | ||
cast(null as varchar(255)) as stratum_4, | ||
cast(null as varchar(255)) as stratum_5, | ||
count_big(*) AS count_value | ||
into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_823 | ||
from @cdmDatabaseSchema.observation | ||
group by observation_concept_id, qualifier_concept_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
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
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
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
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
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
Oops, something went wrong.