Retrieves the collection of Observation resources.
const url = 'http://api.probatix.localhost/v1/observations?page=1&sort%5Bid%5D=asc&sort%5Bloinc%5D=asc&XDEBUG_SESSION=PHPSTORM';const options = { method: 'GET', headers: {'accept-language': 'de', 'X-API-TOKEN': '<X-API-TOKEN>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://api.probatix.localhost/v1/observations?page=1&sort%5Bid%5D=asc&sort%5Bloinc%5D=asc&XDEBUG_SESSION=PHPSTORM' \ --header 'X-API-TOKEN: <X-API-TOKEN>' \ --header 'accept-language: de'Retrieves the collection of Observation resources.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Language for Errors and Translatable properties
Example
deQuery Parameters
Section titled “Query Parameters”The collection page number
Return resources with createdAt greater than the given timestamp.
Return resources with createdAt greater than or equal to the given timestamp.
Return resources with createdAt less than the given timestamp.
Return resources with createdAt less than or equal to the given timestamp.
Filter by whether the interpretation exists.
Filter by whether the unit exists.
Filter by identifier, IRI, or canonical identifier.
Observation sort[id]
Observation sort[loinc]
Filter by identifier, IRI, or canonical identifier.
Xdebug session for debugging
Example
?XDEBUG_SESSION=PHPSTORMResponses
Section titled “Responses”Observation collection
object
IRI of the parent test result.
LOINC code of the reported analyte.
Raw value as reported by the laboratory. The API exposes it as a string to preserve the original representation. Clients should not assume the value is always safely parseable as a number.
Measurement unit when the laboratory provides one.
object
Reference intervals for the observation. Each interval may define a lower and/or upper boundary and can optionally provide a human-readable label such as negative or positive.
object
Optional human-readable label for the interval, for example negative or positive.
Laboratory interpretation, for example positive or negative.
Free-text notes supplied alongside the observation.
Timestamp when the observation was created.
Example
[ { "testResult": "/v1/test_results/00112233-4455-6677-8899-aabbccddeeff", "loincNum": "2570-0", "value": "5.5", "unit": "µg/g", "referenceRange": { "intervals": [ { "label": "negative", "lower": null, "upper": { "operator": "<=", "value": 5.5 } }, { "label": "positive", "lower": { "operator": ">", "value": 5.5 }, "upper": null } ] }, "interpretation": "negative", "labNotes": [ "Kein Hinweis auf okkultes Blut im Stuhl." ] }]Observation.jsonld collection.
object
object
object
object
object
IRI of the parent test result.
LOINC code of the reported analyte.
Raw value as reported by the laboratory. The API exposes it as a string to preserve the original representation. Clients should not assume the value is always safely parseable as a number.
Measurement unit when the laboratory provides one.
object
Reference intervals for the observation. Each interval may define a lower and/or upper boundary and can optionally provide a human-readable label such as negative or positive.
object
Optional human-readable label for the interval, for example negative or positive.
Laboratory interpretation, for example positive or negative.
Free-text notes supplied alongside the observation.
Timestamp when the observation was created.
Example
{ "view": { "@id": "string", "@type": "string", "first": "string", "last": "string", "previous": "string", "next": "string" }, "member": [ { "@context": { "hydra": "http://www.w3.org/ns/hydra/core#" }, "testResult": "/v1/test_results/00112233-4455-6677-8899-aabbccddeeff", "loincNum": "2570-0", "value": "5.5", "unit": "µg/g", "referenceRange": { "intervals": [ { "label": "negative", "lower": null, "upper": { "operator": "<=", "value": 5.5 } }, { "label": "positive", "lower": { "operator": ">", "value": 5.5 }, "upper": null } ] }, "interpretation": "negative", "labNotes": [ "Kein Hinweis auf okkultes Blut im Stuhl." ] } ]}Unauthorized
A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "@context": { "hydra": "http://www.w3.org/ns/hydra/core#" }, "status": 400}A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "status": 400}A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "status": 400}Forbidden
A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "@context": { "hydra": "http://www.w3.org/ns/hydra/core#" }, "status": 400}A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "status": 400}A representation of common errors.
object
A short, human-readable summary of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
A URI reference that identifies the problem type
Example
{ "status": 400}