🦷 DentRx
An open, guideline-cited dental prescribing reference — antibiotics & analgesics
NSAID-first analgesia · antibiotic prophylaxis · therapeutic infection · stewardship-forward US (ADA / AHA / AAOS) + UK (SDCEP / NICE / BNF) · adults + children · every recommendation carries its citation
What it is
Dental antibiotic and analgesic prescribing is frequently guideline-discordant — one 2025 analysis found 67% of dental-prophylaxis prescriptions were not indicated and 72% were inappropriate — yet the rules live scattered across PDFs and closed apps. DentRx encodes the published rules once, correctly, as a tested, versioned, cited dataset, and turns them into:
- 🩺 a zero-install web app a clinician just opens in a browser (nothing to install; works offline after first load) — ✅ built (
docs/); - 🐍 a Python package (
dentrx) that returns a structured recommendation + the citation + a reasoning trace — ✅ built; - 📚 a machine-readable rules dataset (
data/*.json, 27 cited rules) that is itself a citable research artifact.
Call shape:
dentrx.recommend(scenario="acute_dental_pain", jurisdiction="US", population="adult")
# -> first-line: NSAID ± acetaminophen; ibuprofen 400 mg q4–6h (max 2400 mg/day) ...
# + source: ADA 2024 (doi:10.1016/j.adaj.2023.10.009) + disclaimer + reasoning trace
The four pillars
| Pillar | The rule in one line | Governing sources |
|---|---|---|
| Analgesia | Treat pain with NSAID ± acetaminophen, not antibiotics; opioids reserved | ADA 2024/2023, FDA, AAPD · SDCEP/BNF |
| IE prophylaxis | Only highest-risk cardiac patients; amoxicillin 2 g; no clindamycin | AHA 2021 · SDCEP/NICE |
| Prosthetic-joint prophylaxis | Not routinely recommended (reinforced by AAOS 2024) | ADA 2015 + AAOS 2024 · SDCEP |
| Therapeutic infection | Definitive dental treatment first; antibiotics only with systemic involvement | ADA 2019 · SDCEP/NICE |
Full, cited detail with exact figures: docs/EVIDENCE.md.
Design principles
- Facts + citation, never copied prose. Doses are facts; guideline text is copyrighted. DentRx paraphrases and links the DOI, and never republishes ADA CDT codes.
- Never auto-prescribe. Output is a reference with a reasoning trace and a clear disclaimer; a clinician decides.
- Penicillin-allergy branching is built in (none / non-severe / severe).
- Every rule is versioned, dated, and jurisdiction-tagged — because guidelines are living and differ by country.
- Stewardship-forward: where the evidence says don't prescribe, that shows up as loudly as any drug.
Try it
-
Web app (doctors): open
docs/index.htmlin any browser, or once deployed, visithttps://hezarani.github.io/dentrx/. No install; works offline. -
Python (researchers):
pip install dentrx # after PyPI release; or `pip install -e .` from the repo dentrx recommend --pillar prophylaxis_ie --jurisdiction US --cardiac-highest-risk --allergy severe
import dentrx dentrx.recommend("therapeutic_infection", "UK", "adult", {"systemic_involvement": True, "penicillin_allergy": "none"})
-
Deploy it yourself: step-by-step in
docs/DEPLOY.md(GitHub Pages + PyPI + Zenodo DOI).
Status
v0.1 — feature-complete, pending clinical sign-off. Built: the rule schema, cited source registry (12 sources), 27 rules across all four pillars (US + UK, adults + children), the recommendation engine (Python + in-browser) with penicillin-allergy branching, the web app, a 16-test guideline-anchored suite (all passing), and the full evidence dossier. 25/27 rules are figure-verified; 2 cells (UK IE, UK paediatric therapeutic) are flagged to-verify. A DDS reviews docs/EVIDENCE.md and signs off before the first tagged release.
Repository layout
dentrx/
├── data/ # canonical cited rules datasets — the citable artifact
│ ├── sources.json # 12 authoritative sources + DOIs/URLs
│ ├── analgesics.json
│ ├── prophylaxis_ie.json
│ ├── prophylaxis_joint.json
│ └── therapeutic_infection.json
├── schema/rule.schema.json # JSON Schema for the datasets
├── dentrx/ # Python package (engine + CLI)
│ ├── core.py # recommend() + allergy branching
│ └── cli.py
├── docs/ # GitHub Pages site
│ ├── index.html # the zero-install web app (Apple-style UI)
│ ├── data.js # auto-bundled datasets (offline)
│ ├── EVIDENCE.md # full cited clinical foundation
│ └── DEPLOY.md # step-by-step deployment guide
├── scripts/build_web_data.py # bundles data/ -> docs/data.js
├── tests/test_core.py # 16 guideline-anchored tests
├── assets/ # banner + social preview
├── paper.md / paper.bib # JOSS-style preprint stub
├── CITATION.cff · .zenodo.json · LICENSE (MIT) · pyproject.toml
License & citation
MIT © 2026 Hossein Boustani Hezarani (DDS). If you use DentRx, please cite it (see CITATION.cff) and the underlying guideline you rely on. Guideline sources located via PubMed; see data/sources.json.
Metadata
Release files for dentrx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dentrx-0.1.0.tar.gz | 29.0 kB | Without provenance | Details for dentrx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dentrx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dentrx-0.1.0-py3-none-any.whl |
Total release size: 54.4 kB
Release files / dentrx-0.1.0.tar.gz
| Download URL | dentrx-0.1.0.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
765f70d4468d13240e15d6ed905f00369b54b3dea1ff4c7a8f178808f07f6b7f
|
|
BLAKE2b-256 checksum How to use checksums |
c258e873f6b2c4067d24e8efa8770f070735abb7e2d96df327ca17b4af2af50c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / dentrx-0.1.0-py3-none-any.whl
| Download URL | dentrx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b17ffe77778fea47646a448384355f91d85df9c88eddc3a090247700ed022c5b
|
|
BLAKE2b-256 checksum How to use checksums |
d3f3bfbb95bd8c27931f42ce5dd7b612807c10ea107b9129206b4936ae5ddf2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for dentrx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.