Skip to content

SDK regeneration - #235

Closed
fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-10-02_13-52-37_219
Closed

fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-10-02_13-52-37_219

Conversation

@fern-api

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

Copy link
Copy Markdown
Contributor

17.13.0 → 17.13.1

🌿 Generated with Fern


Note

Medium Risk
Large auto-generated surface area (new batch APIs, profile/IG versioning, expanded FHIR2OMOP types) plus breaking builder/auth changes (grantType removed, close() behavior) that consumers must adopt when upgrading.

Overview
Regenerates the Java SDK to 17.13.1 (Fern CLI/generator bump) against a newer API spec, with version and publish metadata updated in build.gradle, Fern lockfiles, and client headers.

New and expanded API clients: adds client.lang2FhirBatch() for asynchronous Lang2FHIR batch jobs (create/list, upload items, finalize/cancel, poll status, fetch results). Implementation guides gain canonical version publish/get endpoints; custom FHIR profiles gain a profiles().versions() sub-client for retained StructureDefinition versions. Lang2FHIR requests add optional primaryPatient (with patientReference documented as a deprecated alias), more detectable resource types, and broader document upload types in docs/examples.

FHIR→OMOP model growth: CreateOmopResponse and related types now surface provider_role_contexts, diagnostics, richer mappings, and many new OMOP row/table types; supported FHIR resource coverage in request docs expands (e.g. Location, Organization, Practitioner/Role).

Client/runtime tweaks: PhenomlClient / AsyncPhenomlClient implement AutoCloseable and delegate to ClientOptions.close() (shuts down owned OkHttp only). Credential auth drops configurable grantType (always client_credentials). instanceUrl + custom environment handling is adjusted so non-default environments are not overwritten blindly.

Docs/examples (reference.md, code-examples.json, changelog.md) are refreshed to match the spec; construe crosswalk error mapping is simplified (502/503/501 → 500 InternalServerError in generated clients).

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

fern-api Bot and others added 5 commits October 2, 2026 13:52
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-java-sdk: 4.21.1
🌿 Generated with Fern
🌿 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 aa3e491. Configure here.

.addPathSegments("items");
FileStream fs = new FileStream(stream, filename, mediaType);
MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM);
multipartBodyBuilder.addFormDataPart("file", filename, fs.toRequestBody());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stream uploads omit required fields

High Severity

The stream-based uploadItem overloads only send the file multipart part and drop document, create, request_id, and id. The API requires exactly one of document or create, so these overloads cannot produce a valid upload. The unused file parameter is also ignored.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit aa3e491. Configure here.

@gavinsharp gavinsharp closed this Oct 8, 2026
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.

1 participant