Sign inSign up

drumsergio/supermedicaldoctor

By drumsergio

•Updated 2 days ago

Image
0

621

drumsergio/supermedicaldoctor repository overview

SuperMedicalDoctor

⁠ SuperMedicalDoctor

Release CI License Docker pulls

SuperMedicalDoctor is a household doctor assistant that lives in a Telegram group. It keeps each person's appointments, medicines and supplements, reads the lab results someone sends, reminds the appointments and what to prepare for them, and answers health questions from medical sources with the evidence behind them. Every record stays in a private git repository you own, and the AI sits behind a plugin file, so you choose the provider.

⁠Features

  • Records appointments, medicines, supplements, allergies and diet rules from a message, a voice note or a photo of the slip, and confirms what it saved in its own words, never the assistant's.
  • Reads a lab PDF or photo, files the original in the repository and stores each value as one line, so every new result is compared with the person's earlier ones.
  • Reminds each appointment the evening before, each preparation in time (fasting, no iron 48 h before) and asks once afterwards how it went, all without the AI.
  • Answers from the latest commit: it pulls the data repository before every turn and fetches named files from other health repositories with an ETag.
  • Keeps each person's data theirs: a private chat carries only that person's files, and the group never hears one person's data unless they raised it there.
  • Offers instead of acting: a new appointment for the person's calendar, a reminder here or in the calendar. Anything that leaves the chat waits for that person's Aprobar.
  • Writes a diet-relevant export for a meal planner: allergies, intolerances, diet rules, the medicines taken and fasting windows, nothing else.
  • One answer per burst of messages, edits taken into account, every voice note heard, Sí/No and option buttons, forum topics followed.
  • /citas, /medicacion, /suplementos, /recordatorios and /deshacer work without any AI.
  • English and Spanish ship; the assistant reads the shared assistant principles first.

⁠Quick start

Create a bot with BotFather, make it an administrator of the group (or turn its privacy mode off), and prepare a data directory as described in the data format⁠, owned by uid 1000:

docker run --rm -v "$PWD/data:/data" drumsergio/supermedicaldoctor:0.1.0 smd check
docker run -d --name supermedicaldoctor -e TELEGRAM_BOT_TOKEN -e SMD_GIT_TOKEN -e TZ=Europe/Madrid \
  -v "$PWD/data:/data" drumsergio/supermedicaldoctor:0.1.0

smd check validates the settings and every person's files. Only one process may poll a bot token; smd say --intro posts the introduction from the host without polling.

⁠Documentation

SuperCycleTracker⁠ and SuperMealPlanner⁠ live in the same household chats and share the same chat machinery.

⁠License

AGPL-3.0-or-later⁠

Tag summary

Content type

Image

Digest

sha256:cfb68c43f…

Size

101.3 MB

Last updated

2 days ago

docker pull drumsergio/supermedicaldoctor:0.1.8