Skip to content

feat: change lab report parser job to accept multiple files#134

Open
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-18T15-37Z
Open

feat: change lab report parser job to accept multiple files#134
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-18T15-37Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Changed parserCreateJob method signature from accepting a single file to requiring a file array, breaking existing callers.

  • The SDK now supports additional laboratory and insurance providers. New enum values include 'sonora_quest' for lab appointments, 'derived_readiness' for data indexing, and 'apero'/'pverify' for insurance integrations. These additions expand the available provider options without breaking existing functionality.
  • The parserCreateJob method in LabReportClient now accepts an array of files instead of a single file. Existing code calling parserCreateJob(file, request) must be updated to parserCreateJob([file], request) to wrap the single file in an array.
  • New optional parameters added: labSlug for marker filtering, orderTransactionId for order queries, allowStale for appointment availability caching, and clinicalNotes for order creation. Lab test marker endpoints now include improved documentation describing their specific purposes.
  • Breaking changes to the ParsingJob interface: the jobId field has been removed and a new optional failureReason field has been added. Code accessing parsingJob.jobId will need to be updated. Additionally, new CompendiumClient and LabAccountClient are now available for lab test management and account operations.
  • New APIs for compendium search, lab account management, and order transaction tracking. The SDK now supports searching for lab tests across providers, managing lab partnerships, and tracking order workflows. Enhanced lab test creation with optional lab account parameters and added appointment notes support.
  • The SDK now supports compendium search and conversion APIs for lab test discovery and cross-lab compatibility. New lab providers include SonoraQuest and CRL, with Samsung Health provider support added. Enhanced order management includes transaction tracking, lab account management with delegated flows, and expanded status tracking with corrected order states.
  • The SDK now supports lab account management with new ClientFacingLabAccount and related types. Order tracking has been enhanced with transaction support through ClientFacingOrderTransaction and new optional fields like orderTransactionId and clinicalNotes. Compendium search capabilities have been expanded with CanonicalCandidate and conversion response types. Additional optional fields like accessNotes for patient addresses and appointmentNotes for appointments provide more detailed data capture.
  • The SDK now supports new search compendium functionality with SearchCompendiumResponse and related types, comprehensive US state handling with the UsState enum, and enhanced address management with UserAddress and extended UsAddress schemas. Additional lab-related types have been added for account management, order transactions, and parsing jobs.

Updates the parserCreateJob method in LabReportClient to accept an array of files 
instead of a single file, enabling batch processing of multiple lab reports in a 
single job. Also refactors query parameter construction in IntrospectClient methods 
for improved readability and maintainability.

Key changes:
- Change parserCreateJob method signature from single file to file array parameter
- Update JSDoc examples and comments to reflect multi-file support  
- Refactor query parameter building in IntrospectClient to use object literal syntax
- Improve form data handling to iterate over multiple files

🌿 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