Skip to content

feat: add HTTP request logging and enhance lab report file processing#133

Open
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-19T16-00Z
Open

feat: add HTTP request logging and enhance lab report file processing#133
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-19T16-00Z

Conversation

@fern-api
Copy link
Contributor

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

Version Bump: Existing callers of parser_create_job() expecting single core.File parameter will get type errors - now requires List[core.File].

  • The lab report parser now accepts multiple files in a single upload operation through the parser_create_job method. HTTP responses now include a status_code property for easier debugging. Added optional logging configuration to track HTTP requests with automatic redaction of sensitive headers.
  • The lab tests API now supports additional filtering and customization options. New parameters include lab filtering by account ID or slug, order transaction ID filtering, appointment notes for phlebotomy requests, idempotency support for PSC appointment booking, and clinical notes for order creation. The PSC appointment availability method now requires a lab parameter and supports stale data caching.
  • New optional parameters available for lab tests and appointment booking methods. The create_lab_test() method now accepts lab_account_id and lab_slug parameters. The create_appointment() method supports an appointment_notes parameter. The get_psc_appointment_availability() method now requires a lab parameter (previously hardcoded to "quest"). Several other methods gained new optional parameters for enhanced customization.
  • The address parameter in user creation methods now expects UserAddress instead of Address. Update your imports and parameter usage: replace from vital import Address with from vital import UserAddress and ensure you're passing UserAddress objects when creating users.
  • New CompendiumClient available for searching and converting laboratory test data. Use client.compendium.search() to find lab tests across providers and client.compendium.convert() to transform test data between different lab formats.
  • New LabAccountClient and OrderTransactionClient are now available. The LabAccountClient provides access to team lab account information, while the OrderTransactionClient enables retrieval of transaction details, results, and PDF reports. Manual provider linking now supports optional iOS/Android SDK version parameters and granted permissions.
  • New lab account management capabilities with ClientFacingLabAccount model for tracking lab provider accounts, delegated flows, and billing configurations. Added order transaction tracking through ClientFacingOrderTransaction and related models. Enhanced appointment booking with support for appointment notes and asynchronous confirmation options. Added support for Sonora Quest lab provider and new parsing job webhook events for lab report processing updates.
  • The SDK now supports lab account management with new models for team lab accounts, order transactions, and lab test conversion responses. Added derived readiness column expressions for enhanced data querying capabilities. New provider support includes Samsung Health and Tandem Source integrations. Enhanced order tracking with corrected result statuses and improved patient address handling with access notes.
  • New types available for compendium search functionality including RelatedCandidate, SearchCompendiumResponse, ResultMetadataGender, SearchMode, and UsState enums. Added UserAddress model and access_notes field to UsAddress for enhanced address handling.

Add comprehensive HTTP request/response logging with configurable log levels and automatic header redaction for security. Update lab report parser to accept multiple files instead of single file uploads. Include platform metadata in SDK headers and expose status codes in HTTP responses.

Key changes:
- Add logging configuration support with debug/error level HTTP request logging
- Update lab report parser_create_job to accept List[core.File] instead of core.File
- Add status_code property to BaseHttpResponse class
- Include platform metadata (Python version, OS) in X-Fern-Runtime and X-Fern-Platform headers
- Add sensitive header redaction for authorization tokens and API keys
- Expand AppointmentPscLabs enum to include 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