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

Switched to RxNorm db for rxnconso #22

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Conversation

dogversioning
Copy link
Contributor

This PR does the following:

  • Switches to using the rxnorm database directly rather than the static file
  • removes the static file from the repo
  • cleans up some midstream artifacts from the paper analysis that are being stored elsewhere

n.b. after this goes in, i'm going to rebase together the last few commits to get the large files out of project history.

Comment on lines +10 to +26
# [sql_config]
# file_names = [
# "define_dx.sql",
# "define_dx_sepsis.sql",
# "define_dx_sud.sql",
# "define_lab.sql",
# "define_rx.sql",
# "define_rx_buprenorphine.sql",
# "define_rx_naloxone.sql",
# "define_rx_opioid.sql",
# "table_study_period.sql",
# "table_dx.sql",
# "table_dx_sepsis.sql",
# "table_lab.sql",
# "table_rx.sql",
# "version.sql"
# ]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've been doing this manually each time im working and then undoing it on commit - since we now remember that the opioid study is not working in library v2.3, im inclined to leave it commented until we migrate these tables

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol OK the one-by-one approach worked, it seems 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on the one hand: this feels incredibly wrong
on the other hand: it's 60x faster than the 'smart' way, so 🤷

cumulus_library_opioid/vocab/additional_rules_builder.py Outdated Show resolved Hide resolved
@dogversioning dogversioning self-assigned this Aug 1, 2024
@dogversioning dogversioning merged commit 01e50ac into v2_cutover Aug 1, 2024
1 check passed
@dogversioning dogversioning deleted the mg/rxnorm-join branch August 1, 2024 19:42
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