MIT-LCP / MIT-LCP/mimic-code

create "icustay_hourly" table using MySQL

Open
#920 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mimic-iv
Dominant language
Jupyter Notebook
Stars
3.4k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I'm generating the "mimic_derived" database using MySQL.
It has been almost done, but I encountered a problem during creating "icustay_hourly" table using "concepts/demographics/icustay_hourly.sql" file.
On the 28th row, the "GENERATE_ARRAY" method generates a variable-length array that is supported on BigQuery, but not on MySQL.
Does anyone have an idea to create the table using MySQL syntex?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with concepts/demographics/icustay_hourly.sql and inspect row 28, where GENERATE_ARRAY is used. Check the MySQL-compatible syntax for producing the required variable-length values, then verify that the icustay_hourly table can be created successfully in MySQL.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, sql
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.