- Notifications
You must be signed in to change notification settings - Fork 0
feat(medications): reconcile Warfarin records and connect catalogue drugs into interaction graph (#322, #323)#2069
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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a2ffea1
feat(medications): reconcile Warfarin records and connect catalogue d…
BigSimmo 42cfe58
docs(ledger): record review for gemini/clinical-medication-graph-dedu…
BigSimmo e7b46a0
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 2350bdf
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 0bee180
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 946dc26
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo baaac76
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo a0c973e
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 84fe406
test: reconcile medication lexicon coverage ratchets with regenerated…
BigSimmo 1a48449
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo b57b6e9
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo edccbfa
fix(medications): exclude same-name duplicate slugs from interaction …
Copilot f9f0108
fix(test): assert warfarin slugs exist in index before checking count…
Copilot 6b7564a
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 5337ad3
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo 3b21cb8
Merge remote-tracking branch 'origin/main' into gemini/clinical-medic…
claude f098b63
Fix Prettier formatting on medication-interaction-index.json
claude 5d46dc3
test(medications): skip self-referential duplicate drug name check in…
BigSimmo 20b77f0
docs(ledger): supersede review record for gemini/clinical-medication-…
BigSimmo a127e59
Merge branch 'main' into gemini/clinical-medication-graph-dedup
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1 ...ords/1bf7c9b14f7edbb599931c721d96a41bfa8bf96f62cbc131ae94f3cbccf22c03.record.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| | 2026-08-17 | gemini/clinical-medication-graph-dedup | a2ffea11481939af812b51541c081326b7ecd7f6 | Clinical medication graph & deduplication (#322, #323) | READY | npm run check:medication-lexicon-report; npx vitest run tests/medication-interaction-lexicon-coverage.test.ts; npm run typecheck:internal; npm run lint:internal; npm run format | |
1 change: 1 addition & 0 deletions
1 ...ords/dc184278fcbb5c0e83539eb038dbafc5e9f2da2db8985bba8a34dc9d62ae2e47.record.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| | 2026-08-18 | gemini/clinical-medication-graph-dedup | 5d46dc32a4667c87f9c3c9d844ad1a4a824e0ea7 | Clinical medication graph & deduplication (#322, #323) | READY | npm run check:medication-lexicon-report; npx vitest run tests/medication-interaction-lexicon-coverage.test.ts; npm run typecheck:internal; npm run lint:internal; npm run format | |
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: BigSimmo/Database
Length of output: 50373
🏁 Script executed:
Repository: BigSimmo/Database
Length of output: 50374
🏁 Script executed:
Repository: BigSimmo/Database
Length of output: 12499
🏁 Script executed:
Repository: BigSimmo/Database
Length of output: 50374
🏁 Script executed:
Repository: BigSimmo/Database
Length of output: 14596
🌐 Web query:
Official warfarin prescribing information DailyMed CYP2C9 inhibitors inducers INR monitoring dose adjustment vitamin K leafy greens consistent intake💡 Result:
According to official prescribing information for warfarin, the drug has a narrow therapeutic index, meaning its action is sensitive to external factors including concomitant medications and dietary vitamin K [1][2]. Drug Interactions Warfarin is metabolized by several CYP450 isozymes, including CYP2C9 (which metabolizes the more potent S-enantiomer), as well as CYP1A2 and CYP3A4 [3]. Inhibitors of these enzymes can increase warfarin exposure and elevate the International Normalized Ratio (INR), while inducers can decrease exposure and lower the INR [4][3]. The FDA-approved labeling provides examples of these interactions, noting that the list is not all-inclusive and providers should consult the labeling of all concurrently used drugs [4][3]: - CYP2C9 Inhibitors: Amiodarone, capecitabine, cotrimoxazole, etravirine, fluconazole, fluvastatin, fluvoxamine, metronidazole, miconazole, oxandrolone, sulfinpyrazone, tigecycline, voriconazole, zafirlukast [4][3]. - CYP2C9 Inducers: Aprepitant, bosentan, carbamazepine, phenobarbital, rifampin [4][3]. The labeling explicitly advises that the potential for inhibition or induction should be considered when starting, stopping, or changing the dose of concomitant medications, and the INR should be monitored closely in these situations [4][5]. INR Monitoring and Dose Adjustment Dosing must be individualized for each patient based on their INR response [1][6]. Upon initiation of therapy, daily INR determinations should be obtained until the results stabilize within the therapeutic range [1][2]. After stabilization, periodic INR monitoring is required; acceptable intervals are generally 1 to 4 weeks, depending on the clinical situation [1][2]. Additional INR tests are recommended whenever other medications are initiated, discontinued, or taken irregularly [1][2]. Dietary Vitamin K Patients are advised to maintain a normal, balanced diet with a consistent intake of vitamin K [1][2]. Drastic dietary changes, such as consuming large amounts of green leafy vegetables (which are high in vitamin K), should be avoided because excessive vitamin K intake can lower the anticoagulant effect of warfarin [2][7]. Patients are instructed to consult their healthcare provider before making significant changes to their diet [7].
Citations:
Update the canonical Warfarin guidance before regenerating the exports.
Replace the categorical dose, INR, stroke, and dietary claims with qualified interaction risks, clinician-directed dose adjustment, close INR monitoring, and consistent vitamin K intake. Update the canonical medication export used by
scripts/import-medications-export.ts; do not edit the generated JSON files. Runnpm run medications:import, thennpm run medications:interactionsandnpm run check:medication-interactions. Obtain anticoagulation subject-matter approval before merge.🤖 Prompt for AI Agents
Source: Coding guidelines