feat: add DerivedReadinessColumnExpr support and update lab report models#79
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add DerivedReadinessColumnExpr support and update lab report models#79fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
…dels Adds support for derived readiness column expressions in query operations, enabling access to computed readiness metrics like sleep scores, recovery zones, and strain measurements. Also updates lab report parsing models with enhanced metadata fields and failure reason tracking. Key changes: - Add DerivedReadinessColumnExpr with 8 readiness metric constants (date, chronotype, sleep_score, recovery_score, recovery_zone, stress_score, strain_score, strain_zone) - Include DerivedReadinessColumnExpr in AggregateExprArg, QueryGroupByItem, and QuerySelectItem union types - Add derived_readiness to IndexColumnExprIndex enum - Update ParsingJob model: remove JobId field, add FailureReason field with 3 failure constants - Change ResultMetadata fields from required strings to optional pointers, add Gender field - Change BodyCreateLabReportParserJob.File from io.Reader to []io.Reader for multiple file support - Remove omitempty JSON tags from QueryBatch.Timeframe and Queries fields 🌿 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: Removed JobId field from ParsingJob struct and changed multiple field types in ResultMetadata from string to *string, breaking existing code that accesses these fields directly.
JobIdfield has been removed fromParsingJob. TheResultMetadatafields (PatientFirstName,PatientLastName,Dob,LabName) are now optional pointers instead of required strings. TheBodyCreateLabReportParserJob.Filefield now accepts multiple files as[]io.Readerinstead of a singleio.Reader. New derived readiness column expressions are available for querying computed readiness metrics including sleep scores, recovery zones, and strain measurements.compendiumclient package. A newlabaccountclient package provides lab account management capabilities. Additionally, enum values for insulin pump source types are now available for electrocardiogram and menstrual cycle data.