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!