Skip to content

feat: add HTTP request logging and enhance lab report parsing#144

Open
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-27T09-35Z
Open

feat: add HTTP request logging and enhance lab report parsing#144
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-27T09-35Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Breaking change to parser_create_job method signature - parameter 'file' changed from core.File to typing.List[core.File], requiring callers to wrap single files in a list.

  • The lab report parser now accepts multiple files for batch processing. The parser_create_job method parameter file has changed from core.File to typing.List[core.File]. Additionally, the SDK now includes HTTP request logging capabilities and enhanced response objects with status code access.
  • The SDK now supports additional filtering and configuration options for lab tests and appointments. New optional parameters include lab account ID and lab slug for lab test filtering, appointment notes for phlebotomy requests, idempotency support for PSC appointment booking, and order transaction ID filtering.
  • New optional parameters added to lab tests API methods including lab_account_id and lab_slug for better lab targeting, order_transaction_id filtering for orders, appointment_notes for PSC appointments, and clinical_notes for order creation. Enhanced insulin injection samples now include delivery mode, form, and bolus purpose fields. PSC appointment availability endpoint now requires a lab parameter and supports stale data caching. Added idempotency support for PSC appointment booking.
  • The SDK now supports compendium lab test searches, lab account management, and order transaction tracking through new client modules. User creation methods now use the more specific UserAddress type instead of the generic Address type. Added optional logging configuration support to both sync and async clients.
  • New CompendiumClient provides search() and convert() methods for medical test compendium operations. New LabAccountClient enables retrieving team lab account information with status filtering.
  • New OrderTransactionClient provides methods to retrieve transaction details, results, and PDF reports. The LinkClient now supports mobile SDK version tracking and permission granting during manual provider connections. Lab account management now includes filtering capabilities.
  • The SDK now supports enhanced insulin injection data with new bolus purpose, delivery form, and delivery mode classifications. Added comprehensive lab test compendium search capabilities including canonical candidates and provider-specific search functionality. Appointment booking now supports configurable async confirmation with timeout controls and appointment notes for both booking and rescheduling operations.
  • The SDK now supports order transaction tracking to group related orders together. New lab providers include Sonora Quest and CRL. Samsung Health is now available as a manual data provider. The order model has been enhanced with clinical notes and origin tracking fields.
  • The SDK now supports new types for compendium search functionality, order summaries, and parsing job error handling. Extended provider support includes TANDEM_SOURCE and SAMSUNG_HEALTH integrations. Address types now include an optional access_notes field for delivery instructions.

Add comprehensive HTTP request/response logging functionality with configurable log levels and sensitive header redaction. Expand the lab report parser to accept multiple files instead of a single file for batch processing. Additionally, enhance HTTP response wrapper with status code access and improve SSE parsing for discriminated unions.

Key changes:
- Add HTTP request/response logging with sensitive header redaction 
- Change lab report parser to accept multiple files (List[core.File] instead of core.File)
- Add status_code property to HTTP response wrapper
- Enhance SSE parsing for discriminated unions
- Remove INSULIN_INJECTION from IntervalTimeseriesExprTimeseries enum
- Convert AppointmentPscLabs from literal to proper enum with SONORA_QUEST option

🌿 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