completed status.
Required scope: TEST_SESSIONS_SCHEDULE
Ensure panels are added
Before confirming, verify that all necessary test panels have been added to the appointment. You cannot add panels after confirmation.Review the Schedule an Appointment guide for instructions on attaching panels.Confirm the following before continuing:
- All required panels are attached to the appointment.
- The
profile_idandlocation_idon the appointment are correct. - The patient has completed the blood draw and the kit barcode is available.
Confirm the blood draw
Send a A successful request returns
POST request to /api/v1/appointments/{id}/confirm with the numeric barcode from the physical blood draw kit.200 OK:Verify appointment status
After confirmation, retrieve the appointment to verify its status has changed to Once the appointment shows
confirmed.status: "confirmed", the lab order pipeline has been triggered. When the lab finishes processing the sample and results are available, the status transitions to completed.What happens next
After confirmation, Aniva’s lab order pipeline takes over:- The kit barcode is matched to the physical sample at the lab.
- The panels attached to the appointment determine which tests are run.
- When results are ready, the appointment status moves to
completedand results are associated with the patient profile.
Error handling
| Status | Cause | Resolution |
|---|---|---|
400 Bad Request | The barcode is missing or contains non-numeric characters. | Check that you are passing the exact numeric barcode from the physical kit. |
403 Forbidden | Your API key is missing the TEST_SESSIONS_SCHEDULE scope. | Contact Aniva to confirm your key has the required scope. |
404 Not Found | The appointment ID does not exist or does not belong to your account. | Verify the appointment ID is correct. |