Package: omopgenerics 0.3.1

Martí Català

omopgenerics: Methods and Classes for the OMOP Common Data Model

Provides definitions of core classes and methods used by analytic pipelines that query the OMOP (Observational Medical Outcomes Partnership) common data model.

Authors:Martí Català [aut, cre], Edward Burn [aut], Mike Du [ctb], Yuchen Guo [ctb], Adam Black [ctb], Marta Alcalde-Herraiz [ctb]

omopgenerics_0.3.1.tar.gz
omopgenerics_0.3.1.tar.gz(r-4.5-noble)omopgenerics_0.3.1.tar.gz(r-4.4-noble)
omopgenerics_0.3.1.tgz(r-4.4-emscripten)omopgenerics_0.3.1.tgz(r-4.3-emscripten)
omopgenerics.pdf |omopgenerics.html
omopgenerics/json (API)

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

Peer review:

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

7.12 score 1 stars 12 packages 119 scripts 1.2k downloads 90 exports 25 dependencies

Last updated 2 months agofrom:094fe9703a. Checks:OK: 2. Indexed: yes.

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

Exports:achillesColumnsachillesTablesassertCharacterassertChoiceassertClassassertDateassertListassertLogicalassertNumericassertTableassertTrueattritionbindcdmFromTablescdmNamecdmReferencecdmSelectcdmSourcecdmSourceTypecdmTableFromSourcecdmVersioncheckCohortRequirementscohortCodelistcohortColumnscohortCountcohortTablescombineStratadropSourceTabledropTableemptyAchillesTableemptyCdmReferenceemptyCodelistemptyCodelistWithDetailsemptyCohortTableemptyOmopTableemptySummarisedResultestimateTypeChoicesexportCodelistexportConceptSetExpressionexportSummarisedResultfiltergetCohortIdgetCohortNamegetPersonIdentifierimportCodelistimportConceptSetExpressionimportSummarisedResultinsertFromSourceinsertTableisResultSuppressedisTableEmptylistSourceTablesnewAchillesTablenewCdmReferencenewCdmSourcenewCdmTablenewCodelistnewCodelistWithDetailsnewCohortTablenewConceptSetExpressionnewLocalSourcenewOmopTablenewSummarisedResultomopColumnsomopTableFieldsomopTablesparticipantsreadSourceTablerecordCohortAttritionresultColumnsresultPackageVersionsettingssourceTypesuppresstableNametableSourcetmpPrefixtoSnakeCaseuniqueIduniqueTableNamevalidateAgeGroupArgumentvalidateCdmArgumentvalidateCohortArgumentvalidateCohortIdArgumentvalidateConceptSetArgumentvalidateNameArgumentvalidateNameLevelvalidateResultArguemntvalidateResultArgumentvalidateWindowArgument

Dependencies:blobclicpp11DBIdbplyrdplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangsnakecasestringistringrtibbletidyrtidyselectutf8vctrswithr

The cdm reference

Rendered fromcdm_reference.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-08-18
Started: 2024-08-18

Concept sets

Rendered fromcodelists.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-08-18
Started: 2024-08-18

Cohort tables

Rendered fromcohorts.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-08-18
Started: 2024-08-18

A summarised result

Rendered fromsummarised_result.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-09-22
Started: 2024-08-18

Re-exporting functions from omopgnerics

Rendered fromreexport.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-08-18
Started: 2024-02-24

Readme and manuals

Help Manual

