Supported Resources
OmniEHR supports the following FHIR R4 resources:Patient
Demographics, identifiers, contact information
Observation
Vital signs, lab results, clinical measurements
Condition
Diagnoses, problems, health concerns
AllergyIntolerance
Allergies, intolerances, adverse reactions
MedicationRequest
Prescriptions, medication orders
Encounter
Clinical visits, episodes of care
Appointment
Scheduled appointments, bookings
Task
Care coordination, workflows, assignments
FHIR Capability Statement
OmniEHR exposes a FHIR CapabilityStatement at/api/fhir/metadata:
CapabilityStatement
Resource Details
Patient
Patient demographics and administrative information.Observation
Clinical observations including vital signs, lab results, and measurements.Condition
Diagnoses, problems, and health concerns.Example Condition
AllergyIntolerance
Allergies and adverse reactions.Example AllergyIntolerance
MedicationRequest
Prescription and medication orders.Example MedicationRequest
Encounter
Clinical visits and episodes of care.Example Encounter
Appointment
Scheduled appointments with slot-based booking.Example Appointment
- 15-minute slots only
- Monday-Saturday, 09:00-12:00
- Conflict detection enforced
Task
Care coordination tasks and workflows.Example Task
- Care coordination
- Medication reconciliation
- Lab follow-up
- Preventive screening
- Discharge outreach
- Referral management
Search Parameters
OmniEHR supports the following search parameters:Patient Search
Resource-Specific Search
- By Patient
- By Date Range
- By Practitioner
- By Status
Bundle Responses
All search operations return FHIR Bundle resources:Searchset Bundle
Database Models
All FHIR resources are stored in MongoDB with indexed fields for efficient querying:Patient Model Indexes
Patient Model Indexes
Appointment Model Indexes
Appointment Model Indexes
Task Model Indexes
Task Model Indexes
FHIR Mapper Service
OmniEHR includes a comprehensive FHIR mapper service to convert between FHIR resources and database documents:fhirMapper.js
Validation
All resources are validated using Zod schemas before persistence:validation.js
Next Steps
Patient Management
Learn about patient registry and demographics
Scheduling
Explore appointment scheduling system
Clinical Workflows
View task management and care coordination
API Reference
Complete API documentation