Skip to content

feat: add derived readiness columns and improve lab report parsing#76

Open
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-20T16-35Z
Open

feat: add derived readiness columns and improve lab report parsing#76
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-20T16-35Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Existing callers of BodyCreateLabReportParserJob will break due to File field type change from io.Reader to []io.Reader, and ParsingJob field changes (removed JobId, added FailureReason) will cause compile errors.

  • Breaking changes to lab report parsing API: The File field in BodyCreateLabReportParserJob now accepts multiple files ([]io.Reader instead of io.Reader) for batch processing. The ParsingJob type has removed the JobId field and added a FailureReason field with machine-readable error codes. ResultMetadata fields are now optional pointers with a new Gender field. New derived readiness column expressions are available for querying sleep scores, recovery metrics, and strain data.
  • The SDK now supports lab account ID and lab slug fields for lab test creation, clinical notes for order creation, and enhanced PSC appointment booking with async confirmation options. New appointment notes can be included when booking or rescheduling appointments, and Sonora Quest is now supported as an appointment provider. Additional filtering options are available for orders and markers, including order transaction ID and lab slug parameters.
  • The SDK now supports Samsung Health as a manual provider and Tandem Source as a password provider. Enhanced JSON serialization capabilities have been added to all request body types for improved type safety. The ManualConnectionData struct has been expanded with new fields for tracking mobile SDK versions and granted permissions.
  • New lab report parsing job events are now available for tracking the lifecycle of parsing operations. The SDK adds comprehensive biomarker result models with detailed metadata including reference ranges, interpretations, and performing laboratory information. Additional order status values and enum options are now supported across Labs and Providers.
  • New Compendium, LabAccount, and OrderTransaction client modules are now available, providing access to additional Vital API endpoints. The SDK also adds support for form URL-encoded request bodies and enhanced JSON marshaling for user-related operations.
  • The SDK now supports lab test compendium search and conversion functionality through new types including SearchCompendiumBody, ConvertCompendiumBody, and various candidate response types, enabling standardized lab test mapping across different providers.
  • The SDK now includes Compendium APIs for test searching and unit conversion, Lab Account management APIs for retrieving team laboratory accounts, and new order transaction tracking data structures. Enhanced multipart file upload handling and mobile SDK version header support are also included.
  • New order transaction client available with methods to retrieve transaction details, lab results, and PDF reports. Access via the ordertransaction package.

Add support for derived readiness data in aggregate and query operations, enabling access to sleep scores, recovery metrics, and strain analysis. Update lab report parsing to support batch file uploads and enhanced metadata extraction.

Key changes:
- Add DerivedReadinessColumnExpr with support for sleep_score, recovery_score, strain_score, and other readiness metrics
- Integrate derived readiness columns into AggregateExprArg, QueryGroupByItem, and QuerySelectItem union types
- Update IndexColumnExpr to include derived_readiness index type
- Change BodyCreateLabReportParserJob.File from io.Reader to []io.Reader for batch processing
- Remove JobId field from ParsingJob and add FailureReason field with machine-readable error codes
- Convert ResultMetadata fields to optional pointers and add Gender field
- Make QueryBatch timeframe and queries fields required (removed omitempty tags)

🌿 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