Skip to content

feat: add DerivedReadinessColumnExpr type and update API schemas#78

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

feat: add DerivedReadinessColumnExpr type and update API schemas#78
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-24T11-03Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Removed ParsingJob.JobId field and changed BodyCreateLabReportParserJob.File from io.Reader to []io.Reader, breaking existing callers.

  • The SDK now supports querying derived readiness metrics through the new DerivedReadinessColumnExpr type. This enables aggregation and grouping on readiness data including recovery scores, strain scores, and chronotype. Lab report parsing jobs now support batch file uploads and provide structured failure reasons. Query batch operations have updated field requirements for timeframe and queries.
  • The SDK now supports appointment notes throughout the booking and management flow. New filtering options are available for lab markers by lab slug and orders by transaction ID. Enhanced PSC appointment booking includes idempotency controls and timeout configuration for async confirmations.
  • The SDK now supports Samsung Health through the new ManualProvidersSamsungHealth enum value and Tandem Source through PasswordProvidersTandemSource. The ManualConnectionData struct includes new fields for mobile SDK version tracking and granted permissions.
  • The SDK now includes comprehensive support for lab report parsing jobs, enhanced biomarker result tracking, and order transaction management. New types provide detailed sample data, clinical information, and performing laboratory details for improved lab workflow integration. Added support for parsing job events, UTC timestamps with timezone offsets, and enhanced order documentation with clinical notes.
  • The SDK now supports application/x-www-form-urlencoded request encoding and includes three new client modules: Compendium, LabAccount, and OrderTransaction. Lab report parsing now supports multiple file uploads, and PSC appointment booking includes idempotency key support.
  • The SDK now includes types for the Vital compendium API, enabling laboratory test search and provider ID conversion functionality. New types include request/response structures for searching lab tests, converting provider IDs between laboratories, and various candidate result formats.
  • The SDK now supports medical compendium search and conversion operations through the new compendium package. Teams can also manage lab accounts programmatically using the new labaccount package with comprehensive account information including billing permissions and business units. Enhanced mobile SDK integration with version header support for iOS and Android platforms.
  • The SDK now includes a new OrderTransaction client for managing lab order transactions. The client provides methods to retrieve transaction details (GetTransaction), lab results (GetTransactionResult), and PDF reports (GetTransactionResultPdf). A new Bytes() utility function is also available for creating pointers to byte slices.

Add support for derived readiness column expressions in query aggregation and grouping operations. This enables querying readiness metrics like recovery score, strain score, and chronotype data.

Key changes:
- Add DerivedReadinessColumnExpr type with readiness-specific enum values
- Include DerivedReadinessColumnExpr in AggregateExprArg, QueryGroupByItem, and QuerySelectItem unions
- Add derived_readiness to IndexColumnExprIndex enum
- Update BodyCreateLabReportParserJob.File field from io.Reader to []io.Reader
- Add ParsingJobFailureReason enum for machine-readable error handling
- Remove ParsingJob.JobId field and add FailureReason field
- Update ResultMetadata fields to be optional pointers and add Gender field
- Update QueryBatch.Timeframe and Queries fields to be required

🌿 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