File size: 1,723 Bytes
b15df3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: Prescription Explainer
emoji: 💊
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.40.0
app_file: app.py
pinned: false
license: mit
---

# 💊 Prescription Explainer

AI-powered prescription understanding for Southeast Asian patients using Google's MedGemma.

## What it does

1. **Upload** a prescription image (photo or scan)
2. **Get** a clear, patient-friendly explanation
3. **Translate** to your preferred language (Thai, Indonesian, Vietnamese, Cambodian, Hindi, Mandarin, English)
4. **Export** FHIR-compliant health data for sharing with healthcare providers

## Features

- **MedGemma-powered extraction** - Reads prescription images directly using Google's multimodal medical AI
- **Plain-language explanations** - No medical jargon, just clear instructions
- **Multilingual support** - 7 Southeast Asian languages
- **FHIR R4 export** - MedicationStatement and MedicationRequest resources for health data portability
- **Privacy-first** - No data stored, images processed and discarded

## Technology Stack

- **AI Model**: MedGemma 1.5 4B (`google/medgemma-1.5-4b-it`)
- **Translation**: Gemma 3
- **Frontend**: Streamlit
- **FHIR**: fhir.resources (Python)
- **Deployment**: Hugging Face Spaces

## Usage

```bash
pip install -r requirements.txt
streamlit run app.py
```

## Supported Languages

- English
- Thai (ไทย)
- Indonesian (Bahasa Indonesia)
- Vietnamese (Tiếng Việt)
- Cambodian/Khmer (ភាសាខ្មែរ)
- Hindi (हिन्दी)
- Mandarin Simplified (简体中文)

## Disclaimer

This tool provides general information only. Always consult your healthcare provider for medical advice.

---

Built for the Google AI Hackathon 2026 - MedGemma Track