Skip to content

feat: add derived readiness data type and update lab parsing schema#74

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

feat: add derived readiness data type and update lab parsing schema#74
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-20T11-48Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Removed ParsingJob.JobId field and changed ParsingJob.GetJobId() method signature, breaking existing callers that access this field.

  • The SDK now supports derived readiness data queries through the new DerivedReadinessColumnExpr type, enabling analysis of sleep scores, recovery metrics, strain data, and chronotype information. Lab report parsing has been enhanced with better error handling via ParsingJobFailureReason enum and improved metadata collection including optional gender fields.
  • The SDK now supports asynchronous appointment booking with configurable timeout settings through the async_confirmation field. Appointment notes can be added when booking or rescheduling appointments. Sonora Quest is now available as a lab provider for PSC appointments. Additional configuration options have been added for lab test creation including lab account ID and lab slug parameters.
  • The SDK now supports Samsung Health manual connections and Tandem Source password-based connections. Enhanced serialization control for better validation of required fields in request bodies.
  • The SDK now supports lab report parsing workflows with new BiomarkerResult and LabResultsRaw types for handling detailed lab data. Added ClientFacingLabReportParsingJobCreatedEvent and ClientFacingLabReportParsingJobUpdatedEvent for tracking parsing job status. Enhanced order management with new ClientFacingOrderTransaction type and additional order status values. Added AccessNotes field to address types and ClinicalNotes field to orders for improved data capture.
  • New client modules added: Compendium for lab test information, LabAccount for lab account management, and OrderTransaction for order transaction operations. The SDK now supports form-encoded HTTP requests in addition to JSON. Lab report parsing now accepts multiple file uploads.
  • The SDK now supports compendium API functionality with new types for lab test search and conversion. Available search modes include canonical test lookup and crosswalk between different lab providers (LabCorp, Quest, BioReference, Sonora Quest).
  • New compendium client available for searching and converting compendium data. New lab account client available for managing team lab accounts with support for delegation flows and billing configurations.
  • New order transaction client available with methods to retrieve transaction details (GetTransaction), lab results (GetTransactionResult), and PDF reports (GetTransactionResultPdf). The SDK also includes a new Bytes() utility function for creating pointers to byte slices.

This update introduces support for derived readiness data queries and enhances
the lab report parsing system with improved metadata handling and failure reporting.

Key changes:
- Add DerivedReadinessColumnExpr type with comprehensive readiness metrics
- Update QueryBatch fields from optional to required for timeframe and queries
- Add ParsingJobFailureReason enum for better error classification
- Enhance ResultMetadata with optional gender field and nullable patient fields
- Remove JobId field from ParsingJob in favor of simplified structure
- Support multiple file uploads in BodyCreateLabReportParserJob

🌿 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