Skip to content

Commit

Permalink
Version 212 hotfix (#534)
Browse files Browse the repository at this point in the history
* Changes to diagnostics explorer when index event/orphan are not run

* Package maintenance
  • Loading branch information
gowthamrao committed Sep 15, 2021
1 parent 0610260 commit 6c4415d
Show file tree
Hide file tree
Showing 35 changed files with 62 additions and 33 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: CohortDiagnostics
Type: Package
Title: Diagnostics for OHDSI Cohorts
Version: 2.1.1
Date: 2021-09-01
Version: 2.1.2
Date: 2021-09-15
Authors@R: c(
person("Gowtham", "Rao", email = "[email protected]", role = c("aut", "cre")),
person("Martijn", "Schuemie", email = "[email protected]", role = c("aut")),
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
CohortDiagnostics 2.1.2
=======================

Bug fixes:
1. DiagnosticsExplorer fixes a bug of app failure when runIndexEventBreakdown, runOrphanConcepts, includedSourceConcept is set to FALSE


CohortDiagnostics 2.1.1
=======================

Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/CohortDiagnosticsInPackageMode.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/CohortDiagnosticsUsingWebApi.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/DatabaseModeInDiagnosticsExplorer.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/RunningCohortDiagnostics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/ViewingResultsUsingDiagnosticsExplorer.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/WhatIsCohortDiagnostics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ articles:
RunningCohortDiagnostics: RunningCohortDiagnostics.html
ViewingResultsUsingDiagnosticsExplorer: ViewingResultsUsingDiagnosticsExplorer.html
WhatIsCohortDiagnostics: WhatIsCohortDiagnostics.html
last_built: 2021-09-01T14:23Z
last_built: 2021-09-15T00:13Z

2 changes: 1 addition & 1 deletion docs/reference/CohortDiagnostics-package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/checkInputFileEncoding.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createResultsDataModel.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/getCohortCounts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/getResultsDataModelSpecifications.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/instantiateCohortSet.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/launchCohortExplorer.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/launchDiagnosticsExplorer.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/preMergeDiagnosticsFiles.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/runCohortDiagnostics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/uploadResults.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified extras/CohortDiagnostics.pdf
Binary file not shown.
Binary file modified inst/doc/CohortDiagnosticsInPackageMode.pdf
Binary file not shown.
Binary file modified inst/doc/CohortDiagnosticsUsingWebApi.pdf
Binary file not shown.
Binary file modified inst/doc/DatabaseModeInDiagnosticsExplorer.pdf
Binary file not shown.
Binary file modified inst/doc/RunningCohortDiagnostics.pdf
Binary file not shown.
Binary file modified inst/doc/ViewingResultsUsingDiagnosticsExplorer.pdf
Binary file not shown.
Binary file modified inst/doc/WhatIsCohortDiagnostics.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions inst/shiny/DiagnosticsExplorer/R/Results.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ getIndexEventBreakdown <- function(dataSource = .GlobalEnv,
.data$vocabularyId,
.data$standardConcept),
by = c("conceptId"))
} else {
return(NULL)
}
} else {
sql <- "SELECT index_event_breakdown.*,
Expand Down Expand Up @@ -317,6 +319,9 @@ getIncludedConceptResult <- function(dataSource = .GlobalEnv,
cohortId,
databaseIds) {
if (is(dataSource, "environment")) {
if (!exists("includedSourceConcept")) {
return(NULL)
}
data <- get("includedSourceConcept", envir = dataSource) %>%
dplyr::filter(.data$cohortId == !!cohortId &
.data$databaseId %in% !!databaseIds) %>%
Expand Down Expand Up @@ -371,6 +376,7 @@ getOrphanConceptResult <- function(dataSource = .GlobalEnv,
cohortId,
databaseIds) {
if (is(dataSource, "environment")) {
if (!exists("orphanConcept")) {return(NULL)}
data <- get("orphanConcept", envir = dataSource) %>%
dplyr::filter(.data$cohortId == !!cohortId &
.data$databaseId %in% !!databaseIds) %>%
Expand Down
10 changes: 9 additions & 1 deletion inst/shiny/DiagnosticsExplorer/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,11 @@ shiny::shinyServer(function(input, output, session) {

data <- getOrphanConceptResult(dataSource = dataSource,
cohortId = row$cohortId,
databaseIds = getDatabaseIdInCohortConceptSet()) %>%
databaseIds = getDatabaseIdInCohortConceptSet())
if (is.null(data)) {
return(NULL)
}
data <- data %>%
dplyr::filter(.data$conceptSetName == cohortDefinitionConceptSetExpressionRow()$name)
})

Expand Down Expand Up @@ -2293,6 +2297,10 @@ shiny::shinyServer(function(input, output, session) {
cohortIds = cohortId(),
databaseIds = databaseIds()
)
if (any(is.null(data),
nrow(data) == 0)) {
return(NULL)
}
if (!is.null(data)) {
if (!'domainTable' %in% colnames(data)) {
data$domainTable <- "Not in data"
Expand Down

0 comments on commit 6c4415d

Please sign in to comment.