Scripts to assist working with Medicare data.
Project description
medicare_utils
Scripts to assist working with Medicare data.
Features
Provides the class MedicareDF
. This class contains some canned scripts to make common tasks easier. It currently contains two functions:
get_cohort()
, which uses the beneficiary summary file to find a set of medicare beneficiaries according to options given to the function.search_for_codes()
, which searches for HCPCS, ICD-9 diagnosis, and/or ICD-9 procedure codes in a given type of file.
Installation
Install the package with:
pip install git+https://github.com/kylebarron/medicare_utils --upgrade
Usage
The class is initialized with
import medicare_utils as med
mdf = med.MedicareDF('05', range(2010, 2013))
mdf.get_cohort(gender='female', ages=range(65, 75))
mdf.search_for_codes(2010, 'med', icd9_diag='41071')
It has attributes that refer to different levels of the data, when applicable:
mdf.pl
: patient-level data. Here the index of the data isbene_id
for data post-2005, orehic
for data pre-2005.mdf.cl
: claim-level data.
History
0.0.1 (2018-03-01)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
medicare_utils-0.0.2.tar.gz
(37.3 kB
view details)
File details
Details for the file medicare_utils-0.0.2.tar.gz
.
File metadata
- Download URL: medicare_utils-0.0.2.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2567f52f7bc017e99b0ff15f7925bd4db8ceeb77e439690a3817ebfce30d18 |
|
MD5 | 146de4ab4a3ff17234a6be06b0a85b4f |
|
BLAKE2b-256 | f571ffb5b2e0779738c45d0da77cdf0c9418e1f837071dc82dcc5ec84ad726a0 |