Skip to content

feat: add DerivedReadinessColumnExpr support and update lab report models#79

Open
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-24T17-21Z
Open

feat: add DerivedReadinessColumnExpr support and update lab report models#79
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-24T17-21Z

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 24, 2026

Version Bump: Removed JobId field from ParsingJob struct and changed multiple field types in ResultMetadata from string to *string, breaking existing code that accesses these fields directly.

  • Breaking changes to lab report models: The JobId field has been removed from ParsingJob. The ResultMetadata fields (PatientFirstName, PatientLastName, Dob, LabName) are now optional pointers instead of required strings. The BodyCreateLabReportParserJob.File field now accepts multiple files as []io.Reader instead of a single io.Reader. New derived readiness column expressions are available for querying computed readiness metrics including sleep scores, recovery zones, and strain measurements.
  • The SDK now supports async appointment booking with configurable confirmation timeouts, adds Sonora Quest as a new provider for both appointments and lab services, and includes appointment notes functionality across all booking and management operations. Lab test creation has been enhanced with additional configuration options including lab account ID and lab slug parameters.
  • The SDK now supports Samsung Health and Tandem Source providers. Additional fields are available on ManualConnectionData for mobile SDK version tracking and permission management. Several request fields that were previously optional in JSON serialization are now required, improving API contract enforcement.
  • The SDK now supports comprehensive biomarker result handling with new BiomarkerResult and MissingBiomarkerResult types. New lab report parsing events (ClientFacingLabReportParsingJobCreatedEvent and ClientFacingLabReportParsingJobUpdatedEvent) are available for tracking lab report processing workflows. Additional fields have been added to existing types including AccessNotes for addresses and ClinicalNotes for orders.
  • Enhanced insulin injection tracking with new delivery mode, delivery form, and bolus purpose fields. Added support for insulin pump device sources and multiple file uploads in lab report parsing. Introduced new lab workflow client modules (Compendium, LabAccount, OrderTransaction) and improved user address management with dedicated UserAddress type.
  • New compendium module provides lab test search and provider ID conversion capabilities. The SDK now supports searching for canonical lab tests across multiple laboratories, converting provider IDs between different lab systems, and accessing detailed test metadata including LOINC codes and CPT codes.
  • The SDK now supports compendium search and convert operations through the new compendium client package. A new labaccount client package provides lab account management capabilities. Additionally, enum values for insulin pump source types are now available for electrocardiogram and menstrual cycle data.
  • New order transaction client available with methods to retrieve transaction details, results, and PDF reports. The SDK also adds support for insulin pump as a sleep cycle source type.

…dels

Adds support for derived readiness column expressions in query operations, enabling access to computed readiness metrics like sleep scores, recovery zones, and strain measurements. Also updates lab report parsing models with enhanced metadata fields and failure reason tracking.

Key changes:
- Add DerivedReadinessColumnExpr with 8 readiness metric constants (date, chronotype, sleep_score, recovery_score, recovery_zone, stress_score, strain_score, strain_zone)
- Include DerivedReadinessColumnExpr in AggregateExprArg, QueryGroupByItem, and QuerySelectItem union types
- Add derived_readiness to IndexColumnExprIndex enum
- Update ParsingJob model: remove JobId field, add FailureReason field with 3 failure constants
- Change ResultMetadata fields from required strings to optional pointers, add Gender field
- Change BodyCreateLabReportParserJob.File from io.Reader to []io.Reader for multiple file support
- Remove omitempty JSON tags from QueryBatch.Timeframe and Queries fields

🌿 Generated with Fern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants