Skip to content

iberi22/OrionHealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

260 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

OrionHealth πŸ₯

Your Personal Health Data Sanctuary for the Future of Personalized Medicine

License: AGPL v3 Flutter CI Issues Last Commit Privacy First


πŸ“Š Project Status

0.8.0-beta β€” Flutter analyze: 0 issues β€’ 41/41 tests passing β€’ BLE medical sharing β€’ Real ML Kit OCR β€’ Drug Interaction Checker β€’ Risk Calculator (ASCVD+QDiabetes+HTN) β€’ GemmaLlmService with streaming β€’ VectorStore HiRAG re-ranking β€’ ReportGenerationService with Gemma/Gemini


🌟 Vision

OrionHealth is a privacy-first, local-first health assistant that enables individuals to own and control their complete health data history. Built with Flutter and powered by on-device AI, it creates a secure "Digital Health Sheet" that integrates medical records, sensor data (Apple HealthKit, Google Health Connect), and AI-powered insightsβ€”all without compromising your privacy.

Why This Matters

The Future of Medicine is Personal. And It Starts With Your Data.

Every diagnosis, prescription, lab result, and health measurement you've ever had contains invaluable information. Today, this data is fragmented across hospitals, clinics, and wearablesβ€”inaccessible when you need it most.

OrionHealth changes that by:

  1. Centralizing Your Health History: All your medical records, test results, prescriptions, and sensor data in one secure, portable app
  2. Preserving Privacy: Your data never leaves your device unencrypted. No cloud uploads, no third-party access
  3. Enabling Future Innovation: By maintaining a comprehensive, structured health timeline, you prepare your data for the next generation of AI-powered medical research

The Long-Term Goal: Democratizing Personalized Medicine

Today's medicine follows a "one-size-fits-all" approach. Tomorrow's medicine will be uniquely yours.

