Probatix Documentation
Probatix Diagnostics API v1

Activate a diagnostic test

Activates the DiagnosticTest for the provided specimen code. If the specimen already exists on the test it is updated, otherwise it is created during activation.

POST
/v1/diagnostic_tests/{id}/activate

Activates the DiagnosticTest for the provided specimen code. If the specimen already exists on the test it is updated, otherwise it is created during activation.

X-API-TOKEN<token>

In: header

Path Parameters

id*string (uuid)

DiagnosticTestActivateInput identifier

Header Parameters

accept-language?string

Language for Errors and Translatable properties

Allowed values: "de", "en", "fr"

Request Body

The new DiagnosticTestActivateInput resource

TypeScript Definitions

Use the request body type in TypeScript.

body*DiagnosticTestActivateInput
id?string (uuid)
specimenCode*string

Laboratory specimen code or sample identifier.

collectionDate*string (date)

Date when the specimen was collected.

collectionTime*string

Time of day when the specimen was collected.

menstrualPhaseAtCollection?string | null

Optional menstrual phase reported at collection time, when applicable.

Allowed values: "follikel", "ovulation", "luteal", "menopause", null

gender*string

Patient gender.

Allowed values: "M", "F", "D", "X"

dateOfBirth*string (date)

Patient date of birth.

healthInsuranceDetails?HealthInsuranceDetails | null
countryCode?string | null
provider?string | null
healthInsuranceTypeDE?string | null

Allowed values: "GKV", "PKV", null

subscriberIdentifier?string | null

The insurer assigned ID for the Subscriber.

Response Body

curl -X POST "https://example.com/v1/diagnostic_tests/497f6eca-6276-4993-bfeb-53cbbbba6f08/activate" \  -H "accept-language: de" \  -H "Content-Type: application/json" \  -d '{    "specimenCode": "string",    "collectionDate": "2019-08-24",    "collectionTime": "string",    "gender": "M",    "dateOfBirth": "2019-08-24"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "diagnosticOrder": "/entity/1",  "diagnosticProduct": "/entity/1",  "testResults": [    "/entity/1"  ],  "patient": {    "email": "user@example.com",    "firstName": "string",    "lastName": "string",    "gender": "M",    "dateOfBirth": "2019-08-24",    "healthInsuranceDetails": {      "countryCode": "string",      "provider": "string",      "healthInsuranceTypeDE": "GKV",      "subscriberIdentifier": "string"    }  },  "specimens": [    {      "specimenCode": "string",      "createdAt": "2019-08-24T14:15:22Z",      "collectionDate": "2019-08-24",      "collectionTime": "string",      "menstrualPhaseAtCollection": "follikel"    }  ],  "shipmentTracking": {    "provider": "DHL",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "trackingCode": "string",    "url": "string",    "shipmentStatus": "confirmed",    "providerStatus": "string",    "rawProviderHistory": [      "string"    ]  },  "activatedAt": "2019-08-24T14:15:22Z",  "labIntakeAt": "2019-08-24T14:15:22Z",  "replacementDiagnosticTest": "/entity/1",  "replacesDiagnosticTest": "/entity/1",  "canceledAt": "2019-08-24T14:15:22Z",  "completedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}