• Stars
    star
    2,326
  • Rank 19,794 (Top 0.4 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 9 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MIMIC Code Repository: Code shared by the research community for the MIMIC family of databases

MIMIC Code Repository DOI

The MIMIC Code Repository is intended to be a central hub for sharing, refining, and reusing code used for analysis of the MIMIC critical care database. To find out more about MIMIC, please see: https://mimic.mit.edu. Source code for the website is in the mimic-website GitHub repository.

You can read more about the code repository in the following open access paper: The MIMIC Code Repository: enabling reproducibility in critical care research.

Cloud access to datasets

The various MIMIC databases are available on Google Cloud Platform (GCP) and Amazon Web Services (AWS). To access the data on the cloud, simply add the relevant cloud identifier to your PhysioNet profile. Then request access to the dataset for the particular cloud platform via the PhysioNet project page. Further instructions are available on the MIMIC website.

Navigating this repository

This repository contains code for five databases on PhysioNet:

  • MIMIC-III - critical care data for patients admitted to ICUs at the BIDMC between 2001 - 2012
  • MIMIC-IV - hospital and critical care data for patients admitted to the ED or ICU between 2008 - 2019
  • MIMIC-IV-ED - emergency department data for individuals attending the ED between 2011 - 2019
  • MIMIC-IV Waveforms (TBD) - this dataset has yet to be published.
  • MIMIC-CXR - chest x-ray imaging and deidentified free-text radiology reports for patients admitted to the ED from 2012 - 2016

The repository contains one top-level folder containing community developed code for each datasets:

  • mimic-iii - build scripts for MIMIC-III, derived concepts which are available on the physionet-data.mimiciii_derived dataset on BigQuery, and tutorials.
  • mimic-iv - build scripts for MIMIC-IV, derived concepts which are available on the physionet-data.mimic_derived dataset on BigQuery, and tutorials.
  • mimic-iv-cxr - code for loading and analyzing both dicom (mimic-iv-cxr/dcm) and text (mimic-iv-cxr/txt) data. In order to clearly indicate that MIMIC-CXR can be linked with MIMIC-IV, we have named this folder mimic-iv-cxr, and any references to MIMIC-CXR / MIMIC-IV-CXR are interchangeable.
  • mimic-iv-ed - build scripts for MIMIC-IV-ED.
  • mimic-iv-waveforms - TBD

Each subfolder has a README with further detail regarding its content.

Launch MIMIC-III in AWS

MIMIC-III is available on AWS (and MIMIC-IV will be available in the future). Use the below Launch Stack button to deploy access to the MIMIC-III dataset into your AWS account. This will give you real-time access to the MIMIC-III data in your AWS account without having to download a copy of the MIMIC-III dataset. It will also deploy a Jupyter Notebook with access to the content of this GitHub repository in your AWS account. Prior to launching this, please login to the MIMIC PhysioNet website, input your AWS account number, and request access to the MIMIC-III Clinical Database on AWS.

To start this deployment, click the Launch Stack button. On the first screen, the template link has already been specified, so just click next. On the second screen, provide a Stack name (letters and numbers) and click next, on the third screen, just click next. On the forth screen, at the bottom, there is a box that says I acknowledge that AWS CloudFormation might create IAM resources.. Check that box, and then click Create. Once the Stack has complete deploying, look at the Outputs tab of the AWS CloudFormation console for links to your Juypter Notebooks instance.

cloudformation-launch-stack

Other useful tools

  • Bloatectomy (paper) - A python based package for removing duplicate text in clinical notes
  • Medication categories - Python script for extracting medications from free-text notes
  • MIMIC Extract (paper) - A python based package for transforming MIMIC-III data into a machine learning friendly format
  • FIDDLE (paper) - A python based package for a FlexIble Data-Driven pipeLinE (FIDDLE), transforming structured EHR data into a machine learning friendly format

Acknowledgement

If you use code or concepts available in this repository, we would be grateful if you would:

@article{johnson2018mimic,
  title={The MIMIC Code Repository: enabling reproducibility in critical care research},
  author={Johnson, Alistair E W and Stone, David J and Celi, Leo A and Pollard, Tom J},
  journal={Journal of the American Medical Informatics Association},
  volume={25},
  number={1},
  pages={32--39},
  year={2018},
  publisher={Oxford University Press}
}

Contributing

Our team has worked hard to create and share the MIMIC datasets. We encourage you to share the code that you use for data processing and analysis. Sharing code helps to make studies reproducible and promotes collaborative research. To contribute, please:

We encourage users to share concepts they have extracted by writing code which generates a materialized view. These materialized views can then be used by researchers around the world to speed up data extraction. For example, ventilation durations can be acquired by creating the ventdurations view in concepts/durations/ventilation_durations.sql.

License

By committing your code to the MIMIC Code Repository you agree to release the code under the MIT License attached to the repository.

Coding style

Please refer to the style guide for guidelines on formatting your code for the repository.

More Repositories

1

wfdb-python

Native Python WFDB package
Jupyter Notebook
742
star
2

eicu-code

Code and website related to the eICU Collaborative Research Database
Jupyter Notebook
294
star
3

mimic-iv

Deprecated. For the latest MIMIC-IV code, please refer to: https://github.com/MIT-LCP/mimic-code
Python
255
star
4

mimic-cxr

Code, documentation, and discussion around the MIMIC-CXR database
Jupyter Notebook
236
star
5

mimic-omop

Mapping the MIMIC-III database to the OMOP schema
PLpgSQL
122
star
6

mimic-website

Website for the MIMIC Critical Care Database (currently version MIMIC-III)
CSS
93
star
7

mimic-workshop

Introduction to MIMIC-III, the Critical Care Database
Jupyter Notebook
80
star
8

critical-data-book

Code repository for the critical data book
MATLAB
73
star
9

mimic-iii-paper

Repository for the paper describing MIMIC-III
Jupyter Notebook
72
star
10

physionet

A collection of tools for working with the PhysioNet repository.
Python
67
star
11

physionet-build

The new PhysioNet platform.
JavaScript
56
star
12

bloatectomy

A python package for removing duplicate text in clinical notes or other documents
TeX
33
star
13

oracle2postgres

Migrate data from an Oracle database to a Postgres database
Python
29
star
14

COVID-19

Analysis of high resolution clinical data for COVID-19 patients
Jupyter Notebook
19
star
15

sccm-datathon

Resources for the Society of Critical Care Medicine (SCCM) Datathon
Jupyter Notebook
18
star
16

mimic-cookbook

Cookbook of sql scripts for MIMIC-II
SQLPL
16
star
17

mimic-iv-website

Website for MIMIC-IV
HTML
15
star
18

bidmc-datathon

Materials for the BIDMC datathon (Sat 29 Feb 2020)
Jupyter Notebook
11
star
19

gossis

Extracting consistent concepts from multiple databases
Jupyter Notebook
11
star
20

2019_toronto_health_hack

2019 Toronto Datathon https://www.tdothealthhack.com
Jupyter Notebook
11
star
21

waveform-annotation

Platform for annotating physiological waveform data.
Python
10
star
22

2019_aarhus_critical_data

Tutorials for the 2019 Aarhus Datathon
Jupyter Notebook
9
star
23

hack-aotearoa

Sample code for Hack Aotearoa 2023
Jupyter Notebook
9
star
24

eicu-data-paper

Data descriptor of the eICU Collaborative Research Database for submission to Scientific Data
Jupyter Notebook
9
star
25

2019_tokyo_datathon

Materials for the Tokyo datathon (March 2019)
Jupyter Notebook
8
star
26

bhi-bsn-challenge

Repository for the IEEE BHI-BSN MIMIC-III Challenge
HTML
8
star
27

critical-data

Website for critical-data
CSS
8
star
28

PhysioNetChallengePublic

Public Software for the PhysioNet/CinC Challenge Series
MATLAB
7
star
29

Shakespeare-Method

The Shakespeare-Method repository contains the code we used to develop a new method to identify attributed and unattributed potential adverse events using the unstructured notes portion of electronic health records.
HTML
7
star
30

bst209

Course materials for BST209
HTML
6
star
31

2019-hst-953

Materials for 2019 HST953 Course.
Jupyter Notebook
6
star
32

license-and-dua

The PhysioNet Data Use Agreement and License
6
star
33

vancomycin-nephrotoxicity

Study in eICU-CRD about vancomycin and associated nephrotoxicity
Jupyter Notebook
5
star
34

hdlvef

LCP project investigating hyperdynamic ejection fraction in critically ill patients
MATLAB
5
star
35

aline-mimic-iii

PLpgSQL
5
star
36

datathon-package

Pip installable package containing helper functions for datathons
Python
5
star
37

philips-eicu-meeting-2019

Content for the 2019 eICU/eRI Collaborative Research Workshop (23rd September 2019, Colorado)
Jupyter Notebook
5
star
38

aline-mimic-ii

Repository for Aline project with Doug and Leo
SQLPL
4
star
39

cvsim

CVSim: a cardiovascular simulator.
Java
4
star
40

mimic-and-eicu-talk

Overview of MIMIC-III and the eICU Collaborative Research Database
Jupyter Notebook
4
star
41

ga-gmm

Identify predictive parameters for 28-day mortality using a genetic algorithm (GA) and Gaussian mixture models (GMM)
SQLPL
4
star
42

2019_mlhc_workshop

Resources for our Workshop at the 2019 Machine Learning in Healthcare Conference
Jupyter Notebook
4
star
43

mitre_deid_toolkit

Not the official distribution of the MITRE deidentification toolkit.
HTML
3
star
44

better-science-ideathon

Website for https://betterscience.mit.edu
CSS
3
star
45

patienttracking

MIMIC II Patient Tracking
MATLAB
3
star
46

eicu-website

Repository moved
3
star
47

ACM-BCB-2017

Materials for the eICU Collaborative Research Database tutorial at ACM-BCB 2017
Jupyter Notebook
3
star
48

edema

Perl
3
star
49

mit-lcp.github.io

Pages
HTML
2
star
50

citation-tracker

Tools for tracking citations to MIMIC, PhysioNet etc.
Jupyter Notebook
2
star
51

mimic-callout

Study on discharge delays in the MICU using the MIMIC-III database
HTML
2
star
52

ds-review

Automatically exported from code.google.com/p/ds-review
MATLAB
2
star
53

northstar_mimic_visualization

Code to extract MIMIC data for the Northstar interactive visualization tool
2
star
54

querybuilder-issue

Public Issue tracker for the Query Builder repo
2
star
55

false-alarm-reduction

Code for building a model to reduce false alarms in the intensive care unit
Python
2
star
56

clinical-study-template

A template repo for clinical studies
2
star
57

open-science-fair-2017

Repository for the Open Science Fair 2017 workshop
Jupyter Notebook
2
star
58

QueryBuilder-AWS

QueryBuilder configured to run on the AWS-EC2 instances.
JavaScript
1
star
59

downcast

Tools for unpacking and converting data from the DWC system
Python
1
star
60

presentations

Presentations by LCP members
1
star
61

2019_hack_aotearoa_eicu

eICU workshop presented at Hack Aotearoa
Jupyter Notebook
1
star
62

datathon-gossis

Resources for the GOSSIS datathon in Pittsburgh
Jupyter Notebook
1
star
63

cwmed

A Python package that facilities the conversion of clinical terminology between two different coding systems for interoperability.
Python
1
star
64

mimic-iv-datathon

Jupyter Notebook
1
star
65

lcp-website

Website for the LCP Laboratory https://lcp.mit.edu
HTML
1
star
66

mimic_wfdb_tutorials

Tutorials on using the MIMIC Waveform Database
HTML
1
star
67

echo-data

Code related to extracting structured data from echocardiography reports
1
star