OrionHealth is designed to be the foundation for a future where:

  • Advanced LLMs (more powerful than today's models) can analyze your complete health history
  • Personalized treatment plans are generated based on your unique genetic profile, medical history, and lifestyle
  • Drug discovery accelerates through aggregated, anonymized health data donated by users
  • Clinical trials become more efficient by matching patients with relevant studies
  • Preventive medicine becomes predictive, catching issues before they become serious

By using OrionHealth today, you're not just organizing your health dataβ€”you're preparing for a future where that data could save your life or help develop treatments for others.


✨ Key Features

πŸ”’ Privacy & Security

  • 100% Local-First: All data stored on-device using Isar database
  • Zero Cloud Dependencies: Works completely offline
  • Encrypted Storage: Medical-grade data protection
  • No Tracking: No analytics, no telemetry, no third parties

πŸ“‹ Health Record Management

  • Document Ingestion: Upload PDFs, images, lab reports
  • OCR Integration: Automatic text extraction from medical documents
  • Structured Data: Convert unstructured records into queryable format
  • Sensor Integration: Sync with Apple HealthKit & Google Health Connect

πŸ€– On-Device AI Intelligence

  • Local LLM: Phi-3 Mini / Gemma 2B via ONNX Runtime
  • RAG (Retrieval Augmented Generation): Contextual health insights
  • Private Chat: Ask questions about your health history
  • Trend Analysis: AI-powered pattern recognition

πŸ“Š Insights & Reporting

  • Health Timeline: Visualize your complete medical journey
  • Statistical Dashboards: Track vitals, medications, symptoms
  • Export Reports: Generate summaries for doctors (PDF/CSV)
  • Weekly AI Summaries: Personalized health insights

πŸ“Έ Screenshots

Profile with Health Data Full User Profile Medical Records List AI Health Assistant Chat Health Dashboard Upload Documents Edit Profile Form Chat with AI Assistant Health Reports

πŸ“Έ Screenshots realistas generadas con flutter test integration_test/app_test.dart -d windows --update-goldens


πŸ—οΈ Architecture

OrionHealth follows local-first, privacy-centric architecture with three core pillars:

Local-First

All data is stored on-device using IsarDB. Zero data leaves the device unencrypted. Works fully offline.

RAG with MemoryGraph

On-device Retrieval-Augmented Generation using isar_agent_memory:

  • MemoryGraph β€” hybrid vector + knowledge graph for semantic health queries
  • Hierarchical RAG (HiRAG) β€” multi-layer summarization for complex medical reasoning
  • Hybrid Search β€” semantic vector + BM25 keyword via Reciprocal Rank Fusion

Offline Health Wallet

Secure local health record storage with AES-256-GCM encryption, PBKDF2 key derivation, and HKDF-structured key management.

Medical Standards

Built-in support for international medical coding standards:

  • ICD-10 β€” diagnosis codes
  • LOINC β€” lab test codes
  • RxNorm β€” medication codes
  • SNOMED CT β€” clinical terminology
lib/
β”œβ”€β”€ core/                   # Shared utilities, DI, theme
β”œβ”€β”€ features/
β”‚   β”œβ”€β”€ health_record/      # Medical history management
β”‚   β”œβ”€β”€ local_agent/        # AI chat & RAG
β”‚   β”œβ”€β”€ user_profile/       # User settings & preferences
β”‚   └── health_report/      # Analytics & export
packages/
β”œβ”€β”€ isar_agent_memory/      # Graph + Vector DB (RAG)
β”œβ”€β”€ health_wallet/          # Offline health records
└── medical_standards/      # ICD-10, LOINC, RxNorm, SNOMED
└── main.dart

Tech Stack

Layer Technology
Framework Flutter 3.x (Material Design 3)
State Management flutter_bloc + Cubit
Local Database IsarDB (NoSQL + vector embeddings)
AI Inference ONNX Runtime / AICore (Gemma 4)
Health Data health package (cross-platform)
DI get_it + injectable
Encryption AES-256-GCM, PBKDF2, HKDF
Bluetooth Sharing flutter_blue_plus

πŸš€ Quick Start

git clone https://github.com/iberi22/OrionHealth.git
cd OrionHealth
flutter pub get
flutter run

First-Time Setup

  1. Create Your Profile: Enter basic health information
  2. Upload First Record: Add a medical document or lab result
  3. Connect Sensors (Optional): Sync Apple Health / Google Fit
  4. Download AI Model (Optional): Enable on-device chat assistant

πŸ§ͺ Tests E2E

Tests de integraciΓ³n con Golden Files (screenshots de referencia).

  • 10 tests E2E: NavegaciΓ³n principal, perfil, records, asistente IA, reportes, carga de archivos, formulario, chat, flujo completo
  • RegresiΓ³n visual: Detecta cambios no intencionales en la UI automΓ‘ticamente
flutter test integration_test/app_test.dart -d windows
flutter test integration_test/app_test.dart -d windows --update-goldens  # actualizar referencias

MΓ‘s detalle en integration_test/README.md.

πŸ“– Documentation

πŸ› οΈ Support & Feedback

We use an automated system to handle community feedback efficiently:

  • Telegram Bot: Send messages to our bot to report bugs or request features.
  • GitHub Issues: All reports are automatically converted into GitHub Issues for transparency.

🀝 Contributing

OrionHealth is open source and free forever. We believe health data ownership should be accessible to everyone.

However, this project is licensed under AGPL-3.0 to ensure it remains non-commercial:

  • βœ… Use it freely: Personal, research, educational purposes
  • βœ… Modify & improve: Fork, customize, enhance
  • βœ… Share your changes: Contribute back to the community
  • ❌ No commercial use: You cannot sell this app or use it in paid services without releasing your code under AGPL-3.0

Why AGPL? We want to prevent companies from taking this code, adding proprietary features, and charging for health data management. Your health data should always be free and under your control.

See LICENSE for full details.


🌍 The Bigger Picture: Open Health Data for Research

OrionHealth is designed with a future vision:

Phase 1 (Today): Individual users collect and own their health data Phase 2 (Near Future): Optional anonymized data donation for research Phase 3 (Long-Term): Federated learning across user datasets to train medical AI Phase 4 (Ultimate Goal): Personalized drug discovery and treatment optimization powered by advanced LLMs

By structuring your health data in OrionHealth's format today, you're preparing for a future where AI can:

  • Predict disease risk based on your unique genetic and lifestyle factors
  • Recommend personalized treatments with higher efficacy
  • Identify adverse drug interactions specific to your medical history
  • Accelerate clinical trials by matching you with relevant studies

Your data, your choice. But together, we can transform medicine.


πŸ“œ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

TL;DR:

  • Free to use, modify, and distribute
  • Must remain open source (copyleft)
  • Cannot be commercialized without releasing source code
  • If you run a modified version as a web service, you must share the code

See LICENSE for full terms.


πŸ’¬ Community & Support


πŸ™ Acknowledgments

Built with:

Special thanks to the open-source health tech community for making privacy-first healthcare tools possible.


⚠️ Medical Disclaimer: OrionHealth is a personal health data management tool, not a medical device. It does not provide medical advice, diagnosis, or treatment. Always consult qualified healthcare professionals for medical decisions.

About

Beta under dev Experimental

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors