Evaluate phenotype algorithms with the HADES PheValuator Package
Source:R/Module-PheValuator.R
PheValuatorModule.RdEvaluates phenotype algorithms using the PheValuator method against the OMOP Common Data Model.
Super class
StrategusModule -> PheValuatorModule
Methods
PheValuatorModule$execute()
Execute PheValuator
Arguments
connectionDetailsAn object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().executionSettingsAn object of type
ExecutionSettingsas created bycreateCdmExecutionSettings()orcreateResultsExecutionSettings().
PheValuatorModule$createResultsDataModel()
Create the results data model for the module
Usage
PheValuatorModule$createResultsDataModel(
resultsConnectionDetails,
resultsDatabaseSchema,
tablePrefix = self$tablePrefix
)Arguments
resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsDatabaseSchemaThe schema in the results database that holds the results data model.
tablePrefixA prefix to apply to the database table names (optional).
tablePrefixA prefix to apply to the database table names (optional).
PheValuatorModule$getResultsDataModelSpecification()
Get the results data model specification for the module
PheValuatorModule$uploadResults()
Upload the results for PheValuator
Usage
PheValuatorModule$uploadResults(
resultsConnectionDetails,
analysisSpecifications,
resultsDataModelSettings
)Arguments
resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().resultsDataModelSettingsThe results data model settings as created using
createResultsDataModelSettings().
PheValuatorModule$createModuleSpecifications()
Creates the PheValuator Module Specifications
Usage
PheValuatorModule$createModuleSpecifications(
analysisName = "Main",
pheValuatorAnalysisList
)Arguments
analysisNameA short name for the analysis (default:
"Main").pheValuatorAnalysisListA list of analysis specification objects. Each element is a list with two named fields:
phenotypeA short file-system-safe name for the phenotype (e.g.
"bladderCancer").cohortsToEvaluateA list of evaluation parameters:
phenotypeCohortIdCohort ID(s) of the phenotype to evaluate.
washoutPeriodMinimum prior observation days (should match cohort definition).
xSpecCohortIdCohort ID for the extremely-specific (xSpec) cohort.
daysFromxSpecDays from xSpec cohort start to index visit.
xSensCohortIdCohort ID for the extremely-sensitive (xSens) cohort.
prevalenceCohortIdCohort ID used to estimate prevalence.
excludedCovariateConceptIdsInteger vector of concept IDs to exclude from covariates.
covariateSettingsTypeOne of
"chronic"or"acute"(default"chronic").