Skip to content

feat: add derived readiness column support and update lab report API#80

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

feat: add derived readiness column support and update lab report API#80
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-24T17-50Z

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 consumers.

  • Breaking changes to lab report API structures. The ParsingJob struct no longer includes a JobId field. ResultMetadata fields (PatientFirstName, PatientLastName, Dob, LabName) are now optional pointers instead of required strings. The BodyCreateLabReportParserJob.File field now accepts multiple files as a slice. New derived readiness column expressions are available for advanced querying capabilities.
  • The SDK now supports enhanced appointment booking with idempotency controls, async confirmation timeouts, and appointment notes. Sonora Quest lab is now available as a provider option. New optional fields include clinical notes for orders, access notes for addresses, and improved filtering options for lab test queries.
  • The SDK now supports Samsung Health as a manual provider and Tandem Source as a password provider. Enhanced ManualConnectionData struct with additional fields for SDK version tracking and granted permissions.
  • The SDK now supports comprehensive lab result parsing with new BiomarkerResult and LabResultsRaw types. These types provide structured access to biomarker data including result values, interpretations, LOINC codes, and clinical metadata. Additional support for missing biomarker tracking, sample data handling, and lab report parsing job events is also included.
  • New UserAddress type replaces Address in user operations with improved structure for address data including access notes. Insulin injection samples now include delivery mode (basal/bolus), delivery form (standard/extended), and bolus purpose (meal/correction/mixed) fields. Added support for insulin_pump device source type.
  • New compendium functionality for lab test search and conversion. The SDK now supports searching for canonical lab tests and converting provider IDs between different lab networks including Labcorp, Quest, Bioreference, and Sonora Quest.
  • The SDK now includes two new client packages: compendium for health data search and conversion operations, and labaccount for managing laboratory account configurations. Additionally, ECG and menstrual cycle data sources now support insulin pump devices through new enum values.
  • New order transaction API client with methods to retrieve transaction details (GetTransaction), raw results (GetTransactionResult), and PDF reports (GetTransactionResultPdf). Added support for insulin pump as a sleep cycle source type.

Adds comprehensive support for derived readiness columns in query expressions and updates the lab report parsing API with improved error handling and flexible metadata fields.

Key changes:
- Add DerivedReadinessColumnExpr type with readiness metrics (sleep_score, recovery_score, strain_score, etc.)
- Integrate derived readiness support into AggregateExprArg, QueryGroupByItem, and QuerySelectItem union types
- Add ParsingJobFailureReason enum for machine-readable error classification
- Remove JobId field from ParsingJob struct
- Change ResultMetadata fields from required strings to optional pointers
- Add Gender field to ResultMetadata
- Change QueryBatch timeframe and queries fields from optional to required
- Update BodyCreateLabReportParserJob.File from single io.Reader to slice

🌿 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