research for MIMIC-III dataset
wget --user YOURUSERNAME --ask-password -A csv.gz -m -p -E -k -K -np -nd https://physionet.org/works/MIMICIIIClinicalDatabase/files/
with YOURUSERNAME is the email you register for mimic3 datasetsudo apt-get install postgresql libpq-dev
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl
and do pip install pgadmin*
in your conda environmentsudo su - postgres
then psql postgres
then CREATE USER youraccount;
, ALTER USER youraccount superuser;
, and CREATE DATABASE mimic3 OWNER youraccount
git clone --recursive https://github.com/AM2-Labs/mimic3.git
cd mimic3/mimic-code/buildmimic/postgres/
psql mimic3 -f postgres_create_tables.sql -U youraccount
psql mimic3 -f postgres_load_data_gz.sql -U youraccount -v mimic_data_dir='<path_to_data>'
psql mimic3 -f postgres_add_indexes.sql -U your account
psql mimic3
then ALTER USER youraccount PASSWORD 'yourpassword'
then ALTER USER youraccount nosuperuser;
cd PATH/lib/python3.5/site-packages/pgadmin4
, do python pgAdmin4.py
, and go to the browser http://127.0.0.1:5050