Retrieves a TestResult resource.
const url = 'http://api.probatix.localhost/v1/test_results/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?XDEBUG_SESSION=PHPSTORM' \ --header 'X-API-TOKEN: <X-API-TOKEN>' \ --header 'accept-language: de'Retrieves a TestResult resource.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”TestResult identifier
Header Parameters
Section titled “Header Parameters”Language for Errors and Translatable properties
Example
deQuery Parameters
Section titled “Query Parameters”Xdebug session for debugging
Example
?XDEBUG_SESSION=PHPSTORMResponses
Section titled “Responses”TestResult resource
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 } ]}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
{ "@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}Not found
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}