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
Name | Type | Description |
---|---|---|
string |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
string |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
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
Name | Type | Description |
---|---|---|
id | number | Location ID |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
x-api-key | string |
Request Body
Name | Type | Description |
---|---|---|
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 |
Last updated