Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

before running collect.py #84

Open
2533245542 opened this issue Oct 4, 2024 · 2 comments · May be fixed by #92
Open

before running collect.py #84

2533245542 opened this issue Oct 4, 2024 · 2 comments · May be fixed by #92
Assignees
Labels
bug Something isn't working

Comments

@2533245542
Copy link

Hi,

In order to run collect.py, it seems I need to have a psql database setup with mimic-iv FHIR loaded.

I have installed psql and have mimic-iv FHIR downloaded and unzip and stored in a folder.

Do you know how to load them into a database called 'mimiciv_fhir'?

image
@Adibvafa Adibvafa added the bug Something isn't working label Oct 8, 2024
@Adibvafa
Copy link
Member

@mahshidaln Could you review?

@zzadxz
Copy link

zzadxz commented Oct 30, 2024

Hi @2533245542!

I went through the setup, and here’s what worked for me to get collect.py up and running smoothly. Since collect.py relies on data from the MIMIC-IV FHIR dataset, I had to need to first load the data into PostgreSQL. I made a PR with an updated README that explains how to load the dataset mimic-iv FHIR (and how to download it properly). I added the files inside of the path odyssey under a folder named physionet.org and inside of it you can find ~/odyssey/physionet.org/files/mimic-iv-fhir-demo/2.0/mimic-fhir/Condition.ndjson and other .ndjson files. The script that I added load_ndjson_to_postgres.py loads everything properly and handles the formatting of these .ndjson files. I also added the unpacked physionet.org to .gitignore so that future users and contribtuers don't accidentally commit this HUGE database :)
Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants