Skip to content

Commit

Permalink
Merge pull request #373 from OHDSI/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jreps authored Feb 28, 2023
2 parents ff70fe7 + e083074 commit ee03f69
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: PatientLevelPrediction
Type: Package
Title: Developing patient level prediction using data in the OMOP Common Data
Model
Version: 6.2.0
Date: 2023-02-15
Version: 6.2.1
Date: 2023-02-28
Authors@R: c(
person("Jenna", "Reps", email = "[email protected]", role = c("aut", "cre")),
person("Martijn", "Schuemie", role = c("aut")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
PatientLevelPrediction 6.2.1
======================
- added ensure_installed("ResultModelManager") to getDataMigrator()

PatientLevelPrediction 6.1.0
======================
- shiny app is now using ShinyAppBuilder with a config saved in the /inst folder
Expand Down
3 changes: 3 additions & 0 deletions R/DatabaseMigration.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#' @export
migrateDataModel <- function(connectionDetails, databaseSchema, tablePrefix = "") {
ParallelLogger::logInfo("Migrating data set")

migrator <- getDataMigrator(
connectionDetails = connectionDetails,
databaseSchema = databaseSchema,
Expand All @@ -37,6 +38,8 @@ migrateDataModel <- function(connectionDetails, databaseSchema, tablePrefix = ""


getDataMigrator <- function(connectionDetails, databaseSchema, tablePrefix = "") {
ensure_installed("ResultModelManager")

ResultModelManager::DataMigrationManager$new(
connectionDetails = connectionDetails,
databaseSchema = databaseSchema,
Expand Down
2 changes: 1 addition & 1 deletion inst/sql/sqlite/PlpResultTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ CREATE TABLE @my_schema.@string_to_appenddiagnostic_predictors( -- call this km
diagnostic_id int NOT NULL,
days_to_event int,
outcome_at_time int,
observed_at_start_of_day bigint
observed_at_start_of_day bigint,
probast_id varchar(50),
input_type varchar(50),
FOREIGN KEY (diagnostic_id) REFERENCES @string_to_appenddiagnostics(diagnostic_id)
Expand Down

0 comments on commit ee03f69

Please sign in to comment.