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
Statistics about the loaded NAMASTE code set. Show namaste_codes fields
Total number of NAMASTE codes loaded into the system.
A breakdown of NAMASTE codes by their AYUSH subsystem (e.g. Ayurveda, Siddha, Unani). Keys are system names and values are integer counts.
Statistics about the loaded ICD-11 code sets. Total number of ICD-11 TM2 codes available.
icd11_codes.biomedicine_total
Total number of ICD-11 Biomedicine codes available.
Statistics about concept mapping coverage. Number of NAMASTE codes that have at least one ICD-11 mapping.
Number of NAMASTE codes with no ICD-11 mapping.
mappings.coverage_percentage
Percentage of NAMASTE codes that have a mapping, rounded to two decimal places. Calculated as (mapped / total) * 100.
Example
curl -X GET http://localhost:5000/api/stats
{
"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
}
}