Skip to content

feat: add HTTP logging and update lab report file handling#134

Open
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-20T11-49Z
Open

feat: add HTTP logging and update lab report file handling#134
fern-api[bot] wants to merge 1 commit intomasterfrom
fern-bot/2026-03-20T11-49Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

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

Version Bump: The lab report parser_create_job method changed from accepting a single File to requiring List[File], breaking existing callers.

  • The lab report parser_create_job method now accepts multiple files instead of a single file. Update your code to pass a list: parser_create_job(file=[my_file], ...) instead of parser_create_job(file=my_file, ...).
  • The lab tests client now supports additional optional parameters for enhanced functionality: lab filtering with lab_account_id and lab_slug, transaction-based order filtering with order_transaction_id, appointment notes for phlebotomy appointments, 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 with allow_stale.
  • New optional parameters added to lab tests, appointments, and provider connections. Lab test creation now supports lab_account_id and lab_slug parameters. Appointment booking includes appointment_notes and idempotency support. Manual provider connections can now specify SDK versions and granted permissions. Order creation supports clinical_notes parameter, and order filtering includes order_transaction_id.
  • The create_user method now expects a UserAddress parameter instead of Address. This change affects both sync and async clients. Update your imports and method calls to use UserAddress for user creation operations.
  • New Compendium API client available for searching and converting lab test data between different lab providers. New LabAccount API client added for managing team lab account configurations.
  • New OrderTransactionClient provides methods for managing order transactions including retrieving transaction details, results, and PDF reports. The link client now supports optional iOS/Android SDK version tracking and enhanced permission management through new parameters.
  • The SDK now supports lab account management, order transaction tracking, and enhanced lab test compendium search capabilities. New types include ClientFacingLabAccount for managing lab provider accounts, ClientFacingOrderTransaction for tracking order transactions, and comprehensive compendium search functionality with CanonicalCandidate matching. Appointment booking has been enhanced with support for appointment notes and asynchronous confirmation options. Additionally, Sonora Quest is now supported as a lab provider.
  • New types and provider support added for enhanced lab testing and health data capabilities. The SDK now includes response types for order transaction management, lab account operations, and derived readiness data querying. Additional provider support has been added for Samsung Health and Tandem Source, along with new lab providers Sonora Quest and CRL.
  • The SDK now supports compendium search functionality with new types including RelatedCandidate, SearchMode, and SearchCompendiumResponse. Added comprehensive US state enumeration with UsState and a new UserAddress type for standardized address handling. Enhanced address types now include optional access notes for delivery instructions.

Add HTTP request/response logging with configurable logger support and sensitive header redaction. Update lab report parser endpoint to accept multiple files instead of a single file. Enhance HTTP response objects with status code access and improve AppointmentPscLabs enum.

Key changes:
- Add logging_config parameter to client constructors for HTTP request/response logging
- Change lab report parser_create_job file parameter from single File to List[File]
- Add status_code property to BaseHttpResponse for easier response inspection
- Expand AppointmentPscLabs enum to include SONORA_QUEST option
- Add comprehensive SSE parsing utilities for discriminated unions

🌿 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