GithubHelp home page GithubHelp logo

edc's Introduction

edc

My portable personal library for loading datasets and utils

Installation

pip install git+https://github.com/elijahc/edc

Datasets

National Hospitalized Ambulatory Care Survey

The National Hospital Ambulatory Medical Care Survey (NHAMCS) is designed to collect data on the utilization and provision of ambulatory care services in hospital emergency and outpatient departments and ambulatory surgery locations. Findings are based on a national sample of visits to the emergency departments, outpatient departments, and ambulatory surgery locations of noninstitutional general and short-stay hospitals.

Usage

To load most recent year of published emergency department data:

from edc.datasets import nhamcs
emergency = nhamcs.ed.load_data()

Or you can select years:

from edc.datasets import nhamcs
emergency = nhamcs.ed.load_data(year=[2017,2018])

Outpatient data can be loaded similarly:

from edc.datasets import nhamcs
outpatient = nhamcs.opd.load_data()

National Ambulatory Medical Care Survey

The National Ambulatory Medical Care Surveys (NAMCS) supplydata on ambulatory medical care provided in physicians' offices. The 2006 survey contains information from 29,392 patient visits to 1,455physicians' offices. Data are available on the patient's smokinghabits, reason for the visit, expected source of payment, thephysician's diagnosis, and the kinds of diagnostic and therapeuticservices rendered. Other variables cover drugs/medications ordered,administered, or provided during office visits, with information onmedication code, generic name and code, brand name, entry status,prescription status, federal controlled substance status, compositionstatus, and related ingredient codes. Information is also included onthe physician's specialization and geographic location. Demographicinformation on patients, such as age, sex, race, and ethnicity, wasalso collected. In addition, the 2006 survey contains two new sampling strata which are from 104 Community Health Centers (CHCs) and 200 oncologists.

See Cookbook here for data dictionary and data management plan

Usage

from edcutils.datasets import namcs

private_practice = namcs.load_data(year=[2013,2014])

Downloading data from ftp://ftp.cdc.gov/pub/Health_Statistics/NCHS/dataset_documentation/namcs/spss/namcs2013-spss.zip

edc's People

Contributors

elijahc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.