feat: support multiple file uploads in lab report parser#143
Open
fern-api[bot] wants to merge 1 commit intomasterfrom
Open
feat: support multiple file uploads in lab report parser#143fern-api[bot] wants to merge 1 commit intomasterfrom
fern-api[bot] wants to merge 1 commit intomasterfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version Bump: The
parserCreateJobmethod signature changed from accepting a single file to an array of files, breaking existing callers.parserCreateJobmethod now accepts an array of files instead of a single file. Update your calls fromparserCreateJob(file, request)toparserCreateJob([file], request)to wrap single files in an array.orderTransactionIdfor filtering orders,allowStalefor cached appointment availability data, andclinicalNotesfor order creation. Enhanced documentation for marker-related methods.CompendiumClient,LabAccountClient, andOrderTransactionClientfor 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.CompendiumClient, enabling test discovery and lab-specific test mapping. AddedLabAccountClientfor managing team lab accounts andOrderTransactionClientfor tracking order transactions and retrieving results. Lab test creation now supports optional lab account ID and lab slug parameters.searchCompendium()andconvertCompendium()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.UsStateandUserAddresstypes. TheUsStateenum includes all 50 US state abbreviations, andUserAddressprovides comprehensive address data structure with optional fields for enhanced address management.