SUGARCAT.CASE // 03VETERINARY JOURNAL
[ CASE #3 ]

SUGARCAT BACKEND

Veterinary journal platform — medication courses, measurements, document archive, and a confirm-before-save AI assistant for pet owners

CONFIRM-TO-SAVE
PET CONTEXT

The agent reads the pet profile, courses, measurements, and vet documents. Nothing is written to the database without confirm.

JOURNAL NOT CDSS
NO DIAGNOSIS

Does not diagnose, calculate, or invent doses. It only structures data the owner and veterinarian already provided.

STACK
NestJSFastifyPrismaPostgreSQLQDrantLangGraphBullMQS3

ARCHITECTURE & PRODUCT INTENT

SugarCat is a veterinary journal backend, not a CDSS. It stores what the veterinarian already prescribed and helps the owner not lose it. The AI sees pet context, but mutations go only through a confirmation proposal — the owner remains the one who writes to the journal.

  • Modular NestJS/Fastify API: Auth (OTP, JWT cookie, Passkeys), Pet, Pharma, Tracking, EventTracker, Vet, ChatAgent, OCR, STT, YooKassa.
  • LangGraph runtime with tool-calling: mutation tools only prepare a confirmation step; the write happens on POST .../actions/:id/confirm.
  • Vet documents: upload → S3 → OCR/chunking → embeddings in QDrant. The agent searches the pet card instead of inventing lab results.
  • Background jobs: BullMQ/Redis for OCR, STT, and indexing. Premium quotas on AI and OCR.

SAFETY & JOURNAL LOGIC

NOT A VETERINARIAN

The system does not replace a veterinarian and does not recommend treatment. It keeps the prescribed course, measurements, and documents in one place.

NO DOSE NORMALIZATION

Units and doses are stored exactly as the user wrote them. The agent does not rewrite 10.5 mmol into mmol/l or invent a schedule.