Release 17.6.0: add agent conflict errors#173
Merged
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.9.2
…gent chat Introduce the FHIR-to-OMOP mapping service as a first-class SDK client, and add HTTP 409 Conflict error handling to the agent chat endpoints. Key changes: - Add `Fhir2OmopClient` and `AsyncFhir2OmopClient` (plus raw variants) accessible via `PhenomlClient.fhir2Omop()` and `AsyncPhenomlClient.fhir2Omop()`, exposing `POST /fhir2omop/create` - Add new request/response types: `CreateOmopRequest`, `CreateOmopResponse`, `OmopTables`, `PersonRow`, `VisitOccurrenceRow`, `ConditionOccurrenceRow`, `DrugExposureRow`, `ProcedureOccurrenceRow`, `MeasurementRow`, `ObservationRow`, `MappingEntry`, `Summary`, and `DroppedResource` - Add `ConflictError` (HTTP 409) to agent chat sync and async clients (`RawChatClient`, `AsyncRawChatClient`) 🌿 Generated with Fern
…d23d476aa286ecdd [skip ci]
gavinsharp
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
17.5.0 -> 17.6.0
Adds a typed 409 conflict error for concurrent agent chat turns and clarifies session concurrency docs. Also expands fhir2omop docs around supported resource mappings and dropped-resource semantics. Minor bump because the SDK adds a public typed exception.
Added
ConflictError— new typed exception thrown byRawChatClient.send(...),RawChatClient.stream(...),AsyncRawChatClient.send(...), andAsyncRawChatClient.stream(...)for HTTP 409 responses when a session already has an active turn.Changed
AgentChatRequest.getSessionId()andAgentStreamChatRequest.getSessionId()— Javadoc now states that only one request may be active per session at a time and overlapping turns return409 Conflict.Fhir2OmopClient.create(...)andAsyncFhir2OmopClient.create(...)— Javadoc now lists the supported FHIR resource-to-OMOP table mappings and clarifies that unsupported resource types are accepted but ignored.CreateOmopResponse.getDropped()— Javadoc now clarifies that only supported resources missing required subject/patient, code, or medication reference data appear indropped; unsupported resource types are ignored.Note
Low Risk
Adds a new public exception type and documentation-only fhir2omop clarifications; no runtime mapping or auth changes beyond reflecting the API spec.
Overview
17.6.0 is a Fern-regenerated SDK bump (17.5.0 → 17.6.0) aligned with an updated OpenAPI spec.
Agent chat: Adds public
ConflictError(HTTP 409) and maps it in sync/asyncRawChatClientforsendandstreamwhen a session already has an in-flight turn.session_idJavadoc onAgentChatRequest/AgentStreamChatRequest(and reference docs) now documents one active request per session and 409 on overlap.FHIR2OMOP: No mapping logic changes—only expanded Javadoc/OpenAPI text on
create,CreateOmopRequest, andCreateOmopResponse.getDropped()listing supported FHIR→OMOP row types, which bundle types are ignored vs. listed underdropped, and that unsupported types are silently ignored.Reviewed by Cursor Bugbot for commit 640eb50. Bugbot is set up for automated code reviews on this repo. Configure here.