The mcr_sas Module

Abstract class to look for and process Medicare files from 1999 to 2010

These files are semi-processed files. For each year we have a denominator (or patient summary, or enrollment) file and an inpatient admissions file.

Files are in SAS 7BDAT format.

class MedicareSAS(root_dir: str = '.')[source]

Abstract class to look for and process Medicare files from 1999 to 2010 in SAS 7BDAT format

traverse(pattern: str)[source]
handle_sas_file(f: str)[source]
abstract handle(table: str, file_path: str, file_type: str, year: int)[source]