A simple Flask backend + HTML frontend for mapping AYUSH diseases to FHIR format with NAMASTE and ICD codes.
AYUSH API/
βββ app.py # Flask API server (backend)
βββ mappings.json # Disease mappings data
βββ requirements.txt # Python dependencies
βββ index.html # Web interface (frontend)
βββ .gitignore # Git ignore file
βββ README.md # Instructions
pip install -r requirements.txtpython app.pyβ
Backend runs at: http://127.0.0.1:5000
- Install "Live Server" extension in VS Code
- Right-click on
index.htmlin VS Code - Select "Open with Live Server"
- β
Frontend opens at:
http://127.0.0.1:5500(or similar)
- Double-click
index.htmlto open in your browser - Opens as:
file:///path/to/index.html
π Note: Live Server is recommended as it provides a proper HTTP server environment, while direct file access may have CORS limitations in some browsers.
- β Verify "API is online and ready" shows green at the top
- Enter disease name (e.g., "Amavata") in the input box
- Click "Map Disease to FHIR" button
- View the beautiful FHIR JSON result below!
- Amavata
- Sandhigata Vata
- Madhumeha
- Pandu
- Yakrit Roga
- Jwara
- Kasa
- Swasa
- POST
/map_disease - Input:
{"disease": "Amavata"} - Output: FHIR JSON with NAMASTE + ICD mapping
That's it!