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

Make RxNorm DAG run the actual day of the month it is updated by NLM #195

Open
jrlegrand opened this issue Jun 9, 2023 · 0 comments
Open
Labels
good first issue Good first issue for beginners optimization Nice to have, but not critical

Comments

@jrlegrand
Copy link
Member

jrlegrand commented Jun 9, 2023

Problem Statement

We arbitrarily chose the first day of the month for the RxNorm DAG schedule, but it looks like it can be updated on days 1-6 or so of the month, depending on the month.

Criteria for Success

The RxNorm API has an endpoint that indicates which version it is using.

https://rxnav.nlm.nih.gov/REST/version.json

{"version":"05-Jun-2023","apiVersion":"3.1.252"}

If we hit this endpoint to check for a date from the current month, this would be an indicator that it is the correct day to refresh RxNorm Full data.

Additional Information

Need to consider how this works when triggered manually vs when triggered on schedule. Don't want to prevent someone from re-running the DAG manually even though it is not from the current month.

This might be the way to do it:
https://uts-ws.nlm.nih.gov/releases?releaseType=rxnorm-full-monthly-release

Source: https://documentation.uts.nlm.nih.gov/automating-downloads.html

@jrlegrand jrlegrand added the optimization Nice to have, but not critical label Oct 24, 2023
@jrlegrand jrlegrand added the good first issue Good first issue for beginners label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good first issue for beginners optimization Nice to have, but not critical
Projects
Status: Todo
Development

No branches or pull requests

1 participant