feat: add DerivedReadinessColumnExpr support and update lab report API#77
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add DerivedReadinessColumnExpr support and update lab report API#77fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
Add support for derived readiness column expressions in query operations with new DerivedReadinessColumnExpr type and associated visitor pattern implementations. Update lab report API to support multi-file upload, add failure reason enum, and enhance result metadata structure. Key changes: - Add DerivedReadinessColumnExpr with 8 readiness metrics (sleep_score, recovery_score, strain_score, etc.) - Update AggregateExprArg, QueryGroupByItem, and QuerySelectItem union types to include derived readiness - Change BodyCreateLabReportParserJob.File from io.Reader to []io.Reader for multi-file support - Add ParsingJobFailureReason enum with invalid_input, low_quality, not_english values - Remove ParsingJob.JobId field and update associated getters/setters - Convert ResultMetadata fields from required strings to optional pointers - Add ResultMetadataGender enum (male, female, other) to result metadata - Update QueryBatch timeframe and queries fields to be required instead of optional 🌿 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: Breaking changes include removing ParsingJob.JobId field, changing BodyCreateLabReportParserJob.File from io.Reader to []io.Reader, and converting ResultMetadata fields from required strings to optional pointers.
ParsingJobtype no longer includes aJobIdfield. TheBodyCreateLabReportParserJob.Filefield now accepts multiple files ([]io.Readerinstead ofio.Reader). AllResultMetadatafields (PatientFirstName, PatientLastName, Dob, LabName) are now optional pointers instead of required strings. New features includeDerivedReadinessColumnExprsupport for querying readiness metrics andParsingJobFailureReasonenum for better error handling.GetTransaction), lab results (GetTransactionResult), and PDF reports (GetTransactionResultPdf). A newBytes()utility function is also available for creating pointers to byte slices.