Skip to contents

Keep and return records of eligible women that match CPT pregnancy codes with additional info

Usage

match_on_pregnancy_cpt_code(
  .data,
  .cpt_data,
  .by_var_claims = "proc1",
  .by_var_cpt_code = "cpt_char",
  .variables_to_keep
)

Arguments

.data

MarketScan dataset

.cpt_data

CPT procedure codes dataset

.by_var_claims

Variable in claims data to join by

.by_var_cpt_code

Variable in CPT procedure codes dataset to join by

.variables_to_keep

Variable names that should appear in the returned dataset

Value

Modified dataset