Skip to content

Commit

Permalink
Update patient-level-prediction-modelSummary.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jreps committed Sep 13, 2024
1 parent eea1f31 commit e50c0e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/patient-level-prediction-modelSummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,12 @@ getModelDesignInfo <- function(
}

modelType <- connectionHandler$queryDb(
'select distinct model_type from
@schema.@plp_table_prefixmodels
where model_design_id = @model_design_id;',
'select distinct ms.model_type from
@schema.@plp_table_prefixmodel_settings ms
inner join
@schema.@plp_table_prefixmodel_designs md
on ms.model_setting_id = md.model_setting_id
where md.model_design_id = @model_design_id;',
schema = resultDatabaseSettings$schema,
plp_table_prefix = resultDatabaseSettings$plpTablePrefix,
model_design_id = modelDesignId()
Expand Down

0 comments on commit e50c0e3

Please sign in to comment.