Skip to main content

Documentation 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.

The /api/stats endpoint returns aggregate statistics about the coding system coverage. The response is used by the professional and technical dashboards for analytics visualization, including mapping coverage charts and system-level breakdowns.

Endpoint

Method: GET
Path: /api/stats
Auth: None

Response

namaste_codes
object
Statistics about the loaded NAMASTE code set.
icd11_codes
object
Statistics about the loaded ICD-11 code sets.
mappings
object
Statistics about concept mapping coverage.

Example

curl -X GET http://localhost:5000/api/stats
Response
{
  "namaste_codes": {
    "total": 100,
    "by_system": {
      "Ayurveda": 60,
      "Siddha": 25,
      "Unani": 15
    }
  },
  "icd11_codes": {
    "tm2_total": 50,
    "biomedicine_total": 40
  },
  "mappings": {
    "mapped": 85,
    "unmapped": 15,
    "coverage_percentage": 85.0
  }
}

Build docs developers (and LLMs) love