Betterness
Bett-iDocsTutorialsAboutAugmented Wellness

Overview

Trust

Resources

System

Get Started

Clients

Recipes

Tools

Reference

DocsMCPToolsLab Orders

Lab Order Tools

Lifecycle: initialize, find a center, book, reschedule, cancel.

initializeLabOrder

Submits a "Paid" order to the lab. Profile must have gender, phone (with dial code), birth date, and complete home address.

ParameterRequired
labOrderExternalIdyes

Before calling: getProfile() to verify required fields. Use updateProfile to fix anything missing.

searchLabServiceCenters

Patient Service Centers near a ZIP, sorted by distance. Use after order reaches "Requisition Created".

ParameterRequiredNotes
zipCodeyes—
labOrderExternalIdyesDetermines which lab network to search
limitnoDefault 6
offsetnoPagination, default 0

Returns: centers array (each with siteCode, name, phone, address, distanceMiles, hours) plus pagination fields.

getServiceCenterSlots

Available appointment time slots at a center. Ask the user for date / time preference first so you can set startDate and rangeDays.

ParameterRequired
siteCodeyes (from searchLabServiceCenters)
labOrderExternalIdyes
timezoneyes (IANA, e.g. America/New_York)
startDateno, defaults to today
rangeDaysno, default 7

Always present slots and let the user choose. Don't pick automatically. If no slots are available, offer to search later dates by calling again with a later startDate.

bookLabAppointment

Books an appointment using a bookingKey from getServiceCenterSlots. Order must be in "Requisition Created" or "Appointment Cancelled" status.

Use this (not rescheduleLabAppointment) to book after a cancellation.

ParameterRequired
labOrderExternalIdyes
bookingKeyyes
timezoneyes

Always confirm date, time, and location with the user before booking.

rescheduleLabAppointment

Reschedules an existing appointment. Only works when the order is in "Appointment Scheduled" status. The previous appointment auto-cancels.

If already cancelled, use bookLabAppointment instead.

ParameterRequired
labOrderExternalIdyes
bookingKeyyes (new slot)
timezoneyes

cancelLabAppointment

Two-step: first call without reasonId to get available reasons, then call again with the chosen reason.

ParameterRequiredNotes
labOrderExternalIdyes—
reasonIdnoOmit to get reasons; pass to confirm cancellation
Lab RecordsLab Results
© 2026 Betterness Inc.
Privacy PolicyTerms of ServiceHealth Data