health-md-standard

EIR Format - Open Standard for LLM-Optimized Healthcare Data

EIR Format Logo

GitHub Website License MCP

Version 1.0 Website Specification Examples MCP Server

Named after Eir, the Norse goddess of healing and medicine

🎯 Mission

Healthcare data is complex, sensitive, and crucial. EIR Format defines an open YAML-based standard for structuring healthcare information optimized for Large Language Models while preserving privacy, accuracy, and clinical context.

πŸš€ Why Health.md?

πŸ“‹ Quick Example

# Health Record - Anonymous Patient 001

## Demographics
- Age: 34
- Sex: Female  
- Occupation: Software Engineer

## Current Medications
### Metformin 500mg
- **Indication:** Type 2 Diabetes Mellitus
- **Dosage:** 500mg twice daily with meals
- **Started:** 2024-01-15
- **Prescriber:** Dr. Smith (Endocrinology)
- **Notes:** Well tolerated, no gastrointestinal issues

## Lab Results
### Hemoglobin A1C
- **Date:** 2024-02-10
- **Value:** 6.8%
- **Reference:** <7.0% (target for diabetes)
- **Trend:** ↓ from 8.2% (2023-12-01)
- **Clinical Significance:** Improving glycemic control

## Clinical Timeline
### 2024-01-15: Initial Diabetes Diagnosis
- **HbA1c:** 8.2%
- **Fasting Glucose:** 180 mg/dL  
- **Action:** Started Metformin 500mg BID
- **Goals:** HbA1c <7%, weight loss 5-10%

πŸ› οΈ Features

πŸ“– Specification

The complete specification is available in SPEC.md. Key sections include:

πŸ”§ Parser & Tools

pip install health-md

from health_md import HealthRecord

# Parse a health.md file
record = HealthRecord.from_file('patient-001.health.md')

# Extract key information
medications = record.get_current_medications()
recent_labs = record.get_labs(days=30)
timeline = record.get_clinical_timeline()

# Generate LLM-optimized summary
summary = record.to_llm_context()

🌍 Use Cases

🀝 Contributing

We welcome contributions from:

See CONTRIBUTING.md for guidelines.

πŸ“Š Adoption

Organizations using Health.md:

πŸ“„ License

MIT License - See LICENSE

πŸ† Team

Created by:

Special Thanks:


Healthcare data deserves better standards. Let’s build them together. πŸ₯πŸ’™