MIT-LCP / MIT-LCP/mimic-code

TABLE pivoted_oasis

Open Beginner friendly
#830 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Prerequisites
Description

Hello,
I found a problem when creating the TABLE pivoted_oasis in PostgreSQL. There is no previous table or view for the relation surgflag sf. I have not seen it included in the views required to run this query. Also, there are two left joins performed with the table ventdurations. They are referenced by two different initials but then the left join is made with different initials (ventdurations vd1 on co.icustay_id = vd.icustay_id, and ventdurations vd2 on co.icustay_id = vd.icustay_id), which has to be corrected in order to run the query.

Thank you.

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

Locate the query that creates TABLE pivoted_oasis and inspect its PostgreSQL dependencies, including the surgflag relation and both ventdurations joins. Correct the missing relation or view and the inconsistent ventdurations aliases, then run the query to confirm that pivoted_oasis is created successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.