Samples/Results

Samples are where results are stored

Create a sample

POST https://api.daslab.app/samples

These will be attached to an appointment and a patient

Path Parameters

NameTypeDescription

string

Headers

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

barcode2

string

Required for pooled testing

barcode

string

Required for test, unique

resultId

number

You can get this from the appointment, combination of a patient and appointment

appointmentId

number

data

object

Covid Test { "swabType": "", "result": "negative", } Vaccination { "brand": "Moderna", "dose": "1", "batch": "AA1234" }

Get a sample

GET https://api.daslab.app/samples/:id

Useful to fetch when a webhook event happens.

Path Parameters

NameTypeDescription

string

Headers

NameTypeDescription

x-api-key

string

{
    "id": 123,
    "resultId": 123,
    "productId": 123,
    "locationId": 123,
    "createdAtLocationId": 123,
    "status": "completed",
    "data": {
        "swabType": "nazal",
        "result": "negative"
    },
    "createdAt": "2021-05-20T15:55:24.616Z",
    "updatedAt": "2021-05-20T16:12:22.200Z"
}

Get samples / Orders

GET https://api.daslab.app/locations/:id/samples

This method can be used by labs to view the list of samples for which results need to be submitted. Don't forget it is paginated!

Path Parameters

NameTypeDescription

id

number

Location ID

Headers

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

offset

number

For pagination, since results are returned 20 at a time

status

string

Can be 'new' or 'slow' for samples without results or samples that have more than 24hours that also do not have a result.

Post a results

POST https://api.daslab.app/results

The method allows to post a result to DasLab without having a DasLab Id, just using the sampleBarcode

Headers

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

locationId

number

Since lab Orgs can have multiple locations, you can find this in the url of your dashboard /labs/1000 for example

samplePatientBirthdate

string

sampleBarcodeFormat

string

sampleBarcode

string

sampleResult

string

Can be positive, negative, pool-positive or inconclusive for COVID-19 tests. For value for other tests refer here.

sampleInternalNote

string

Internal note

sampleNote

string

This one will do out to the customer

{
    "success": 1,
    "error": 0,
    "errorMessage": ""
}

Last updated