Your Personal Health Data Sanctuary for the Future of Personalized Medicine
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
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.
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:
- Centralizing Your Health History: All your medical records, test results, prescriptions, and sensor data in one secure, portable app
- Preserving Privacy: Your data never leaves your device unencrypted. No cloud uploads, no third-party access
- Enabling Future Innovation: By maintaining a comprehensive, structured health timeline, you prepare your data for the next generation of AI-powered medical research
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.
- 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
- 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
- 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
- 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 realistas generadas con
flutter test integration_test/app_test.dart -d windows --update-goldens
OrionHealth follows local-first, privacy-centric architecture with three core pillars:
All data is stored on-device using IsarDB. Zero data leaves the device unencrypted. Works fully offline.
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
Secure local health record storage with AES-256-GCM encryption, PBKDF2 key derivation, and HKDF-structured key management.
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
| 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 |
git clone https://github.com/iberi22/OrionHealth.git
cd OrionHealth
flutter pub get
flutter run- Create Your Profile: Enter basic health information
- Upload First Record: Add a medical document or lab result
- Connect Sensors (Optional): Sync Apple Health / Google Fit
- Download AI Model (Optional): Enable on-device chat assistant
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 referenciasMΓ‘s detalle en integration_test/README.md.
- docs/rag-architecture-review.md: RAG pipeline deep-dive
- docs/aicore-status.md: AICore plugin implementation guide
- docs/improvements-extraction.md: UI/UX mejoras detectadas
- docs/api/index.md: API documentation index
- docs/dev-guide.md: Developer onboarding guide
- CONTRIBUTING.md: How to contribute
- CHANGELOG.md: Release history
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.
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.
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.
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.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Docs Site: GitHub Pages
Built with:
- Flutter - Google's UI toolkit
- Isar Database - Fast local storage
- ONNX Runtime - AI inference
- Health Package - Sensor integration
Special thanks to the open-source health tech community for making privacy-first healthcare tools possible.








