Skip to main content

FHIR-First Standard — Ghasi EHR (Normative)

Scope: Rules for how ALL modules use HL7 FHIR as the canonical domain model and API surface.
Authority: Normative. Module specs may narrow but never contradict.


1. Definition

FHIR-first means:

  • FHIR R4+ resources are the canonical clinical meaning and exchange model for in-scope data.
  • A FHIR R4 server (via fhir-gateway) is the primary interoperability surface.
  • Internal REST endpoints are permitted for product UX but MUST map cleanly to FHIR — no competing "shadow" clinical data model.
  • Non-FHIR standards are supported only via adapters.

2. FHIR Version & Conformance

  • Minimum: FHIR R4
  • Platform publishes a CapabilityStatement for the overall server.
  • Profiles declared as StructureDefinition, ValueSet, CodeSystem where applicable.
  • Write validation against base resource rules + declared profile constraints.

3. Canonical Data Rules

RuleDetail
Single source of truthFHIR resources for clinical content
Local tables allowed forPerformance indices, workflow orchestration, adapter payloads, non-clinical config
ReferencesStable identifiers; no sequential DB IDs leaked; FHIR identifier arrays with system
ProvenanceClinically meaningful changes emit Provenance; corrections use versioning/status patterns
TerminologiesCoding with system + code + optional display

4. Resource Ownership Map (MVP2)

Resource TypeOwner ServiceNotes
Patient, Encounter, RelatedPersonRegistrationADT updates via interop engine
Appointment, Schedule, SlotSchedulingPortal requests write here
Practitioner, PractitionerRole, Organization, EndpointProvider Directory
LocationFacility
AllergyIntoleranceAllergies
ConditionProblem List
Observation (vital-signs)VitalsCategory vital-signs
MedicationRequest, MedicationAdministrationMedication Management
ServiceRequestOrders/CPOELab/rad ordering
DiagnosticReportResultsLab/imaging; category distinguishes
Observation (laboratory)Results via LIS
SpecimenLaboratory/LIS
ImagingStudyRadiology/PACS (radiology-pacs serves /fhir/R4/ImagingStudy; fhir-gateway routes via RADIOLOGY_URL)Pixel data in PACS; chart-facing filed imaging summaries use DiagnosticReport in Results per module boundary
Immunization, ImmunizationRecommendationImmunizations
CarePlan, Goal, TaskCare Plans
CommunicationMessaging
DocumentReferenceDocument ManagementPDF/scanned chart documents; metadata and links to Binary; CDA exchange maps here per §5
BinaryDocument ManagementDocument bytes (e.g. application/pdf); object storage behind FHIR reference
CompositionDocument Management (optional)Structured multi-section reports when used; otherwise narrative remains clinical-notes
Financial (Account, ChargeItem, Invoice, Claim, Coverage, etc.)Billing/Insurance/Claims

5. Non-FHIR Standards (Adapter-Only)

StandardHandling
HL7 v2 (ADT/ORM/ORU/SIU)Via hl7v2-interop; mapped to canonical FHIR resources
CDA/CCD/C-CDADocument import/export via DocumentReference
DICOM/DICOMwebImaging payloads; metadata as FHIR ImagingStudy
X12 / payer exchangesAdapter-driven; canonical via FHIR financial resources

6. Module Conformance Requirements

Each module's spec MUST declare:

  1. Canonical FHIR resources for that module
  2. Required search parameters and write interactions
  3. How non-FHIR payloads map to canonical FHIR
  4. Any intentional non-FHIR-only areas (with justification)