Laboratory IntegrationGuide
Native REST & FHIR R4 orders and results
Implemented native REST and FHIR R4 order submission and result retrieval, guards, and current gating.
On this page
Status
Limitation
Generic execution remains gated. Source implementations and isolated protocol fixtures do not establish a deployed runtime, an approved installation or vendor certification. Any dedicated Sandbox profile requires its own current installation and runtime evidence; it does not enable another protocol or Production. Follow Installation validation & go-live for the applicable release gates.
REST interaction
- Order: one HTTPS request per transmission to the installation's configured endpoint. TLS certificate and hostname verification stay enabled; redirects are refused.
- Acknowledgement: only a response that matches the profile's success contract and echoes the expected correlation is treated as accepted. Anything else is a rejection or an ambiguous outcome.
- Results: retrieved by polling the configured result resource for the correlated order (see Result polling).
FHIR R4 interaction
- Before any order is sent, the server's CapabilityStatement must declare FHIR R4 and ServiceRequest create. Without it, the order is never submitted.
- Order bundles must reference a subject and specimen and carry identifiers; incomplete bundles are refused before transmission.
- Results are normalized from a DiagnosticReport bundle that references the expected ServiceRequest. Supported report states: final, corrected and amended; a report for a different ServiceRequest is refused.
- Not implemented: SMART backend-services token lifecycle, FHIR subscriptions/callbacks.
Duplicates, retries and ambiguous sends
- A send is ambiguous when the request may have reached the laboratory but no conclusive response was received. Ambiguous sends are never retried automatically; they surface as an exception for operator reconciliation.
- Gated native REST/FHIR treats unknown or refused post-send persistence as terminal for reconciliation. Legacy executable HTTPS/JSON retains classified retries, including a retryable refused sent-state write, and does not establish the same no-resend guarantee. Preserve the original identity and reconcile clinically uncertain sends.
- If the canonical record of an attempt cannot be written after a possible delivery, the adapter does not acknowledge, retry or report success.
- Cross-workspace or cross-environment dispatch is refused.
Connector capabilities decide what may run
An installation records, per laboratory and environment, which operations the laboratory's interface actually supports. Solia executes only those. For FHIR R4 that includes whether the server supports searching Patient by identifier; when it does not, Solia reuses a previously verified remote Patient link or creates one only when creation is explicitly approved. Unsupported search, $match, conditional create and transaction bundles are refused rather than attempted.
- REST/JSON: only the laboratory's documented fields are sent; an HTTP 201 means the request was received, not that the laboratory accepted the order.
- FHIR R4: Patient, Specimen and ServiceRequest are created in a recorded order; if any step's outcome is unknown, the chain is held for reconciliation.
- HL7 v2 over MLLP: AA is application acceptance; AE/AR are refusals; a commit-only CA is not acceptance.
- SFTP: a delivered file is pending until the laboratory's agreed acknowledgement or result arrives.
Important
Native REST, FHIR, HL7 v2 and SFTP execution is disabled in every hosted environment today. HTTPS/JSON using the Solia Lab Contract is the executable Sandbox path.