Skip to content

SDK regeneration - #254

Open
fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-10-07_20-54-53_909
Open

fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-10-07_20-54-53_909

Conversation

@fern-api

@fern-api fern-api Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

17.0.0 → 17.0.1

🌿 Generated with Fern


✅ Customizations automatically preserved in this update.


Note

Medium Risk
FHIR2OMOP response shapes and Lang2FHIR request fields changed alongside removed SDK error types, which can break callers that depended on prior models or exception handling.

Overview
Regenerates the Python SDK to 17.0.1 from an updated API spec (Fern CLI/generator bump), with packaging pinned to 17.0.1 and changelog/docs/examples aligned.

FHIR→OMOP (client.fhir2omop.create) gains optional vocab_version and a much broader contract: more row-producing resources (location/org/practitioner roles, derived observation_period, etc.), richer mappings / diagnostics / provider_role_contexts, and expanded Pydantic row types. ServiceUnavailableError is no longer exported for this module.

Lang2FHIR adds primary_patient (with patient_reference deprecated), widens supported resource enum values, and documents RTF/XML/C-CDA and size limits; batch upload docs reflect the same fields.

Implementation guides add create_version and get_version; delete semantics/docs now describe removing canonical package versions.

Client/runtime fixes: bearer token may be a string or callable; instance_url respects environment URL templates; OAuth refresh sends grant_type=client_credentials; HTTP layer handles optional bodyless requests, TCP keepalive, and skips empty SSE frames; agent chat streaming example corrected; quote_path_param for safe path encoding. Construe drops BadGatewayError and adjusts phenocr error mapping (502/503 → generic handling).

Reviewed by Cursor Bugbot for commit 2ca85e2. Bugbot is set up for automated code reviews on this repo. Configure here.

fern-api Bot and others added 5 commits October 7, 2026 20:55
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 5.31.1
🌿 Generated with Fern
Patches applied (1):
  - patch-6516695e: Release 15.0.2: restore bundled openapi.json packaging (#169)
🌿 Generated with Fern

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2ca85e2. Configure here.


headers: typing.Dict[str, str] = {
"User-Agent": "phenoml/17.0.0",
"User-Agent": "phenoml/0.0.0-fern-placeholder",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User-Agent uses generator placeholder

Medium Severity

Every request now sends User-Agent: phenoml/0.0.0-fern-placeholder while X-Fern-SDK-Version is correctly set to 17.0.1. The previous release sent phenoml/17.0.0, so the generator left a placeholder instead of substituting the package version.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2ca85e2. Configure here.

This branch has not been deployed

No deployments
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