Package: CDMConnector 1.6.1

Adam Black

CDMConnector: Connect to an OMOP Common Data Model

Provides tools for working with observational health data in the Observational Medical Outcomes Partnership (OMOP) Common Data Model format with a pipe friendly syntax. Common data model database table references are stored in a single compound object along with metadata.

Authors:Adam Black [aut, cre], Artem Gorbachev [aut], Edward Burn [aut], Marti Catala Sabate [aut]

CDMConnector_1.6.1.tar.gz
CDMConnector_1.6.1.tar.gz(r-4.5-noble)CDMConnector_1.6.1.tar.gz(r-4.4-noble)
CDMConnector_1.6.1.tgz(r-4.4-emscripten)CDMConnector_1.6.1.tgz(r-4.3-emscripten)
CDMConnector.pdf |CDMConnector.html
CDMConnector/json (API)
NEWS

# Install 'CDMConnector' in R:
install.packages('CDMConnector', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/darwin-eu/cdmconnector/issues

Pkgdown:https://darwin-eu.github.io

7.54 score 11 packages 312 scripts 1.6k downloads 104 exports 42 dependencies

Last updated 13 days agofrom:5b52aede09. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 29 2024
R-4.5-linuxOKNov 29 2024

Exports:%>%append_permanentappendPermanentas_dateasDateassert_tablesassert_write_schemaassertTablesassertWriteSchemaattritionbenchmarkCDMConnectorbindcdm_disconnectcdm_flattencdm_from_concdm_from_environmentcdm_from_filescdm_from_tablescdm_namecdm_samplecdm_select_tblcdm_subsetcdm_subset_cohortcdmConcdmDisconnectcdmFlattencdmFromConcdmFromFilescdmFromTablescdmNamecdmSamplecdmSubsetcdmSubsetCohortcdmVersioncdmWriteSchemacohort_attritioncohort_countcohort_erafycohort_setcohort_unioncohortAttritioncohortCodelistcohortCountcohortErafycohortSetcohortUnioncomputecompute_querycomputeQuerycopy_cdm_tocopyCdmTodateadddatediffdatepartdbmsdbSourcedownload_eunomia_datadownloadEunomiaDatadropSourceTabledropTableeunomia_direunomia_is_availableeunomiaDireunomiaIsAvailableexample_datasetsexampleDatasetsgenerate_cohort_setgenerate_concept_cohort_setgenerateCohortSetgenerateConceptCohortSetin_schemainSchemainsertTableintersect_cohortsintersectCohortslist_tableslistSourceTableslistTablesnew_generated_cohort_setnewCohortTablenewGeneratedCohortSetread_cohort_setreadCohortSetreadSourceTablerecord_cohort_attritionrecordCohortAttritionrequire_eunomiarequireEunomiasettingssnapshotstowsummarise_quantilesummariseQuantilesummarize_quantilesummarizeQuantiletbl_grouptblGroupunion_cohortsunionCohortsunique_table_nameuniqueTableNamevalidate_cdmvalidateCdmversion

Dependencies:backportsbitbit64blobcheckmateclicliprcpp11crayonDBIdbplyrdiffobjdplyrfansifsgenericsgluehmsjsonlitelifecyclemagrittromopgenericspillarpkgconfigprettyunitsprogresspurrrR6readrrlangsnakecasestringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwaldowithr

CDM reference backends

Rendered froma05_cdm_reference_backends.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-02-06
Started: 2023-03-09

CDMConnector and dbplyr

Rendered froma03_dbplyr.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-04-03
Started: 2023-03-09

DBI connection examples

Rendered froma04_DBI_connection_examples.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-01-19
Started: 2023-03-09

Getting Started

Rendered froma01_getting-started.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-11-13
Started: 2023-03-09

Using CDM attributes

Rendered froma06_using_cdm_attributes.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-05-04
Started: 2023-08-17

Working with cohorts

Rendered froma02_cohorts.Rmdusingknitr::rmarkdownon Nov 29 2024.

Last update: 2024-11-13
Started: 2024-02-06

Readme and manuals

Help Manual

Help pageTopics
Run a dplyr query and add the result set to an existingappendPermanent append_permanent
as.Date dbplyr translation wrapperasDate as_date
Assert that tables exist in a cdm objectassertTables assert_tables
Assert that cdm has a writable schemaassertWriteSchema assert_write_schema
Run benchmark of tasks using CDMConnectorbenchmarkCDMConnector
Create a CDM reference object from a database connectioncdmFromCon cdm_from_con
Create a CDM object from a pre-defined set of environment variablescdm_from_environment
Create a CDM reference from a folder containing parquet, csv, or feather filescdmFromFiles cdm_from_files
Create a cdm object from local tablescdm_from_tables
Select a subset of tables in a cdm reference objectcdm_select_tbl
Get underlying database connectioncdmCon
Disconnect the connection of the cdm objectcdmDisconnect cdm_disconnect
Flatten a cdm into a single observation tablecdmFlatten cdm_flatten
Get the CDM namecdmName cdm_name
Subset a cdm object to a random sample of individualscdmSample cdm_sample
Subset a cdm object to a set of personscdmSubset cdm_subset
Subset a cdm to the individuals in one or more cohortscdmSubsetCohort cdm_subset_cohort
Get cdm write schemacdmWriteSchema
Get cohort counts from a generated_cohort_set object.cohort_count
Collapse cohort records within a certain number of dayscohortErafy cohort_erafy
Union all cohorts in a cohort set with cohorts in a second cohort setcohortUnion cohort_union
Get attrition table from a cohort_table objectcohortAttrition cohort_attrition
Get cohort settings from a cohort_table objectcohortSet cohort_set
Execute dplyr query and save result in remote databasecomputeQuery compute_query
Copy a cdm object from one database to anothercopyCdmTo copy_cdm_to
Add days or years to a date in a dplyr querydateadd
Compute the difference between two daysdatediff
Extract the day, month or year of a date in a dplyr pipelinedatepart
Get the database management system (dbms) from a cdm_reference or DBI connectiondbms
Create a source for a cdm in a database.dbSource
Download Eunomia data filesdownloadEunomiaData download_eunomia_data
Has the Eunomia dataset been cached?eunomiaIsAvailable eunomia_is_available
Create a copy of an example OMOP CDM dataseteunomiaDir eunomia_dir
List the available example CDM datasetsexampleDatasets example_datasets
Generate a cohort set on a cdm objectgenerateCohortSet generate_cohort_set
Create a new generated cohort set from a list of concept setsgenerateConceptCohortSet generate_concept_cohort_set
Helper for working with compound schemasinSchema in_schema
Intersect all cohorts in a single cohort tableintersectCohorts intersect_cohorts
List tables in a schemalistTables list_tables
Constructor for cohort_table objectsnewGeneratedCohortSet new_generated_cohort_set
Read a set of cohort definitions into RreadCohortSet read_cohort_set
Add attrition reason to a cohort_table objectrecordCohortAttrition record_cohort_attrition
Require eunomia to be available. The function makes sure that you can later create a eunomia database with 'eunomiaDir()'.requireEunomia require_eunomia
Extract CDM metadatasnapshot
Collect a list of lazy queries and save the results as filesstow
Quantile calculation using dbplyrsummariseQuantile summarise_quantile summarizeQuantile summarize_quantile
CDM table selection helpertblGroup tbl_group
Union all cohorts in a single cohort tableunionCohorts union_cohorts
Create a unique table name for temp tablesuniqueTableName unique_table_name
Validation report for a CDMvalidateCdm validate_cdm
Get the CDM versionversion