Skip to content

Add missing arb.sql to postgres-make-concepts.sql#1976

Open
marcofanti wants to merge 1 commit intoMIT-LCP:mainfrom
marcofanti:fix/add-arb-to-concepts-script
Open

Add missing arb.sql to postgres-make-concepts.sql#1976
marcofanti wants to merge 1 commit intoMIT-LCP:mainfrom
marcofanti:fix/add-arb-to-concepts-script

Conversation

@marcofanti
Copy link

Summary

medication/arb.sql exists in the mimic-iv/concepts_postgres/medication/ directory but is not referenced in postgres-make-concepts.sql. As a result, mimiciv_derived.arb is never created when running the standard concepts build.

Fix

Add \i medication/arb.sql after \i medication/antibiotic.sql in the medication section of postgres-make-concepts.sql (one line, alphabetical order).

Steps to reproduce

Run postgres-make-concepts.sql and then:

SELECT COUNT(*) FROM information_schema.tables
WHERE table_schema = 'mimiciv_derived' AND table_name = 'arb';
-- returns 0

medication/arb.sql exists in the medication/ directory but was not
included in postgres-make-concepts.sql, so mimiciv_derived.arb was
never created when running the standard concepts build.
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.

1 participant