Skip to content

feat: support multiple file uploads in lab report parser#143

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

feat: support multiple file uploads in lab report parser#143
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-24T17-51Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: The parserCreateJob method signature changed from accepting a single file to an array of files, breaking existing callers.

  • New enum values added: "sonora_quest" for appointment providers and PSC labs, "derived_readiness" for index columns, and "apero"/"pverify" for payor code external providers. The SDK also includes performance improvements for object schema validation.
  • The parserCreateJob method now accepts an array of files instead of a single file. Update your calls from parserCreateJob(file, request) to parserCreateJob([file], request) to wrap single files in an array.
  • New optional parameters added to lab test operations: orderTransactionId for filtering orders, allowStale for cached appointment availability data, and clinicalNotes for order creation. Enhanced documentation for marker-related methods.
  • The SDK now includes three new client resources: CompendiumClient, LabAccountClient, and OrderTransactionClient for expanded API functionality. Enhanced insulin injection data model with new optional fields for delivery mode, delivery form, and bolus purpose. Added support for additional lab providers (Sonora Quest, CRL) and Samsung Health as a manual provider.
  • New compendium search and conversion capabilities available through the CompendiumClient, enabling test discovery and lab-specific test mapping. Added LabAccountClient for managing team lab accounts and OrderTransactionClient for tracking order transactions and retrieving results. Lab test creation now supports optional lab account ID and lab slug parameters.
  • The SDK now supports order transaction management, insulin pump device integration, and expanded lab provider coverage. New appointment booking options include async confirmation with configurable timeouts. Enhanced analytics capabilities include derived readiness column expressions for advanced health data queries.
  • The SDK now supports compendium search for lab test discovery with new searchCompendium() and convertCompendium() methods. Enhanced insulin injection data includes delivery modes, forms, and bolus purposes. Added lab account management, appointment notes, order transaction tracking, and clinical notes support. New parsing job webhook events are available for lab report processing workflows.
  • The SDK now supports comprehensive lab test compendium search and conversion capabilities through new search and conversion endpoints. Enhanced order management includes transaction tracking, clinical notes, and detailed status information. Added support for Tandem Source and Samsung Health providers, plus insulin pump data source tracking for menstrual and sleep cycles.
  • The SDK now supports US state and address handling with new UsState and UserAddress types. The UsState enum includes all 50 US state abbreviations, and UserAddress provides comprehensive address data structure with optional fields for enhanced address management.

Update the lab report parser to accept multiple files instead of a single file. 
The `parserCreateJob` method now takes an array of files and uploads each one 
to the provider for processing. This enables batch processing of lab reports 
in a single API call.

Key changes:
- Change `parserCreateJob` parameter from `file: core.file.Uploadable` to `file: core.file.Uploadable[]`
- Update form data handling to iterate over file array and append each file
- Refactor query parameter building in introspect client methods for cleaner code structure
- Update JSDoc examples to show array syntax for file parameter

🌿 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