Expand Observation SampledData to a {t,v} time-series
GET
/fhir/Observation/{id}GET
/fhir/R4/Observation/{id}GET
/fhir/R5/Observation/{id}dev
https://api.sandbox.ovok.comCustom operation on Observation/:id. Set ?asTimeseries=true to get a JSON time-series instead of the raw FHIR resource. Useful for plotting Observations whose values are stored as valueSampledData (ECG traces, accelerometer streams, contiguous vital-sign batches). Requests without the flag pass through to the standard FHIR GET.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | FHIR Observation id. The resource must carry valueSampledData (top-level or in a component[]) for the timeseries expansion to succeed. |
asTimeseries | query | — | no | Set to true to expand the Observation's SampledData into a JSON {t, v} time-series. Omit or set to anything else to pass through to the standard FHIR GET-by-id. |
Responses
| Code | Description |
|---|---|
200 | Success. |
400 | The request could not be operated by the server. |
401 | The resource owner or authorization server denied the request. |
404 | The requested resource could not be found. |
422 | The request could not be validated by the server. |
500 | The server encountered an unexpected condition. Please try again later. |
200 → ObservationTimeseriesResponseDto (application/json)
Expanded {timestamp, value} view of an Observation's SampledData. Returned when GET Observation/:id is called with ?asTimeseries=true. One entry per (component × dimension) combination; the root SampledData (if any) emits one entry with code=null.
observationId:string(required)effectiveStart:string(required) — ISO-8601 anchor for the first sample (t0).periodMs:number(required) — Milliseconds between consecutive samples.series:object[](required)code:string(required) — For component-bearing Observations the component primary code (LOINC etc.). Null for series taken from the root SampledData.unit:string(required) — Display unit from SampledData.origin.unit.origin:number(required) — Base value (data points are added to this after factor scaling).dimension:integer(required) — Which interleaved dimension this series represents. 0..dimensions-1.count:integer(required)points:object[](required)