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

Headers

Request Body

Get a sample

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

Useful to fetch when a webhook event happens.

Path Parameters

Headers

{
    "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

Headers

Request Body

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

Request Body

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

Last updated