TheDocumentation 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.
/mappings endpoint returns all loaded concept mappings between NAMASTE codes and ICD-11 codes. Each mapping carries a confidence score indicating the strength of the equivalence relationship between the source and target concept.
Endpoint
Method:
Path:
Auth: None (demo mode)
Query Parameters: None
GETPath:
/mappingsAuth: None (demo mode)
Query Parameters: None
Response
Returns a JSON array of mapping objects. Each object contains the following fields:The NAMASTE code being mapped (e.g.
NAM-001).The ICD-11 code this NAMASTE code maps to (e.g.
TM2-001 or BM-001).The type of equivalence between source and target. One of
equivalent, equal, wider, or subsumes.The coding system of the source code. Always
"NAMASTE".The coding system of the target code. Either
"ICD-11 TM2" or "ICD-11 Biomedicine".A float between
0.0 and 1.0 representing the accuracy of the mapping.Example
Response
Equivalence Types
Theequivalence field describes the semantic relationship between the source concept and its ICD-11 target.
| Value | Meaning |
|---|---|
equivalent | The source and target represent the same clinical concept. |
equal | The source and target are an exact textual and semantic match. |
wider | The source concept is broader than the target concept. |
subsumes | The source concept contains (subsumes) the target concept. |
Confidence Score
Theconfidence field is a float ranging from 0.0 (no confidence) to 1.0 (perfect confidence), indicating how accurately the source code maps to the target. The 85 mappings in the sample dataset collectively maintain approximately 85% coverage of the loaded NAMASTE code set.
Mappings are persisted to the database at startup. If the database is empty when the application starts, mappings are loaded from the in-memory fallback dataset defined in
app.py.