Extracts patient level data for a) a random sample of patients in a cohort or b) patients in a user-specified list and formats it according to the KEEPER principles.
Supports review of patient profiles by humans through an interactive Shiny app.
Supports review of patient profiles by large language models.
keeperConceptSets <- generateKeeperConceptSets(
phenotype = "Gastrointestinal bleeding",
client = ellmer::chat_openai_compatible(),
vocabConnectionDetails = connectionDetails,
vocabDatabaseSchema = "cdm"
)
keeper <- generateKeeper(
connectionDetails = connectionDetails,
cdmDatabaseSchema = "cdm",
cohortDatabaseSchema = "results",
cohortTable = "cohort",
cohortDefinitionId = 1234,
sampleSize = 100,
removePii = TRUE,
phenotypeName = "Gastrointestinal bleeding",
keeperConceptSets = keeperConceptSets
)
keeperTable <- convertKeeperToTable(keeper)See the instructions here for configuring your R environment, including Java.
Install Keeper from GitHub:
install.packages("remotes")
remotes::install_github("ohdsi/Keeper")Documentation can be found on the package website.
PDF versions of the documentation are also available:
Read here how you can contribute to this package.