feat: change lab report parser to accept multiple files#135
Open
fern-api[bot] wants to merge 1 commit intomasterfrom
Open
feat: change lab report parser to accept multiple files#135fern-api[bot] wants to merge 1 commit intomasterfrom
fern-api[bot] wants to merge 1 commit intomasterfrom
Conversation
Update the lab report parser job creation endpoint to accept an array of files instead of a single file. This enables batch processing of multiple lab reports in a single parse job, improving efficiency for users with multiple documents. Key changes: - Change parserCreateJob method parameter from single file to file array - Update form data handling to iterate over multiple files - Modify JSDoc comments and examples to reflect array usage - Refactor query parameter construction for introspect endpoints 🌿 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: Changed parserCreateJob method signature from accepting a single file to requiring an array of files - existing callers will get compile errors.
parserCreateJobmethod parameter has changed fromcore.file.Uploadabletocore.file.Uploadable[]. Update your calls to pass an array of files instead of a single file.orderTransactionIdfor filtering orders,labSlugfor marker queries, andallowStalefor cached appointment availability. ThebookPscAppointmentmethod now accepts a structured request object with idempotency support.UserInfoCreateRequest.addressfield now uses theUserAddresstype instead ofAddress. Existing code using this interface may need to be updated to match the new type definition.ParsingJobinterface has removed the requiredjobIdfield and added an optionalfailureReasonfield. Update any code that accessesparsingJob.jobId.ResultMetadatainterface has changed several required fields (patientFirstName,patientLastName,dob,labName) to optional. Add null checks when accessing these properties.New Features:
CompendiumClientavailable withsearch()andconvert()methods for working with medical test compendium datasonora_questandcrlResultMetadatawith optionalgenderfieldClientFacingLabAccounttypes, order transaction tracking throughClientFacingOrderTransactionobjects, and Samsung Health as a new data provider. Additionally, compendium search functionality is now available for lab test management, and new webhook events have been added for lab report parsing jobs.