mockDrugExposure {DrugExposureDiagnostics}R Documentation

Mock Drug exposure tables for ingredients of interest

Description

Mock Drug exposure tables for ingredients of interest

Usage

mockDrugExposure(
  drug_exposure = NULL,
  concept_ancestor = NULL,
  concept_relationship = NULL,
  concept = NULL,
  drug_strength = NULL,
  ingredient_drug_records = NULL,
  drug_exposure_size = 100,
  unique_drug_records = 80,
  patient_size = 50,
  amount_val = c(1, 2, 3),
  den_val = c(1, 10, 100),
  unit = c("", "actuat", "mg", "mL", "mL", "h"),
  num_val = c(1, 2, 3),
  seed = 1
)

Arguments

drug_exposure

drug exposure table

concept_ancestor

concept_ancestor table

concept_relationship

concept_relationship table

concept

concept table

drug_strength

drug strength table

ingredient_drug_records

modified drug exposure table having drug name

drug_exposure_size

the sample size of the drug exposure table

unique_drug_records

number of unique drug records

patient_size

the number of unique patients in the drug exposure table

amount_val

vector of possible numeric amount value for the drug in the drug strength table

den_val

vector of possible numeric denominator value for the drug in drug strength table

unit

vector of possible unit type drug strength table please select from "", "actuat", "mg", "mL", "mL", "h".

num_val

vector of possible numeric numerator denominator value drug strength table

seed

seed to make results reproducible

Value

CDMConnector CDM reference object to duckdb database with mock data include concept_ancestor, concept, drug_strength, drug_exposure tables


[Package DrugExposureDiagnostics version 1.0.4 Index]