Skip to content

Conversation

@stefanhgm
Copy link
Contributor

Hi @alistairewj

I moved the original PR now to mimic-code. Sorry that it took so long.

I've created a routine to build concepts for PostgreSQL based on the existing mimic-iii code. It seems that the mimic-iv concepts changed in version 1.0 because further changes were necessary compared to v0.4. Honestly, I think the concepts/postgres_make_concepts.sh is a little messy, but nevertheless I thought it might be useful for others, and it can serve as a starting point for future development.

  • postgres-functions.sql: identical to mimic-iii mimic-code/concepts/postgres-functions.sql except the schema was set to 'public'
  • postgres_make_concepts.sh: used loop structure from concepts/make_concepts.sh and added some regexps. Also, it runs twice for the subfolders score and sepsis to handle interdependencies between folders.
  • Readme.md: updated paths for mimic-code and documented the usage (copied from mimic-iii) and known problems

Following the instruction in Readme.md generates all concept except suspicion_of_infection and sepsis3. I attached the output of the script.

Please let me know if there is anything to improve.

Cheers!

output.txt

@alistairewj alistairewj changed the base branch from main to postgres_concepts August 24, 2021 18:03
@alistairewj
Copy link
Member

Thanks! Got two PRs for this so merging them on an internal branch.

@alistairewj alistairewj merged commit b78f297 into MIT-LCP:postgres_concepts Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants