Skip to main content

Scripts to assist working with Medicare data.

Project description

# medicare_utils

<!– [![image](https://img.shields.io/pypi/v/medicare_utils.svg)](https://pypi-hypernode.com/pypi/medicare_utils) –>

<!– [![image](https://img.shields.io/travis/kylebarron/medicare_utils.svg)](https://travis-ci.org/kylebarron/medicare_utils) –>

<!– [![Documentation Status](https://readthedocs.org/projects/medicare-utils/badge/?version=latest)](https://medicare-utils.readthedocs.io/en/latest/?badge=latest) –>

Scripts to assist working with Medicare data.

<!– - Free software: MIT license –> <!– - Documentation: <https://medicare-utils.readthedocs.io>. –>

## 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 `py 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 is bene_id for data post-2005, or ehic for data pre-2005. - mdf.cl: claim-level data.

History

0.0.1 (2018-03-01)

  • First release on PyPI.

Project details


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.1.tar.gz (23.5 kB view details)

Uploaded Source

File details

Details for the file medicare_utils-0.0.1.tar.gz.

File metadata

File hashes

Hashes for medicare_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bc2dc07e3926709a5ae560b55fa8e33d42c6611d092d0ff9dcde1e090a416f50
MD5 6d996358fd67304bac7956bd0611db2c
BLAKE2b-256 b04b9b8d381a40bc47972b9dfa402c84a323c031f9d73f3835861acae9e44bca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page