By the end of this guide you will have Ayush Synapse running on your machine and will have successfully translated a NAMASTE code to its ICD-11 TM2 equivalent via the REST API. No database setup is required — the server uses SQLite by default and seeds itself with sample data on first boot.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.
Prerequisites
Before you begin, make sure the following tools are available on your system:
- Python 3.8 or later — check with
python --version - pip — bundled with Python 3.8+; check with
pip --version - Git — to clone the repository
Setup Steps
Clone the repository and create a virtual environment
Clone the Ayush Synapse repository and create an isolated Python environment
so that dependencies do not conflict with other projects on your machine.
Install dependencies
Install all required Python packages from the pinned requirements file.The key packages installed are:
flask, flask-cors, flask-limiter,
flask-sqlalchemy, pyjwt, python-dotenv, pandas, requests, and
flask-swagger-ui.Configure environment variables
Copy the provided example file to create your local The default
.env configuration.
The defaults work out of the box for local development..env sets DEMO_MODE=True, uses SQLite for storage, and
listens on 0.0.0.0:5000. You do not need to edit anything to proceed.Start the Flask server
Launch the application. It will create the SQLite database, seed sample
NAMASTE codes and concept maps, then begin serving requests.Expected output:The server is ready when you see the
Running on http://127.0.0.1:5000 line.Your First API Call
Now translate NAMASTE codeNAM-001 (Common Cold) to its ICD-11 TM2 equivalent.
Replace <YOUR_TOKEN> with the token you copied in Step 5.
| Field | Description |
|---|---|
sourceCode | The NAMASTE code you submitted |
targetCode | The mapped ICD-11 TM2 or Biomedicine code |
targetSystem | The target coding system (ICD-11 TM2 or ICD-11 Biomedicine) |
equivalence | FHIR equivalence type — equivalent, wider, narrower, or inexact |
confidence | A 0–1 score indicating mapping confidence (0.9 = 90%) |
Explore Further
Demo Mode
Learn how demo mode works, how long tokens last, and how to explore every
endpoint without any credentials to manage.
Professional Dashboard
Open the browser-based dashboard for advanced dual-coding search, analytics,
and FHIR resource browsing.
API Reference
Complete reference for all public and protected endpoints with request and
response schemas.