Skip to content

SDK regeneration - #226

Open
fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-09-30_15-17-02_324
Open

fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-09-30_15-17-02_324

Conversation

@fern-api

@fern-api fern-api Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

17.13.0 → 17.13.1

🌿 Generated with Fern


Note

Medium Risk
Large generated surface area adds batch APIs and changes Lang2FHIR/OMOP request and response shapes; OAuth grantType customization was removed, which may break callers that relied on it.

Overview
Regenerates the phenoml Java SDK to 17.13.1 (Fern CLI/generator bump) so client types and docs track the latest API definition.

New capabilities exposed on PhenomlClient / AsyncPhenomlClient:

  • lang2FhirBatch() — async batch jobs for lang2fhir (create, upload items, finalize, cancel, list/get status, fetch per-item results).
  • Profile versioning — profiles().versions() list/create/get/delete retained StructureDefinition versions; profile create/update/delete semantics and list filtering docs updated.
  • Implementation guide packages — implementationGuides().implementationguides().createVersion() and getVersion(); delete behavior documented as removing name-level metadata and exact package versions.

Lang2FHIR request model changes: optional primaryPatient (identifier, name, birthDate, gender) on multi create/document-multi; patientReference is now a deprecated alias and cannot be combined with primaryPatient. Create resource enums gain familymemberhistory, medicationadministration, medicationstatement. Document endpoints document RTF and XML/C-CDA (plus size limits) alongside PDF/images.

FHIR→OMOP client/types: broader resource coverage and richer response shape — diagnostics on CreateOmopResponse, mapping entries with omop_field / selected, forward-compatible MappingEntryMappingStatus and ReferenceDiagnosticOutcome enums, and updated field semantics (e.g. bare codes in *_source_value, MedicationRequest drug_type_concept_id 32838).

SDK ergonomics: sync/async clients implement AutoCloseable via ClientOptions.close() (OkHttp lifecycle when the SDK owns the client). OAuth credential builders drop configurable grantType (always client_credentials). instanceUrl only overrides the URL template when environment is null/DEFAULT.

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

fern-api Bot and others added 5 commits September 30, 2026 15:17
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 090c279. Configure here.

} catch (IOException e) {
throw new PhenomlClientException("Network error executing HTTP request", e);
}
}

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

Medium Severity

The InputStream uploadItem overloads ignore the file argument and never attach document, create, request_id, or id. The API requires exactly one of document plus a file or JSON-only create, so these overloads cannot produce a valid multipart item.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 090c279. 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