GET /report/fhir/{id} — which returns the FHIR result together with
the report status and all issues. The identifier is the order’s accession/barcode or a numeric
sampleId, auto-detected; query aliases (?barcode= / ?sampleId=) work too.
FHIR R4 DiagnosticReport
The result is returned as a FHIR R4DiagnosticReport. The examples here are abridged; the full
result maps each HL7 element to standard FHIR (patient, specimen, observations with units / reference
ranges / interpretation, ordering provider). The report PDF is a link in presentedForm.url
(present only when the result is released), never an embedded blob.
Result content is returned for any ready report — including preliminary — not just finalized
ones, provided no report-blocking issue withholds access.
No polling on 404 — read the status
There is no bare “not-ready” 404. Unless you’re denied access,GET /report/fhir/{id} returns
200 with a valid report that always carries the status:
When nothing has finished at all, the response is a status shell carrying a synthetic
No Finished Test blocking issue plus per-report progress. When the result is withheld
(blocking issues or fail-closed) you still get status and issues; the conclusion explains why.
Read status together with the blocking-issue extensions rather than polling for a 404 to
disappear. A blocking issue can leave status unchanged at preliminary or final while
Observations, result references, and PDF links are withheld. Use the structured issue flags for
programmatic checks and conclusion to explain the restriction.
Webhooks notify you when a report is finalized or amended
(amendment notifications are WIP), without saying which report changed: fetch the accession again and replace the results you
stored. Issue changes also produce an event: when a blocking issue is resolved, fetch the report
again. Coming soon: a
reportReady reason once all
report-blocking issues are resolved and results are accessible.conclusion explains that result content is withheld, and the
urn:vibrant:order-canceled extension includes the cancellation flag and time. The top-level
DiagnosticReport.status: "cancelled" is terminal: stop waiting for or polling results, even if
per-report progress details still show a pending state. You do not need to wait for those details
to change or call Get orders to confirm
cancellation.
Status detail & issues
The portal-level detail rides inurn:vibrant:* FHIR extensions on the same response:
- Sample-level status + progress — the portal status string and report counts (e.g. 2 of 3
generated:
total_generated_report_count/total_report_count). - Per-report buckets — each report’s name and state (pending / awaiting samples / analyzing / processing / finished).
- Issues — every portal-visible issue and, separately, the report-blocking ones (which
withhold the result until resolved). Each carries
issue_name, type, comment, and ablocks_reportflag. Issue lists are always present ([]when empty).
Access & safety
Results are scoped to your account: an identifier that isn’t within your account’s access — or that doesn’t exist — returns the same404 (so existence isn’t leaked), never someone else’s data. The
report PDF is fetched the same way as any other request. Retrieving a report performs no charge and
no write.