All notable changes to this project will be documented in this file.
AppointmentSpecialistDto: name now returns the specialist's first name and last initial, for example John D, instead of the first name only. No punctuation follows the initial. If the specialist has no last name on record, only the first name is returned. The same value is included in the appointment webhook payloads.AppointmentSpecialistDto: Added the specialist's details: photoUrl, namePronunciation and bio, a one-sentence introduction to the specialist written for the patient, for example "Britney brings 5 years of phlebotomy experience, enjoys hiking and baking, and looks forward to meeting you." They are null until the appointment's first touch point, the earliest of a two-stops-away notification, a one-stop-away notification, or the specialist going en route. If the specialist is reassigned after the first touch point and before arriving, they are the new specialist's details, and are null only while no specialist is assigned.AppointmentSpecialistDto: photoUrl and bio are null when the specialist has not consented to sharing their details with patients, even after the first touch point. bio is also null when the specialist's profile does not have enough information to build it. Do not rely on them being filled in.appointment.updated.specialist-details-available, sent once per appointment at its first touch point, when the specialist's details above are filled in. It is sent whether or not you have disabled Getlabs' default notifications, but only when that notification would be sent: if the en-route notification is held back, for example because the specialist's ETA has already passed, the event is not sent. Its payload's specialist includes the details, and so does every appointment webhook payload from then on. It is not accompanied by an appointment.updated event.appointment.updated.specialist-reassigned, sent when the specialist is reassigned after appointment.updated.specialist-details-available was sent and before the specialist arrives. Its payload's specialist includes the new specialist's details. It is not sent when the specialist is only removed or the same specialist is assigned again, and if the specialist is removed and a new one is assigned shortly after, it is sent once, when the new specialist is assigned. It is the only webhook a reassignment sends: it is not accompanied by an appointment.updated event.GET /v2/service-area: New endpoint that lists every zip code Getlabs can currently book appointments in, as a paged response of ServiceAreaDto ordered by zip code. Use it to build your own list of serviced zip codes instead of looking up zip codes one at a time with GET /v2/service-area/zip-code/{zipCode}. Results are cached for up to 1 day and the list changes as Getlabs opens and closes service areas, so refresh your copy regularly. An out-of-date copy is safe: availability for a zip code Getlabs no longer services returns no results.PATCH /v2/appointment-group/{id}: New endpoint to add appointments to an existing appointment group. No booking key is needed; the new appointments use the group's time and address, and existing appointments in the group are not changed. Every active appointment in the group must still be modifiable (Pending or Confirmed, and at least 2 hours before it starts), and a patient can only be in a group once.POST /v2/appointment-group: Can now group appointments with an existing appointment by sending appointmentId instead of key. The appointment(s) use that appointment's time and address, and if it is already in a group they are added to that group. Exactly one of key or appointmentId must be sent.CreateAppointmentGroupFromAppointmentDto and AddAppointmentGroupAppointmentsDto for the requests above.AppointmentDto: Added groupId field. The ID of the appointment group the appointment belongs to, or null if it is not in a group.TimeslotQueryDto: Added appointmentId field. Required when determining rebook eligibility for a specific appointment.InvestigationDto: Added submittedBy field. Reports who submitted the investigation - partner or getlabs.InvestigationSubmittedBy representing who an investigation can be submitted by./v2/investigations/appointment/{appointmentId}: Now returns an investigation submitted by either the partner or Getlabs. When both exist, the partner submission is returned.FilePurpose / ExtendedFilePurpose: Added collection-instructions purpose. Allows uploading collection instructions that accompany a lab order, with the same allowed MIME types as lab-order files.LabOrderDetailsDto: labOrderFileIds now accepts files with a purpose of lab-order or collection-instructions. A collection-instructions file is only ever an attachment, so at least one lab-order file is still required wherever a lab order is.LabOrderDetailsDto: contactName and contactPhone are required when labOrderFileIds does not include a lab-order file (previously, when labOrderFileIds was not set) and the appointment is not a priority appointment.labOrderFileIds to include a lab-order file for at least one lab order detail.AppointmentDto: Added eta field. The specialist's original ETA date/time (UTC), stamped when the appointment is routed. updatedEta continues to report the current ETA when the arrival time has changed. The field is also included in the appointment webhook payloads.CancellationReasonDto: Added cancellationOrigin field. Reports who a cancellation made with this reason is attributed to - patient, partner, or getlabs - or null when the reason has no origin attributed to it.CancellationReasonOrigin representing the origins a cancellation reason can be attributed to.PatientDto: communicationSettings field was not properly displaying on request modelsRescheduleDto: Added rescheduleReason field. Returns the name and slug of the reason an appointment was rescheduled, or null when the reschedule was recorded without one. Reasons Getlabs does not share the details of are reported as Other.RescheduleReasonDto representing the reschedule reason's name and slug.PatientDto: Added communicationSettings field. Allows editing the alternateContact and optInSms fields/v2/investigations/appointment/{appointmentId}InsuranceDto: can set frontId and rearId to null to remove insurancepatientId to GET /v2/appointment-requests to filter appointment requests for a specific patient.PATCH /v2/appointment-requests/{id}.pending, processed, or notified status can be modified.AppointmentRequestDto: Added rawData field. Provides the appointment data in its original form as received before transformation.AppointmentRequestDto: Added cancellationReasonDetails field. Provides specific details on why an appointment request was cancelled.address field to allow updating the appointment's address information, specifically a unit field.CancellationReasonDto: Added slug field. A unique identifier for the cancellation reason, useful for referencing reasons across environments.AppointmentDto: Added specialist field. Returns the specialist assigned to the appointment.AppointmentSpecialistDto representing the specialist's basic information.appointment.investigation.created to indicate when an investigation on an appointment is opened.AppointmentUpdateDto (see below).AppointmentSampleDto.uncollectedReason now references the AppointmentSampleUncollectedReason enum for consistent values.expiresAt field on AppointmentRequestDto. Indicates when the request will automatically expire if not completed/confirmed. ISO 8601 timestamp (UTC). Returned on relevant Appointment Request endpoints.quantity which shows the number of tubes/cups, etc... collected on a specific sample.testCodes array of strings to specify test codes for the order. Available wherever LabOrderDetailsDto is used (e.g., appointment lab order details). Nullable. Example: ['929', 'J013-4'].UpdateAppointmentProductDto with a required products array of AppointmentProductDto items.properties where applicable.properties on Appointment Product payloads: an array of objects capturing values collected during booking for the associated product. May be null.AppointmentProductBookingPropertyDto schema describing each collected property with:properties are returned on appointment responses where applicable.samples after the appointment has been confirmed. This field contains the list of samples that will be collected for the appointment.editable to Patient schemapatientId parameter for Appointment_ListcancellationOrigin to Appointment schemabookingUrl property to AppointmentRequest schemaPatient matching functionality based on email, DOB and birth sex retired. Each call to the Patient Create endpoint will result in a new patient record being created, regardless of matching properties. In order to avoid creating duplicate patient records in the upcoming release, it is advised to either:
externalId value when creating/updating patients that can later be used to lookup the patient