Retrieves the collection of TestResult resources.
const url = 'http://api.probatix.localhost/v1/test_results?page=1&sort%5BcreatedAt%5D=asc&sort%5Bid%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/test_results?page=1&sort%5BcreatedAt%5D=asc&sort%5Bid%5D=asc&XDEBUG_SESSION=PHPSTORM' \ --header 'X-API-TOKEN: <X-API-TOKEN>' \ --header 'accept-language: de'Retrieves the collection of TestResult 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 identifier, IRI, or canonical identifier.
Filter by identifier, IRI, or canonical identifier.
TestResult sort[createdAt]
TestResult sort[id]
Filter by identifier, IRI, or canonical identifier.
Xdebug session for debugging
Example
?XDEBUG_SESSION=PHPSTORMResponses
Section titled “Responses”TestResult collection
object
Timestamp when the test result was created.
Embedded observation objects. Unlike most relations in this API, observations are included inline for convenience.
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.
object
Relative download path for the binary document.
Document size in bytes.
Free-text laboratory notes attached to the test result.
Example
[ { "observations": [ { "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." ] } ], "documents": [ { "originalFileName": "example.pdf", "downloadPath": "/v1/documents/00112233-4455-6677-8899-aabbccddeeff/download", "mimeType": "application/pdf", "size": 630 } ] }]TestResult.jsonld collection.
object
object
object
object
object
Timestamp when the test result was created.
Embedded observation objects. Unlike most relations in this API, observations are included inline for convenience.
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.
object
Relative download path for the binary document.
Document size in bytes.
Free-text laboratory notes attached to the test result.
Example
{ "view": { "@id": "string", "@type": "string", "first": "string", "last": "string", "previous": "string", "next": "string" }, "member": [ { "@context": { "hydra": "http://www.w3.org/ns/hydra/core#" }, "observations": [ { "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." ] } ], "documents": [ { "originalFileName": "example.pdf", "downloadPath": "/v1/documents/00112233-4455-6677-8899-aabbccddeeff/download", "mimeType": "application/pdf", "size": 630 } ] } ]}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}