Skip to contents

Go through the various "diagnosis" fields in the dataset, looking for matches with the ICD codes

Usage

find_matches_in_ICD(
  .data,
  inpat,
  .dxver,
  .icd_data,
  .icd_value,
  .variables_to_keep
)

Arguments

.data

MarketScan dataset

inpat

logical, for inpat or outpat claims

.dxver

procedure code version

.icd_data

dataset with icd codes

.icd_value

icd value to match

.variables_to_keep

Variable names that should appear in the returned dataset

Value

Dataset