Help pageTopics
Subset a cdm reference object.[[.cdm_reference
Assign a table to a cdm reference.[[<-.cdm_reference
Subset a cdm reference object.$.cdm_reference
Assign an table to a cdm reference.$<-.cdm_reference
Required columns for each of the achilles result tablesachillesColumns
Names of the tables that contain the results of achilles analysesachillesTables
Assert that an object is a character and fulfill certain conditions.assertCharacter
Assert that an object is within a certain oprtions.assertChoice
Assert that an object has a certain class.assertClass
Assert DateassertDate
Assert that an object is a list.assertList
Assert that an object is a logical.assertLogical
Assert that an object is a numeric.assertNumeric
Assert that an object is a table.assertTable
Assert that an expression is TRUE.assertTrue
Get attrition from an object.attrition
Get cohort attrition from a cohort_table object.attrition.cohort_table
Bind two or more objects of the same class.bind
Bind two or more cohort tablesbind.cohort_table
Bind two or summarised_result objectsbind.summarised_result
Create a cdm object from local tablescdmFromTables
Get the name of a cdm_reference associated objectcdmName
Get the 'cdm_reference' of a 'cdm_table'.cdmReference
Restrict the cdm object to a subset of tables.cdmSelect
Get the cdmSource of an object.cdmSource
Get the source type of a cdm_reference object.cdmSourceType
This is an internal developer focused function that creates a cdm_table from a table that shares the source but it is not a cdm_table. Please use insertTable if you want to insert a table to a cdm_reference object.cdmTableFromSource
Get the version of an object.cdmVersion
Check whether a cohort table satisfies requirementscheckCohortRequirements
Get codelist from a cohort_table object.cohortCodelist
Required columns for a generated cohort set.cohortColumns
Get cohort counts from a cohort_table object.cohortCount
Cohort tables that a cdm reference can contain in the OMOP Common Data Model.cohortTables
Retrieves the cdm reference into a local cdm.collect.cdm_reference
To collect a 'cohort_table' object.collect.cohort_table
Provide all combinations of strata levels.combineStrata
Store results in a table.compute.cdm_table
Drop a table from a cdm object.dropSourceTable
Drop a table from a cdm object.dropTable
Create an empty achilles tableemptyAchillesTable
Create an empty cdm_referenceemptyCdmReference
Empty 'codelist' object.emptyCodelist
Empty 'codelist' object.emptyCodelistWithDetails
Create an empty cohort_table objectemptyCohortTable
Create an empty omop tableemptyOmopTable
Empty 'summarised_result' object.emptySummarisedResult
Choices that can be present in 'estimate_type' column.estimateTypeChoices
Export a codelist object.exportCodelist
Export a concept set expression.exportConceptSetExpression
Export a summarised_result object to a csv file.exportSummarisedResult
Get the cohort definition id of a certain namegetCohortId
Get the cohort name of a certain cohort definition idgetCohortName
Get the column name with the person identifier from a table (either subject_id or person_id), it will throw an error if it contains both or neither.getPersonIdentifier
Import a codelist.importCodelist
Import a concept set expression.importConceptSetExpression
Import a set of summarised results.importSummarisedResult
Convert a table that is not a cdm_table but have the same original source to a cdm_table. This Table is not meant to be used to insert tables in the cdm, please use insertTable instead.insertFromSource
Insert a table to a cdm object.insertTable
isResultSuppressedisResultSuppressed
Check if a table is empty or notisTableEmpty
List tables that can be accessed though a cdm object.listSourceTables
Create an achilles table from a cdm_table.newAchillesTable
'cdm_reference' objects constructornewCdmReference
Create a cdm source object.newCdmSource
Create an cdm table.newCdmTable
'codelist' object constructornewCodelist
'codelist' object constructornewCodelistWithDetails
'cohort_table' objects constructor.newCohortTable
'conceptSetExpression' object constructornewConceptSetExpression
A new local source for the cdmnewLocalSource
Create an omop table from a cdm table.newOmopTable
'summarised_results' object constructornewSummarisedResult
Required columns that the standard tables in the OMOP Common Data Model must have.omopColumns
Return a table of omop cdm fields informationsomopTableFields
Standard tables that a cdm reference can contain in the OMOP Common Data Model.omopTables
It returns the participants that contributed to a particular analysisparticipants
Print a CDM reference objectprint.cdm_reference
Print a codelistprint.codelist
Print a codelist with detailsprint.codelist_with_details
Print a concept set expressionprint.conceptSetExpression
Read a table from the cdm_source and add it to to the cdm.readSourceTable
Update cohort attrition.recordCohortAttrition
Required columns that the result tables must have.resultColumns
Check if different packages version are used for summarise_results objectresultPackageVersion
Get settings from an object.settings
Get cohort settings from a cohort_table object.settings.cohort_table
Get settings from a summarised_result object.settings.summarised_result
Get the source type of an object.sourceType
Summary a cdm referencesummary.cdm_reference
Summary a generated cohort setsummary.cohort_table
Summary a summarised_resultsummary.summarised_result
Function to suppress counts in result objectssuppress
Function to suppress counts in result objectssuppress.summarised_result
Get the table name of a 'cdm_table'.tableName
Get the table source of a 'cdm_table'.tableSource
Create a temporary prefix for tables, that contains a unique prefix that starts with tmp.tmpPrefix
Convert a character vector to snake casetoSnakeCase
Get a unique Identifier with a certain number of characters and a prefix.uniqueId
Create a unique table nameuniqueTableName
validateAgeGroupArgumentvalidateAgeGroupArgument
validateCdmArgumentvalidateCdmArgument
Validate a cohort table input.validateCohortArgument
Validate cohortId argument.validateCohortIdArgument
Validate conceptSet argument.validateConceptSetArgument
Validate name argument.validateNameArgument
Validate if two columns are valid Name-Level pair.validateNameLevel
validateResultArgumentvalidateResultArguemnt
validateResultArgumentvalidateResultArgument
validateWindowArgumentvalidateWindowArgument