Extract Diagnostic Mammograms from Medicare Claims
Description
Filters a Medicare carrier or outpatient claims file to rows containing diagnostic mammography HCPCS codes, and converts claim dates to a 1-indexed study month relative to a reference date.
Usage
extract_diagnostic_mammograms(
claims,
id_col = "bene_id",
date_col = "thru_dt",
hcpcs_col = "hcpcs_cd",
hcpcs_codes = c("76090", "76091", "G0204", "G0206", "77055", "77056"),
ref_date,
study_start_month = 1L
)
Arguments
claims
|
A data frame of Medicare claims. Must contain columns id_col, date_col, and hcpcs_col.
|
id_col
|
Name of the beneficiary identifier column. Default: “bene_id”.
|
date_col
|
Name of the service date column (coercible to Date). Default: “thru_dt”.
|
hcpcs_col
|
Name of the HCPCS procedure code column. Default: “hcpcs_cd”.
|
hcpcs_codes
|
Character vector of HCPCS codes identifying diagnostic mammography claims. Default: c(“76090”, “76091”, “G0204”, “G0206”, “77055”, “77056”).
|
ref_date
|
A Date object giving the reference date from which study months are counted (e.g., the first day of the study period).
|
study_start_month
|
Integer giving the month index assigned to ref_date. Default: 1L.
|
Details
This is a template function that cannot be run without access to Medicare claims data. It is provided as a reference implementation for users who have access to such data.
The default HCPCS codes for diagnostic mammography are:
-
“76090”: Unilateral diagnostic mammography (film) -
“76091”: Bilateral diagnostic mammography (film) -
“G0204”: Diagnostic mammography (digital, unilateral) -
“G0206”: Diagnostic mammography (digital, bilateral) -
“77055”: Unilateral diagnostic mammography -
“77056”: Bilateral diagnostic mammography
Value
A data frame with one row per matching claim, containing:
-
id: Beneficiary identifier (fromid_col). -
month: Study month index (integer, 1-indexed fromref_date).
See Also
extract_screening_mammograms(), extract_any_mammograms(), clone_censor()