Skip to content

Retrieves the collection of DiagnosticTest resources.

GET
/v1/diagnostic_tests
curl --request GET \
--url 'http://api.probatix.localhost/v1/diagnostic_tests?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 DiagnosticTest resources.

accept-language
string
Allowed values: de en fr

Language for Errors and Translatable properties

Example
de
page
integer
default: 1 >= 1

The collection page number

activatedAt[gt]
string

Return resources with activatedAt greater than the given timestamp.

activatedAt[gte]
string

Return resources with activatedAt greater than or equal to the given timestamp.

activatedAt[lt]
string

Return resources with activatedAt less than the given timestamp.

activatedAt[lte]
string

Return resources with activatedAt less than or equal to the given timestamp.

createdAt[gt]
string

Return resources with createdAt greater than the given timestamp.

createdAt[gte]
string

Return resources with createdAt greater than or equal to the given timestamp.

createdAt[lt]
string

Return resources with createdAt less than the given timestamp.

createdAt[lte]
string

Return resources with createdAt less than or equal to the given timestamp.

diagnosticOrder[]
Array<string>

Filter by identifier, IRI, or canonical identifier.

diagnosticProduct[]
Array<string>

Filter by identifier, IRI, or canonical identifier.

diagnosticTest[]
Array<string>

Filter by identifier, IRI, or canonical identifier.

exists[activatedAt]
boolean

Filter by whether the activated at exists.

exists[labIntakeAt]
boolean

Filter by whether the lab intake at exists.

labIntakeAt[gt]
string

Return resources with labIntakeAt greater than the given timestamp.

labIntakeAt[gte]
string

Return resources with labIntakeAt greater than or equal to the given timestamp.

labIntakeAt[lt]
string

Return resources with labIntakeAt less than the given timestamp.

labIntakeAt[lte]
string

Return resources with labIntakeAt less than or equal to the given timestamp.

patient.dateOfBirth[]
Array<string>

Exact match on the patient date of birth.

patient.gender[]
Array<string>
Allowed values: M F D X

Exact match on one or more patient gender values.

search[patient.email][]
Array<string>

Case-insensitive partial match on the patient email.

search[patient.firstName][]
Array<string>

Case-insensitive partial match on the patient first name.

search[patient.lastName][]
Array<string>

Case-insensitive partial match on the patient last name.

sort[createdAt]
string
Allowed values: asc desc ASC DESC

DiagnosticTest sort[createdAt]

sort[id]
string
Allowed values: asc desc ASC DESC

DiagnosticTest sort[id]

testResult[]
Array<string>

Filter by identifier, IRI, or canonical identifier.

XDEBUG_SESSION
string
default: PHPSTORM

Xdebug session for debugging

Example
?XDEBUG_SESSION=PHPSTORM

DiagnosticTest collection

Array<object>
object
id
required
string format: uuid
diagnosticOrder
required

IRI of the parent diagnostic order.

string format: iri-reference
diagnosticProduct
required

IRI of the DiagnosticProduct that was ordered for this test.

string format: iri-reference
testResults

IRIs of linked test results, sorted by createdAt. In most patient-facing use cases, the most recent test result is the relevant one. Older results are included for transparency and historical records.

Array<string>
patient
Any of:
object
email
string format: email
firstName
string | null
lastName
string | null
gender
string
default: X
Allowed values: M F D X
dateOfBirth
string format: date
healthInsuranceDetails
Any of:
object
countryCode
string | null
provider
string | null
healthInsuranceTypeDE
string | null
Allowed values: GKV PKV
subscriberIdentifier

The insurer assigned ID for the Subscriber.

string | null
specimens
Array<object>
object
specimenCode
required

Laboratory specimen code or sample identifier.

string
createdAt
required

Timestamp when the specimen record was created.

string format: date-time
collectionDate

Date when the specimen was collected.

string format: date
collectionTime

Time of day when the specimen was collected.

string
/^\d{2}:\d{2}:\d{2}$/
menstrualPhaseAtCollection

Menstrual phase reported at collection time, when applicable.

string | null
Allowed values: follikel ovulation luteal menopause
shipmentTracking
Any of:
object
provider
required
string
Allowed values: DHL Swiss Post OTHER
createdAt
required

Timestamp when the shipment was created.

string format: date-time
updatedAt
required

Timestamp when the shipment was last updated.

string format: date-time
trackingCode
string | null
url
string format: url
shipmentStatus

Normalized shipment status for informational purposes only.

string | null
Allowed values: confirmed in_transit out_for_delivery delivered failure undeliverable returned_to_sender available_for_collection
providerStatus

Shipment status from the provider please note some Providers are not 100% reliable and will occasionally deliver shipments without status updates.

string | null
activatedAt

Timestamp when the patient activated the TestKit.

string | null format: date-time
labIntakeAt

Timestamp when the specimen arrived in the laboratory.

string | null format: date-time
createdAt
required

Timestamp when the DiagnosticTest was created.

string format: date-time
Example
[
{
"diagnosticOrder": "/v1/diagnostic_orders/00112233-4455-6677-8899-aabbccddeeff",
"diagnosticProduct": "/v1/diagnostic_products/00112233-4455-6677-8899-aabbccddeeff",
"testResults": [
"/v1/test_results/00112233-4455-6677-8899-aabbccddeeff"
],
"patient": {
"email": "meron.nagy@probatix.de",
"firstName": "Jane",
"lastName": "Doe",
"gender": "M",
"dateOfBirth": "1994-01-15",
"healthInsuranceDetails": {
"countryCode": "DE",
"provider": "Example Insurance",
"healthInsuranceTypeDE": "GKV"
}
},
"specimens": [
{
"specimenCode": "ABC-123456",
"collectionDate": "2026-05-04",
"collectionTime": "13:50:00",
"menstrualPhaseAtCollection": "follikel"
}
],
"shipmentTracking": {
"provider": "DHL",
"trackingCode": "123",
"url": "https://www.dhl.de/en/privatkunden/dhl-sendungsverfolgung.html?piececode=123",
"shipmentStatus": "confirmed",
"providerStatus": {
"terminalStatus": true,
"name": "DELIVERED",
"value": "delivered"
}
},
"activatedAt": "2026-05-04T10:30:00+00:00",
"labIntakeAt": "2026-05-06T07:45:00+00:00"
}
]

Unauthorized

A representation of common errors.

object
@context
One of:
string
@id
required
string
@type
required
string
title

A short, human-readable summary of the problem.

string | null
detail

A human-readable explanation specific to this occurrence of the problem.

string | null
status
integer | null
default: 400
instance

A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

string | null
type

A URI reference that identifies the problem type

string
description
string | null
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
},
"status": 400
}

Forbidden

A representation of common errors.

object
@context
One of:
string
@id
required
string
@type
required
string
title

A short, human-readable summary of the problem.

string | null
detail

A human-readable explanation specific to this occurrence of the problem.

string | null
status
integer | null
default: 400
instance

A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

string | null
type

A URI reference that identifies the problem type

string
description
string | null
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
},
"status": 400
}