Evaluate phenotypes with the HADES CohortDiagnostics Package
Source:R/Module-CohortDiagnostics.R
CohortDiagnosticsModule.RdDevelopment and evaluation of phenotype algorithms against the OMOP Common Data Model.
Super class
Strategus::StrategusModule -> CohortDiagnosticsModule
Methods
Method execute()
Executes the CohortDiagnostics package
Usage
CohortDiagnosticsModule$execute(
connectionDetails,
analysisSpecifications,
executionSettings
)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().
Method createResultsDataModel()
Create the results data model for the module
Usage
CohortDiagnosticsModule$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).
Method uploadResults()
Upload the results for the module
Usage
CohortDiagnosticsModule$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 [@seealso
createResultsDataModelSettings()]
Method createModuleSpecifications()
Creates the CohortDiagnostics Module Specifications
Usage
CohortDiagnosticsModule$createModuleSpecifications(
cohortIds = NULL,
runInclusionStatistics = TRUE,
runIncludedSourceConcepts = TRUE,
runOrphanConcepts = TRUE,
runTimeSeries = FALSE,
runVisitContext = TRUE,
runBreakdownIndexEvents = TRUE,
runIncidenceRate = TRUE,
runCohortRelationship = TRUE,
runTemporalCohortCharacterization = TRUE,
temporalCovariateSettings = private$.getDefaultCovariateSettings(),
minCharacterizationMean = 0.01,
irWashoutPeriod = 0
)Arguments
cohortIdsA list of cohort IDs to use when running the CohortDiagnostics. Default is NULL which will use all cohorts present in the cohort definition set in the analysis specification
runInclusionStatisticsGenerate and export statistic on the cohort inclusion rules?
runIncludedSourceConceptsGenerate and export the source concepts included in the cohorts?
runOrphanConceptsGenerate and export potential orphan concepts?
runTimeSeriesGenerate and export the time series diagnostics?
runVisitContextGenerate and export index-date visit context?
runBreakdownIndexEventsGenerate and export the breakdown of index events?
runIncidenceRateGenerate and export the cohort incidence rates?
runCohortRelationshipGenerate and export the cohort relationship? Cohort relationship checks the temporal relationship between two or more cohorts.
runTemporalCohortCharacterizationGenerate and export the temporal cohort characterization? Only records with values greater than 0.001 are returned.
temporalCovariateSettingsEither an object of type
covariateSettingsas created using one of the createTemporalCovariateSettings function in the FeatureExtraction package, or a list of such objects.minCharacterizationMeanThe minimum mean value for characterization output. Values below this will be cut off from output. This will help reduce the file size of the characterization output, but will remove information on covariates that have very low values. The default is 0.001 (i.e. 0.1 percent)
irWashoutPeriodNumber of days washout to include in calculation of incidence rates - default is 0