Extract Screening Mammograms from Medicare Claims
Description
Filters a Medicare carrier or outpatient claims file to rows containing screening mammography HCPCS codes, and converts claim dates to a 1-indexed study month relative to a reference date.
Usage
extract_screening_mammograms(
claims,
id_col = "bene_id",
date_col = "thru_dt",
hcpcs_col = "hcpcs_cd",
hcpcs_codes = c("77057", "76092", "G0202", "G0203", "G0205"),
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 screening mammography claims. Default: c(“77057”, “76092”, “G0202”, “G0203”, “G0205”).
|
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 screening mammography are:
-
“77057”: Bilateral screening mammography (film) -
“76092”: Bilateral screening mammography (superseded) -
“G0202”: Bilateral screening mammography (digital) -
“G0203”: Bilateral screening mammography (film, FQHC) -
“G0205”: Bilateral screening mammography (digital, FQHC)
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).
References
García-Albéniz X, Uno H, Bhatt DL, McArdle PH, Joffe MM, Hernán MA. Continuation of Annual Screening Mammography and Breast Cancer Mortality in Women Older Than 70 Years: A Prospective Observational Study. Ann Intern Med. 2020;172(6):381–389. doi:10.7326/M18-1199
See Also
extract_diagnostic_mammograms(), extract_any_mammograms(), clone_censor()