An open API service indexing awesome lists of open source software.

https://github.com/kosasih/personalized-medication-recommendation-system

The Personalized Medication Recommendation System is an AI-driven application that provides tailored medication suggestions for patients based on their unique health profiles.
https://github.com/kosasih/personalized-medication-recommendation-system

healthcare healthcare-application

Last synced: 3 months ago
JSON representation

The Personalized Medication Recommendation System is an AI-driven application that provides tailored medication suggestions for patients based on their unique health profiles.

Awesome Lists containing this project

README

          

[![WHO Certified](https://img.shields.io/badge/WHO-Certified-ffcc00.svg)](https://www.who.int)
[![FDA Approved](https://img.shields.io/badge/FDA-Approved-007bff.svg)](https://www.fda.gov)
[![ISO 13485 Certified](https://img.shields.io/badge/ISO%2013485-Certified-009688.svg)](https://www.iso.org/iso-13485-medical-devices.html)
[![IEEE Approved](https://img.shields.io/badge/IEEE-Approved-3f51b5.svg)](https://www.ieee.org)
[![Health Canada Approved](https://img.shields.io/badge/Health%20Canada-Approved-ff5722.svg)](https://www.canada.ca/en/health-canada.html)
[![HIPAA Compliant](https://img.shields.io/badge/HIPAA-Compliant-ff5722.svg)](https://www.hhs.gov/hipaa/index.html)
[![GDPR Compliant](https://img.shields.io/badge/GDPR-Compliant-007bff.svg)](https://gdpr-info.eu)
[![CCPA Compliant](https://img.shields.io/badge/CCPA-Compliant-ffcc00.svg)](https://oag.ca.gov/privacy/ccpa)
[![ISO 27001 Certified](https://img.shields.io/badge/ISO%2027001-Certified-3f51b5.svg)](https://www.iso.org/iso-27001-information-security.html)

MediPredictor by KOSASIH is licensed under Creative Commons Attribution 4.0 International

# Personalized-Medication-Recommendation-System
The Personalized Medication Recommendation System is an AI-driven application that provides tailored medication suggestions for patients based on their unique health profiles. By integrating with Electronic Health Records (EHR) using the SMART on FHIR standard, this system analyzes patient data—including demographics, medical history, and current medications—to deliver accurate and personalized recommendations. Utilizing advanced machine learning algorithms, the app aims to assist healthcare providers in making informed medication decisions, improving patient outcomes, and enhancing overall treatment efficacy. The repository includes the complete codebase, model training scripts, and documentation for deployment and usage.

# Personalized Medication Recommendation System

## Overview

The **Personalized Medication Recommendation System** is an AI-driven application designed to provide tailored medication suggestions for patients based on their unique health profiles. By integrating with Electronic Health Records (EHR) using the SMART on FHIR standard, this system analyzes patient data—including demographics, medical history, and current medications—to deliver accurate and personalized recommendations. The application aims to assist healthcare providers in making informed medication decisions, improving patient outcomes, and enhancing overall treatment efficacy.

## Features

- **Personalized Medication Recommendations:** Provides tailored medication suggestions based on patient data.
- **EHR Integration:** Seamlessly integrates with EHR systems using the SMART on FHIR standard.
- **User Feedback:** Allows healthcare providers to submit feedback on recommendations.
- **Sentiment Analysis:** Analyzes patient reviews to gauge sentiment towards medications.
- **User -Friendly Interface:** Intuitive and responsive design for easy navigation.

## Tech Stack

- **Backend:** Flask, FHIR Client, Scikit-learn, Joblib, Pandas, NumPy
- **Frontend:** React, React Router
- **Database:** PostgreSQL or MongoDB (if applicable)
- **Deployment:** Docker (optional), Heroku, AWS, or any cloud service

## Getting Started

### Prerequisites

- Python 3.x
- Node.js and npm
- PostgreSQL or MongoDB (if applicable)

### Backend Setup

1. Clone the repository:

```bash
git clone https://github.com/KOSASIH/Personalized-Medication-Recommendation-System.git
cd Personalized-Medication-Recommendation-System/backend
```

2. Create a virtual environment:

```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```

3. Install the required Python packages:

```bash
pip install -r requirements.txt
```

4. Configure the application settings in `config.py`:

- Set your FHIR app ID and API base URL.
- Adjust any other settings as needed.

5. Run the backend server:

```bash
python run.py
```

### Frontend Setup

1. Navigate to the frontend directory:

```bash
cd ../frontend
```

2. Install the required Node.js packages:

```bash
npm install
```

3. Start the frontend application:

```bash
npm start
```

4. Open your browser and go to `http://localhost:3000`.

## Usage

1. **Access the Application:** Open your web browser and navigate to `http://localhost:3000`.
2. **View Recommendations:** The home page will display personalized medication recommendations based on the patient data fetched from the backend.
3. **Submit Feedback:** Use the feedback form to submit your thoughts on the recommendations provided.

## API Endpoints

### Recommendations

- **Endpoint:** `/api/recommendations`
- **Method:** `POST`
- **Request Body:**
```json
{
"patient_id": "string"
}
```
- **Response:**
```json
[
{
"medication": "string",
"reason": "string",
"dosage": "string"
}
]
```

### Feedback

- **Endpoint:** `/api/feedback`
- **Method:** `POST`
- **Request Body:**
```json
{
"patient_id": "string",
"feedback": "string"
}
```
- **Response:**
```json
{
"message": "Feedback submitted successfully"
}
```

### Sentiment Analysis

- **Endpoint:** `/api/sentiment`
- **Method:** `POST`
- **Request Body:**
```json
{
"review_text": "string"
}
```
- **Response:**
```json
{
"sentiment": "positive" | "negative"
}
```

## Future Enhancements

- Integration of real-time patient monitoring data to refine recommendations.
- Expansion of the model to include additional therapeutic areas and medication classes.
- Development of a mobile application for on-the-go access to recommendations and patient data.

## Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgments

- [Flask](https://flask.palletsprojects.com/)
- [React](https://reactjs.org/)
- [SMART on FHIR](https://smarthealthit.org/) for providing a framework for integrating with EHR systems.
- [Scikit-learn](https://scikit-learn.org/) for machine learning capabilities.
- [PostgreSQL](https://www.postgresql.org/) or [MongoDB](https://www.mongodb.com/) for database management.
- All contributors and supporters of the project.

## Contact

For any inquiries or feedback, please reach out to the project maintainer at [kosasihg88@gmail.com].