feat: add FHIR2OMOP and Voice transcription service clients#175
Closed
fern-api[bot] wants to merge 2 commits into
Closed
feat: add FHIR2OMOP and Voice transcription service clients#175fern-api[bot] wants to merge 2 commits into
fern-api[bot] wants to merge 2 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.9.2
…e clients Introduce two new service clients — `Fhir2OmopClient` / `AsyncFhir2OmopClient` and `VoiceClient` / `AsyncVoiceClient` — surfacing the FHIR-to-OMOP CDM mapping endpoint (`POST /fhir2omop/create`) and the audio transcription endpoint (`POST /transcribe`) respectively. Key changes: - Add `AsyncPhenomlClient.fhir2Omop()` and `AsyncPhenomlClient.voice()` accessor methods - Add `CreateOmopRequest`, `CreateOmopResponse`, and all supporting OMOP CDM row/mapping types - Add `TranscribeResponse` with a required `transcript` field for the voice service - Add `aidbox` as a supported `Provider` enum value in FHIR provider creation 🌿 Generated with Fern
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.7.0 → 17.8.0
Added
Fhir2OmopClient/AsyncFhir2OmopClient— new service clients accessible viaPhenomlClient.fhir2Omop()/AsyncPhenomlClient.fhir2Omop(), exposing acreate(CreateOmopRequest)method that maps a FHIR R4 resource or Bundle into OMOP CDM v5.4 rows viaPOST /fhir2omop/create.VoiceClient/AsyncVoiceClient— new service clients accessible viaPhenomlClient.voice()/AsyncPhenomlClient.voice(), exposingtranscribe(...)methods that upload raw audio bytes (WAV, FLAC, MP3, OGG/WebM Opus) toPOST /transcribeand return aTranscribeResponse.OmopTables,PersonRow,VisitOccurrenceRow,ConditionOccurrenceRow,DrugExposureRow,ProcedureOccurrenceRow,MeasurementRow,ObservationRow,ObservationPeriodRow,DeathRow,LocationRow,CareSiteRow,ProviderRow,MappingEntry,DroppedResource, andSummaryrepresent the full OMOP CDM v5.4 output of the FHIR-to-OMOP conversion.ConflictError— new typed exception (HTTP 409) thrown byRawChatClient.send(...)andRawChatClient.stream(...)(sync and async) when a session already has an active turn.Provider.AIDBOX—"aidbox"is now a supported constant in theProviderenum, including aValue.AIDBOXentry andVisitor.visitAidbox()method.See full changelog
Note
Low Risk
Additive generated-client and model changes with a patch version bump; no manual runtime logic beyond API surface alignment.
Overview
17.8.0 is a Fern-regenerated SDK release (version metadata, Maven coordinates, and default
User-Agent/X-Fern-SDK-Versionheaders).The FHIR-to-OMOP response shape grows to cover more OMOP CDM v5.4 tables:
OmopTablesnow includes optional lists for location, care_site, provider, death, and observation_period, backed by new row types (LocationRow,CareSiteRow,ProviderRow,DeathRow,ObservationPeriodRow). Existing clinical and person/visit rows gain optional linkage fields such asprovider_id,location_idonPersonRow, andcare_site_idonVisitOccurrenceRow. Wire-test fixtures are updated to match.Per the changelog, this release also wires
PhenomlClient.fhir2Omop()/voice()(and async equivalents), maps agent chat HTTP 409 toConflictErroronRawChatClientsend/stream paths, and addsProvider.AIDBOXfor FHIR provider configuration.Reviewed by Cursor Bugbot for commit 1baf579. Bugbot is set up for automated code reviews on this repo. Configure here.