Skip to content

feat(backend): expand drug-interactions database to 606 entries (#74) - #444

Open
Owolabenjade wants to merge 27 commits into
harystyleseze:mainfrom
Owolabenjade:feat/issue-74-drug-interactions
Open

feat(backend): expand drug-interactions database to 606 entries (#74)#444
Owolabenjade wants to merge 27 commits into
harystyleseze:mainfrom
Owolabenjade:feat/issue-74-drug-interactions

Conversation

@Owolabenjade

Copy link
Copy Markdown
Contributor

Closes #74

What changed

  • Expanded Drug Interactions JSON Database: Created shared/reference/drug-interactions.json containing 606 drug-drug interactions with clinical descriptions and severity rankings.
  • Startup Ingestion: Updated services/drug-interaction-api/logic.ts to dynamically resolve and read the JSON database on start, falling back to 8 hardcoded entries for service resilience.
  • ETL Pager Sync Script: Added scripts/sync-interactions.ts to generate/sync the clinical dataset in rate-limited pages of 50.
  • ADR Documentation: Added docs/adr/003-drug-interaction-source.md detailing the decommissioning of the NIH RxNav API and legal/licensing boundaries.
  • Unit Tests: Added services/drug-interaction-api/__tests__/expanded-interactions.test.ts to assert database size (>= 500) and verify clinical checks for high-risk pairs (warfarin + aspirin, etc.).

How to test

Run the drug interaction unit tests:

npx vitest run services/drug-interaction-api

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Owolabenjade is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Owolabenjade Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Expand drug-interaction data beyond the 8 hardcoded entries (FDA / RxNorm)

1 participant