Skip to content

what database? #3

@joepareti54

Description

@joepareti54

before executing the notebook 1.0_create_adult_inputs.ipynb I have created a database as follows:
make mimic datadir="/media/joepareti54/Elements/x/finance-2021/AI/NLP/Shakespeare-Booz-Allen/physionet.org/files/mimiciii-demo/1.4/" DBNAME="joepareti54" DBPASS="***”

and then changed the notebook:
from sqlalchemy import create_engine, update conn = psycopg2.connect("dbname=joepareti54 user=postgres \ password=**** options=--search_path=mimiciii"); engine = create_engine('postgresql://joepareti54:****@localhost/mimiciii') cur = conn.cursor(); cur.execute("""SET search_path = mimiciii;""")

because I do not have the variables
POSTGRES_CONNECT = os.environ.get("POSTGRES_CONNECT") POSTGRES_ENGINE = os.environ.get("POSTGRES_ENGINE")

The notebook runs although the data is different than here

The notebook 1.1a_create_transfused_cohort.ipynb however throws an invalid syntax exception, and I believe it does not find any transfusion case:

COPY mimiciii.transfusion_items_dict FROM 'D:\\20180717D_ITEMS_related_to_blood_full.csv' DELIMITER ',' CSV HEADER;

In summary, I need to identify the correct data-set and to fix the above code. More information here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions