The Technical Dashboard (served atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sagar-grv/ayush-synapse/llms.txt
Use this file to discover all available pages before exploring further.
/technical.html) is built for developers, system integrators, and DevOps teams. It bundles an in-browser API testing interface, live system health monitoring, performance metrics drawn from GET /api/stats, and step-by-step integration guides for connecting external EMR systems to the Ayush Synapse API — all accessible without leaving the browser.
Accessing the Dashboard
Start the Ayush Synapse server and navigate to:Features
API Testing
API Testing
The Technical Dashboard embeds an interactive request builder that lets you compose and fire requests to any Ayush Synapse endpoint directly from the browser. For each request you can:
- Select the HTTP method (
GET/POST) - Enter the endpoint path and any query parameters
- Set the
Authorization: Bearerheader for protected routes - Inspect the raw JSON response and HTTP status code in the output pane
System Monitoring
System Monitoring
The monitoring panel polls two health-check endpoints and renders their responses in a live status view:
Green/amber/red badges reflect the
| Endpoint | Description |
|---|---|
GET /health | Lightweight liveness check — status, timestamp, and code counts |
GET /health/detailed | Full readiness check with per-service status flags and data-load verification |
"status" field in each response ("healthy" or "degraded"). The panel auto-refreshes every 30 seconds.Performance Metrics
Performance Metrics
The metrics panel calls
GET /api/stats on load and renders three key numbers:- NAMASTE code count — total codes loaded from CSV or database
- ICD-11 code count — combined TM2 and Biomedicine totals
- Mapping coverage percentage —
(mapped / total_namaste_codes) × 100
Integration Guides
Integration Guides
The dashboard includes a guided walkthrough for connecting an external EMR or HIS to the Ayush Synapse API. The guide covers:
- Authentication — obtaining and rotating demo tokens via
POST /auth/login - Code lookup — querying
GET /api/searchand parsing the dual-code response - Translation — using
POST /translateto convert a known NAMASTE code to its ICD-11 equivalent programmatically - FHIR import/export — fetching
GET /codesystem/namaste,GET /codesystem/icd11, andGET /conceptmapfor integration with FHIR-aware systems - Bundle ingestion — posting a FHIR Bundle with dual coding via
POST /bundle
fetch equivalent.Health Monitoring
TheGET /health/detailed endpoint returns a comprehensive readiness snapshot. Below is the complete response shape:
| Field | Type | Description |
|---|---|---|
status | string | "healthy" when all checks pass; "degraded" if any service or data check fails |
timestamp | string | UTC ISO-8601 timestamp of the health check |
demo_mode | boolean | true when the DEMO_MODE environment variable is set |
data.namaste_codes | boolean | true when at least one NAMASTE code is loaded |
data.concept_maps | boolean | true when at least one concept mapping is loaded |
data.sample_data_loaded | boolean | true when both NAMASTE codes and concept maps are present |
services.csv_parser_service | boolean | true when the CSV parser service is available |
services.who_api_service | boolean | true when the WHO API service instance is initialised |
services.auth_service | boolean | true when the authentication service can issue tokens |
counts.namaste_codes | integer | Total NAMASTE codes currently loaded in memory or database |
counts.concept_maps | integer | Total concept mappings currently loaded |
GET /health endpoint returns a subset of this data — useful for load-balancer or Kubernetes liveness probes:
Related API Endpoints
The Technical Dashboard makes use of the following endpoints:| Method | Endpoint | Auth Required | Description |
|---|---|---|---|
GET | /health | No | Lightweight liveness check |
GET | /health/detailed | No | Full readiness check with per-service flags |
GET | /api/stats | No | Mapping counts and coverage percentage |
GET | /api/search | No | Full-text search across NAMASTE and ICD-11 |
POST | /auth/login | — | Issues a demo JWT token |
POST | /translate | No | Translate a NAMASTE code to ICD-11 |
POST | /bundle | No | Ingest a FHIR Bundle with dual coding |
GET | /codesystem/namaste | No | FHIR R4 CodeSystem for NAMASTE codes |
GET | /codesystem/icd11 | No | FHIR R4 CodeSystem for ICD-11 |
GET | /conceptmap | No | FHIR R4 ConceptMap (NAMASTE → ICD-11) |