
Diagnostics as a Service is a way for a health product to sell blood tests under its own brand, while a provider runs the kits, the blood draws, the courier and the laboratory behind it. The product talks to that provider through an API, which is a connection that lets its own software book a draw, send a kit and read the result.
Between the order and the result, somebody collects a sample and a courier carries it to a laboratory for analysis. At each of those steps your product sees a different status, and at some of them a sample can fail, so a product that sells testing needs to know the whole path before it promises a customer a date.
Most of the order lifecycles we found published by lab testing APIs were written for American networks. Two examples are the lab testing API that Junction offers throughout the US1 and the Lab Connect service that InsideTracker runs for the US and Canada2. A European product works with a different set of parts, which are a European laboratory, European couriers and health data handled under the GDPR.
Aniva's Partner API combines both ways of giving a sample in one integration, which are blood draws at over 25 locations in Germany3 and home kits such as the Tasso+, which Aniva supplies to businesses across Europe4. So one order model covers a customer who gives blood at a pharmacy in Germany and a customer who uses a kit at home in another EU country.
Every order passes through the same stages, from the booking and the collection of the sample to the courier, the laboratory and the result. The figure shows the status your product reads at each stage, first for a draw at a location and then for a home kit56.
The status your product reads at each step of an order.
The appointment and the home kit order each carry their own short status, while the courier and the laboratory are tracked on separate objects in the API. Each status stays simple that way, but your product reads three objects to describe one order to a customer.
A customer gives a sample in one of two ways, either at a pharmacy or practice in Aniva's network or at home with a kit. The laboratory order is placed at a different moment on each route, which changes what your product can still edit56.
| Question | At a location | At home with a kit |
|---|---|---|
| Where the sample is taken | At a pharmacy or practice in Aniva's network5 | At the customer's home6 |
| Who takes it | A healthcare professional at the location5 | The customer6 |
| Status before the sample | Pending, then confirmed5 | Pending, then dispatched6 |
| What places the laboratory order | Confirming the draw with the barcode of every tube7 | Activating the kit with the time of collection6 |
| What can still change | The time, the location and the panels can change until the draw is confirmed5 | Address and extra markers until the kit is dispatched, and the panel until activation if the new one fits the kit6 |
| If the sample fails | The appointment is cancelled with a reason, and a new one is booked5 | A replacement kit with a new code is sent6 |
Both routes end at the same results endpoint, so your product shows a result the same way whichever route the customer chose.
When a draw is confirmed, Aniva records the barcode of every tube and places the laboratory order. From then on the appointment cannot be moved or cancelled, and no panel can be added7.
A venous draw has one code printed on every tube, while a capillary draw at a pharmacy has one code for each small tube, called a microtainer, and each of those codes becomes its own laboratory order7. Because the step is final, a product should let staff check the tubes and the bill before they confirm, which the preview endpoint of the API lists for each appointment8.
Each parcel is a shipment in the API, whether it is a courier collection from a location to the laboratory or a kit on its way to or from a customer's home9. When Aniva packs a blood kit, it books two shipments at once, one to the customer and one back to the laboratory, so your product does not need to print a label.
Blood samples are carried under transport rules for biological samples, which the World Health Organization's transport guidance explains for every mode of transport10. At partner pharmacies, Aniva checks each evening which samples are ready and has them collected on the next working day by default11.
Aniva reads the carrier's tracking every ten minutes for GO! and every hour for DHL, and each shipment shows when its tracking was last updated9.
Most errors in laboratory testing happen before the sample is analysed. Reviews by Mario Plebani of the University of Padua put the share of errors that arise before analysis at 46 to 68.2 percent of all errors12. In a 2002 review he co-authored, the analysis itself accounted for 13 to 32 percent of errors across the studies examined13.
For a product that sells testing, this means most of the risk is in the parts of an order outside the laboratory, which are the collection, the labelling of the tube and the journey. Those are the steps where Aniva's API reports each tube code, each parcel and each laboratory order separately, so your product can tell a customer exactly which part went wrong.
In the results, each laboratory order has its own status, so one laboratory order can fail while another reports normally. A failed laboratory order is marked as a fault, and when Aniva sends the sample on to a second laboratory, that laboratory files its own entry beside the first14.
When a home kit cannot give a result, for example because the customer could not fill the tube, your product orders a replacement kit. The replacement carries a new code and re-runs only the markers you choose, while the first order keeps any results it already delivered6. A draw that has to be repeated is cancelled with a reason, such as "Failed. Repeat required", and your product books a new appointment5.
The laboratory reports results one at a time, so the overall status stays in progress until every laboratory order has closed. It then moves to completed, or to fault when none of the laboratory orders reported14. Because each result carries its own status, your product can show the first values while the rest are still in the laboratory.
A laboratory sometimes corrects a value after reporting it, and the result keeps the same id when that happens, so your product should update the stored value rather than add a second one14. Aniva also converts every value to one standard unit and one marker name, so the same marker can be compared across laboratories and over time, and it keeps the laboratory's own line beside it exactly as reported14.
Each result carries the reference range the laboratory measured it against, and Aniva's documentation names that range as the standard for reading the result14.
Aniva tells your server about each change with a webhook, which is a short message sent to an address you register. The message carries the id, the new status and the address to read the data from, but never lab values or personal data15.
Your server then reads the data with its own API key. Health data is a special category of personal data under Article 9 of the GDPR, so health data is copied to fewer places when the message holds none16.
Your endpoint has to answer within 15 seconds, and Aniva sends a results message within a few minutes of the last change15. So your product can update the customer's screen without asking the API for news every few minutes.
Most of the work on your side is turning these statuses into screens and messages your customers understand. The checklist below collects what Aniva's documentation asks a partner to handle51415.
What a partner builds on top of the Aniva Partner API.
The table gives the timings that Aniva publishes for each step, with the source for each one.
| Step | Time | Source |
|---|---|---|
| From a signed contract to the first draw | 48 hours | 17 |
| Booking a draw at an Aniva-operated location | At least 12 hours ahead | 5 |
| Collection of samples from a partner pharmacy | The next working day by default | 11 |
| Core panel analysis in the laboratory | 24 hours from sample pickup | 17 |
| Report after a draw at a partner pharmacy | Usually 3 to 5 days after the draw | 11 |
| Courier tracking update | Every 10 minutes for GO! and every hour for DHL | 9 |
| Webhook after a results change | Within a few minutes of the last change | 15 |
The time a home kit spends in the post depends on the customer's country, so these timings describe draws at locations.
Aniva supplies the kits, the draws, the courier and the laboratory, while your product handles everything the customer sees. The table shows who does each part of an order.
| Part of the order | Aniva | Your product |
|---|---|---|
| Collection | Supplies the kits and tubes, with blood draws at over 25 locations in Germany3 | Lets the customer choose a location and a time, or a home kit |
| Courier | Arranges sample pickups from partner pharmacies11 and books both parcels of every blood kit6 | Shows the customer where the kit or the sample is, if you choose to |
| Laboratory | Places the order with a laboratory partner accredited under ISO 1518917 | Chooses the panels and markers for each order |
| Results | Converts values to standard units and sends a webhook on every change1415 | Shows the results to the customer with the laboratory's reference range |
Aniva runs Diagnostics as a Service for health apps, telemedicine services, insurers and brands across Europe. The time from a signed contract to the first draw is 48 hours, and the Partner API documentation is public at docs.anivahealth.com17.
In a call of about 30 minutes we can walk through one order for a panel of your choice, from the booking to the result your product would read, which you can arrange when you book a demo.
It is a connection that lets your product book a blood draw, send a home kit and read the laboratory result from its own software. The provider runs the kits, the courier and the laboratory behind it.
It cannot, because confirming the draw places the laboratory order and fixes the panels. Before the draw, the time, the location and the panels can all still be changed.
Your product orders a replacement kit with a new code and chooses which markers the laboratory runs again. The first order keeps any results it already delivered.
A webhook carries only the id, the new status and the address to read the data from. Your server reads the results with its own API key in a separate request.
This article describes published documentation, studies and guidance about blood testing for partner businesses. It is general information and not medical or legal advice, and clinical decisions belong to a clinician.

Aniva handles the lab, the logistics and the report. You keep the patient relationship and your own branding.
Twenty minutes, and you will know whether it fits your setup.