Skip to content

feat: add logging support and remove insulin injection timeseries#88

Open
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-27T14-18Z
Open

feat: add logging support and remove insulin injection timeseries#88
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-03-27T14-18Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Removed INSULIN_INJECTION enum value and InputStream-based parserCreateJob methods - existing code using these will break.

  • The INSULIN_INJECTION timeseries type has been removed from IntervalTimeseriesExprTimeseries. Code referencing this enum value will need to be updated. Additionally, InputStream-based methods for creating lab report parser jobs have been removed - use File-based methods instead. The SDK now includes logging configuration support through ClientOptions.
  • The parserCreateJob methods that accept InputStream parameters have been removed from RawLabReportClient. Use the File-based overloads instead. New lab configuration fields labAccountId and labSlug are now available in lab test requests for enhanced provider selection.
  • The SDK now supports additional optional fields for enhanced data collection: SDK version tracking and permission management in manual connections, access notes for addresses, appointment notes for rescheduling requests, and new derived readiness and insulin injection expression types for data aggregation.
  • Breaking changes: The parentId field has been removed from ClientFacingOrder. The getStatus() method in GetOrderTransactionResponse now returns OrderTransactionStatus enum instead of String. New optional fields added for insulin delivery details (deliveryMode, deliveryForm, bolusPurpose), order clinical notes, and lab result order transactions.
  • The jobId field and getJobId() method have been removed from the ParsingJob class. Code that accesses this field should be updated to use the id field instead. Additionally, patient address classes now support an optional accessNotes field for delivery instructions.
  • The UserInfo.address field now uses the UserAddress type instead of the generic Address type. The UsAddress class now includes an optional access_notes field for additional delivery instructions.
  • The getMarkers method now supports filtering by lab_slug parameter. Enhanced documentation clarifies marker types returned by different endpoints.
  • The SDK now includes a comprehensive logging framework for debugging HTTP requests and responses. Configure logging using the new logging() method on VitalBuilder - the SDK is silent by default. New enum values have been added across lab providers (SONORA_QUEST, CRL), manual providers (SAMSUNG_HEALTH), password providers (TANDEM_SOURCE), and order statuses to support expanded testing capabilities. Two new client modules are now available: CompendiumClient for lab test catalogs and LabAccountClient for lab account management.
  • New CompendiumClient available with search() and convert() methods for exercise compendium operations. Enhanced SSE event parsing support with SseEventParser utility class for handling Server-Sent Events with discriminated unions.
  • The SDK now supports compendium operations for lab test management. New ConvertCompendiumBody and SearchCompendiumBody classes enable searching lab test catalogs and converting tests between different laboratory providers. Additionally, the new LabAccountClient provides team-level lab account management capabilities.
  • The SDK now includes a new RawLabAccountClient for managing lab accounts, with methods to retrieve team lab accounts filtered by ID and status. Additionally, lab test orders now support an optional clinicalNotes field for including clinical information with orders.
  • The SDK now supports passing additional properties on all request objects through new additionalProperty() and additionalProperties() builder methods. This enables custom fields beyond the defined schema to be included in API requests.
  • The SDK now provides standardized methods for adding custom properties to request objects. All request builders now include additionalProperty(String key, Object value) and additionalProperties(Map<String, Object> additionalProperties) methods for enhanced request customization.
  • New builder methods additionalProperty() and additionalProperties() are now available on all vitals request builders, allowing dynamic property extension for flexible API request customization.
  • New additionalProperty() and additionalProperties() methods available on all vitals request builders for passing extra key-value pairs to API calls.
  • New builder methods additionalProperty() and additionalProperties() are now available on request and type classes, allowing custom key-value pairs to be set. The AppointmentBookingRequest class now supports an optional appointmentNotes field for adding notes to appointment bookings.
  • The SDK now includes a new CanonicalCandidate class for working with biomarker canonical candidates, featuring LOINC codes, aliases, provider IDs, and confidence scoring. Builder classes now support additionalProperty() and additionalProperties() methods for handling dynamic fields in API responses.
  • New optional appointmentNotes field available on ClientFacingAppointment objects. Builder classes now include additionalProperty() and additionalProperties() methods for easier handling of additional metadata.
  • New builder methods additionalProperty() and additionalProperties() are now available on all model classes, allowing dynamic property assignment during object construction.
  • The SDK now supports insulin pump as a device source type for health data collection. Additionally, all model builders now include methods for setting additional properties, providing better extensibility for future API enhancements.
  • New builder methods additionalProperty() and additionalProperties() are now available on all client-facing data type builders, enabling programmatic setting of additional JSON properties not defined in the schema.
  • New insulin injection enums available for tracking bolus purpose, delivery form, and delivery mode. The SDK now includes ClientFacingLabAccount model for lab account management and new lab report parsing job event classes for webhook handling.
  • New builder methods additionalProperty() and additionalProperties() are now available on client-facing classes for setting custom properties. The ClientFacingMenstrualCycleSourceType enum now includes INSULIN_PUMP as a supported source type.
  • New builder methods for additional properties are now available on all client-facing types. Use additionalProperty(key, value) and additionalProperties(map) methods in builders to set custom fields on model objects. The ClientFacingSleepCycleSourceType enum also includes a new INSULIN_PUMP value.
  • New additionalProperty() and additionalProperties() methods available on all ClientFacing type builders for setting custom properties with a fluent API.
  • The SDK now supports setting custom properties on all client-facing types through new additionalProperty() and additionalProperties() methods on builder classes. These methods allow adding arbitrary key-value pairs that are preserved during serialization.
  • The SDK now includes additionalProperty() and additionalProperties() methods on all builder classes for handling custom properties. New types ConvertCompendiumResponse, CompendiumSearchLabs enum, and DerivedReadinessColumnExpr are available for lab test conversion and readiness data functionality.
  • New builder methods additionalProperty() and additionalProperties() are now available on all model objects for setting custom properties. The SDK also adds support for retrieving team lab accounts with the new GetTeamLabAccountsresponse class.
  • New additionalProperty() and additionalProperties() builder methods are now available on all Grouped* type builders, enabling clients to set custom properties during object construction.
  • Builder classes for grouped data types now support additionalProperty() and additionalProperties() methods for setting custom JSON properties during object construction.
  • The SDK now supports additional property methods on builder classes for extended customization. New insulin injection timeseries expression types are available for health data queries. A new derived readiness index and lab account delegation flow enum have been added for enhanced functionality.
  • New LabAccountStatus and OrderStatusDetail enums are now available for tracking lab account and order states. All model builders now support additionalProperty() methods for handling unknown API response fields.
  • New PerLabCandidate type available for representing laboratory test marker candidates with detailed LOINC and CPT code information.
  • The SDK now supports provider ID conversion with new ProviderIdConversionResponse and RelatedCandidate types. Added support for TANDEM_SOURCE and SAMSUNG_HEALTH providers. Enhanced ResultMetadata with an optional gender field.
  • New SearchCompendiumResponse type available for compendium search operations with support for canonical and crosswalk search modes. The SDK also now includes a UsState enum for US state validation and improved builder pattern support across existing types.

Adds comprehensive logging configuration to ClientOptions with support for
event-level discrimination in SSE streams. Removes INSULIN_INJECTION enum
value from IntervalTimeseriesExprTimeseries and deprecated InputStream-based
methods from LabReportClient.

Key changes:
- Add LogConfig support to ClientOptions with silent-by-default logging
- Enhance Stream class with SSE event-level discrimination capabilities  
- Remove INSULIN_INJECTION enum value from IntervalTimeseriesExprTimeseries
- Remove InputStream-based parserCreateJob methods from LabReportClient
- Update method documentation to reflect multiple file upload support

🌿 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