Skip to content

Commit

Permalink
Fix for conceptset ids in cd - requires no api change
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Oct 1, 2024
1 parent 942c6ea commit d46bd33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions R/cohort-diagnostics-conceptsInDataSource.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ conceptsInDataSourceModule <- function(id,
selectedDatabaseIds,
targetCohortId,
selectedConceptSets,
conceptSetIds,
databaseTable = dataSource$dbTable) {
ns <- shiny::NS(id)
shiny::moduleServer(id, function(input, output, session) {
Expand All @@ -158,10 +159,6 @@ conceptsInDataSourceModule <- function(id,
return(data)
})

conceptSetIds <- shiny::reactive({
selectedConceptSets()
})

getResolvedConcepts <- shiny::reactive({
output <- resolvedConceptSet(
dataSource = dataSource,
Expand Down
1 change: 1 addition & 0 deletions R/cohort-diagnostics-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ cohortDiagnosticsServer <- function(id,
selectedDatabaseIds = selectedDatabaseIds,
targetCohortId = targetCohortId,
selectedConceptSets = selectedConceptSets,
conceptSetIds = conceptSetIds,
databaseTable = databaseTable)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ shiny::testServer(conceptsInDataSourceModule, args = list(
selectedCohort = shiny::reactive({ 14096 }),
selectedDatabaseIds = shiny::reactive({"Eunomia"}),
targetCohortId = shiny::reactive({14096}),
selectedConceptSets = shiny::reactive({ NULL })
selectedConceptSets = shiny::reactive({ NULL }),
conceptSetIds = shiny::reactive({ NULL })
), {

conceptsInDataSourceReactive()
Expand Down

0 comments on commit d46bd33

Please sign in to comment.