Skip to contents

Create a mapping table with predefined mmaximum abstraction level

Usage

generateMappingTable(
  cdm,
  abstractionLevel = 10,
  data = NULL,
  concept_ancestor = NULL,
  concept = NULL,
  maxMinDataFrame = NULL
)

Arguments

cdm

Connection to database

abstractionLevel

Maximum abstraction level allowed

data

CohortContrastObject returned by CohortContrast function

concept_ancestor

Data frame of concept_ancestor table

concept

Data frame of concept table

maxMinDataFrame

A dataframe with columns descendant_concept_id and max_levels_of_separation