# OpenMRS ESM Patient AI Analysis App

This OpenMRS ESM integrates AI-powered patient analysis into the patient chart interface.

## Features

- AI Analysis Button in patient chart action menu
- Comprehensive clinical analysis with drug interactions
- Patient follow-up message generation
- Download analysis reports
- Configurable API endpoint

## Configuration

Configure through OpenMRS configuration system:

```json
{
  "@openmrs/esm-patient-ai-analysis-app": {
    "apiUrl": "http://localhost:8000",
    "apiUsername": "api_user",
    "apiPassword": "api_password",
    "enableAiAnalysis": true
  }
}
```

## Installation

1. Build: `yarn build`
2. Add to spa-build-config.json
3. Configure API endpoint

## Usage

Click "AI Analysis" button in patient chart action menu to generate analysis. 