尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A Telegram bot for CPMN: CarePlanMaster for Nurses by Jawad Waadallah Basheer (College of Nursing, University of Mosul) and Ameer Ezat Hadi (College of Nursing, University of Kufa). Send it a topic and it replies with that care plan page as a PDF.
public/pdfs/v2/), taken straight from the final book (NANDA-I 2024–2026 labels)PNEUMONIA, Pneumonia, pneumoniapnemonia, hart failur, schizophernia, cesarianMI, COPD, DKA, CVA, DVT, TKR, PPH …anaemia / anemia, tumour / tumor4.4, 2-1السكري, الربو, ذات الرئة, الولادة القيصرية/list browses every sectionRuns as serverless functions on Vercel, deployed straight from this GitHub repo. No server, no Cloudflare, free tier is enough.
/newbot.bot.123456789:AAH...).BOT_TOKEN Value: your token from BotFatherOpen this address in your browser (use your own Vercel domain):
https://YOUR-PROJECT.vercel.app/api/setup
You should see ✅ Bot connected. Now send your bot pneumonia in Telegram.
If you add or change
BOT_TOKENlater, redeploy (Deployments → ⋯ → Redeploy) and open/api/setupagain.
| Path | What it does |
|---|---|
api/webhook.js | Receives Telegram messages, searches, sends the PDF |
api/setup.js | Registers the webhook and the bot's command menu |
lib/search.js | Case-insensitive, typo-tolerant search with abbreviations and Arabic |
data/plans.json | Topic index (id, title, part, PDF file, extra search names) |
public/pdfs/v2/ | One PDF per care plan, served as static files |
scripts/ | extract_from_book.py cuts the final book PDF into one PDF per care plan and rewrites data/plans.json |
To add search names for a topic, edit aliases in data/plans.json (or scripts/aliases.py and rerun scripts/build.sh), commit, and Vercel redeploys automatically.
When the book changes, export it to PDF and run scripts/build.sh path/to/CPMN_book.pdf (needs pip install pymupdf). It replaces the PDFs and updates data/plans.json, keeping the search names from scripts/aliases.py.
Important: Telegram caches a PDF by its web address. When you publish new PDFs, change the folder name (
v2→v3) in bothapi/webhook.js(PDF_DIR) andscripts/extract_from_book.py(OUT_DIR), otherwise people keep receiving the old copies.
Run the tests with npm test.
/start – how to use/list – browse sections and topics/about – about the bookNote: the PDF links are public on your Vercel domain (Telegram needs to fetch them). Keep the GitHub repo private if you don't want the source shared.