OpenELIS Global FHIR Implementation Guide - Local Development build (v0.2.2) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
OpenELIS includes a FHIR R4 REST server built on HAPI FHIR. It reads from and writes to the OpenELIS database directly, so what it returns is always current. The co-resident FHIR store is a separate server (see Home). The machine-readable description is the OpenELIS Global FHIR REST server CapabilityStatement.
| Access | Base URL |
|---|---|
| Through the bundled nginx proxy | https://{host}/api/OpenELIS-Global/fhir |
| Direct to Tomcat | https://{host}:8443/api/OpenELIS-Global/fhir |
GET {base}/metadata returns the server's generated CapabilityStatement. Like every other request, it needs
authentication.
Authorization: Basic ...). Create a
dedicated user for each integration.| Resource | Backed by | read | search | create | update | delete |
|---|---|---|---|---|---|---|
| Patient | Patient | yes | yes | yes | yes | FHIR store copy only (see below) |
| ServiceRequest | Analysis (one per ordered test) | yes | yes | yes | yes | soft (cancels the test) |
| DiagnosticReport | Analysis | yes | yes | no | no | soft (cancels the test) |
| Observation | Result | yes | yes | yes | yes | soft |
| Specimen | Sample item | yes | yes | yes | yes | soft (cancels the sample item) |
| Practitioner | Provider | yes | yes | yes | yes (name, telecom) | soft (active = false) |
| Organization | Organization | yes | yes | yes | yes (name, active, partOf) | soft (inactive) |
| Location | Storage room / device / shelf / rack / box | yes | yes | yes | yes | soft (inactive) |
| Device | Analyzer | yes | yes | yes | yes | soft (inactive) |
Task, SupplyDelivery, Questionnaire and QuestionnaireResponse are not served by this API. Read them from the co-resident FHIR store.
Not supported: vread, history, patch, conditional create / update / delete, batch and transaction, and operations.
_id, identifier, _lastUpdated, _count and _offset. Other parameters, and the
supported _include / _revinclude values, are listed per resource in the
CapabilityStatement.Bundle.total is populated._sort is not supported. Results come back in a stable server order (database insertion order).400 Bad Request and an
OperationOutcome naming it, instead of being ignored. This covers unknown parameters, _sort, chained
parameters, unsupported modifiers (such as :missing), a code outside a required value set (for example
gender), a reference to the wrong resource type or with no id, and a negative _count or _offset. Empty
values are ignored. Send Prefer: handling=lenient to have such parameters dropped instead.:exact and :contains are supported.patient and subject are interchangeable on ServiceRequest, Specimen, Observation and DiagnosticReport.Useful searches:
GET {base}/Patient?identifier=http://openelis-global.org/pat_nationalId|NID-000-123-456
GET {base}/Specimen?accession=EDH26000000417-1&_include=Specimen:patient
GET {base}/ServiceRequest?patient=Patient/{id}&_revinclude=DiagnosticReport:based-on
GET {base}/Observation?based-on=ServiceRequest/{id}&status=final
GET {base}/DiagnosticReport?patient=Patient/{id}&issued=ge2026-09-01&_include=DiagnosticReport:result
GET {base}/Location?_tag=http://openelis.org/fhir/tag/storage-hierarchy|device&_include=Location:partof
400.DELETE cancels or deactivates the record. A later GET still returns it (200, not 410), with
the cancelled or inactive status.subject (an existing Patient), code, and specimen (an existing
Specimen, which supplies the lab number and sample item).PUT of a resource exactly as it was read changes nothing. An edit changes only the fields it
touches. A ServiceRequest update cannot change the test (422), and an unknown code or requester, or a location
that is not a referring site, is refused with 422.active = false.Gaps between this behaviour and the FHIR specification are tracked on Known Issues.