Digital Thai MoCA Project Overview
Purpose
Digital Thai MoCA is a web-based system for administering, recording, scoring, reviewing, and exporting Thai MoCA cognitive assessments. The platform supports two primary audiences:
- Patients or test takers who complete the MoCA assessment through a generated web link.
- Staff who generate links, monitor test status, review answers, score results, and export or delete records from the backoffice.
The system includes frontend applications, backend APIs, an AI scoring worker, storage, speech-to-text integration, and deployment infrastructure on AWS.
Main Products
| Product | Audience | Purpose |
|---|---|---|
| User test web app | Patient/test taker | Runs the guided MoCA assessment flow from token validation through thank-you page. |
| Backoffice frontend | Staff | Lets staff log in, generate test links, filter dashboard records, review answers, score tests, export PDF, and delete records. |
| API services | Frontends and internal workers | Handles authentication, test lifecycle, file handling, scoring submission, PDF generation, ASR/AI messaging, and staff/patient data. |
| AI service | Internal backend/worker | Scores AI-assisted test sections from Kafka inputs and returns scoring results. |
Environments
| Environment | Branch | Patient app | Backoffice | API |
|---|---|---|---|---|
| Dev | dev | https://dev.dtm.aimet.tech/ | https://backoffice.dev.dtm.aimet.tech/ | api.dev.braindi.aimet.tech |
| Prod | main | https://dtm.aimet.tech/ | https://backoffice.dtm.aimet.tech/ | api.dtm.aimet.tech |
| Siriraj | siriraj | https://siriraj.dtm.aimet.tech/ | https://backoffice.siriraj.dtm.aimet.tech/ | api.siriraj.dtm.aimet.tech |
Siriraj frontend is wired to the Siriraj backend and the production AI service.
Topics in the handover pack
| Topics | Document |
|---|---|
| Test lifecycle and statuses; patient and staff flows; auth and roles; MoCA domains and scoring; AI scoring tasks; data entities; async vs real-time processing | business-logic-dataflow.md |
| AWS topology, DNS, ECS, Amplify, data stores, Kafka/ASR, CI/CD, secrets, external dependencies | deployment-and-infrastructure.md |
| GitHub repositories; Bruno API collection; cross-repo integration flows | repository-map.md |
| Figma (UI, architecture, AI interface); product surfaces (patient app, dashboard, result page) | ux-ui-and-design-links.md |