Release 16.5.0: add SSE reconnection and OMOP tables#194
Open
fern-api[bot] wants to merge 5 commits into
Open
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.15.2
…s, and SSE safety limits Expand the SDK with several new capabilities: configurable SSE stream reconnection support, five new FHIR-to-OMOP row types, additional `provider_id` and `location_id` fields on existing OMOP row models, and a 1 MiB per-line safety guard in the SSE event source. Key changes: - Add `stream_reconnection_enabled` and `max_stream_reconnection_attempts` optional parameters to `PhenomlClient`, `AsyncPhenomlClient`, and `BaseClientWrapper`, enabling automatic SSE stream reconnection - Add `stream_reconnection_enabled` and `max_stream_reconnection_attempts` fields to `RequestOptions` TypedDict for per-request override - Introduce five new OMOP CDM v5.4 row types: `CareSiteRow`, `DeathRow`, `LocationRow`, `ObservationPeriodRow`, and `ProviderRow`, all exported from `phenoml.fhir2omop` - Add optional `provider_id` field to `ConditionOccurrenceRow`, `DrugExposureRow`, `MeasurementRow`, `ObservationRow`, and `ProcedureOccurrenceRow`; add optional `location_id` to `PersonRow` - Add `location`, `care_site`, `provider`, `death`, and `observation_period` table lists to `OmopTables` - Add 1 MiB per-line size guard in `EventSource` to prevent unbounded memory growth on malformed SSE streams - Add `User-Agent` header to all outgoing requests 🌿 Generated with Fern
Patches with unresolved conflicts (1): - patch-6516695e: Release 15.0.2: restore bundled openapi.json packaging (#169) Run `fern-replay resolve` to apply these customizations.
…4937d5f0cea5f6a7 [skip ci]
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e71c271. Configure here.
Patches replayed: - patch-6516695e: Release 15.0.2: restore bundled openapi.json packaging (#169)
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.

16.4.0 -> 16.5.0
Adds configurable SSE stream reconnection and expands the FHIR-to-OMOP and Lang2FHIR response models. Minor bump due to the new public options, models, and optional fields.
Added
stream_reconnection_enabledandmax_stream_reconnection_attempts— new optional parameters onPhenomlClient,AsyncPhenomlClient, andRequestOptionsto configure automatic SSE stream reconnection behavior.CareSiteRow,DeathRow,LocationRow,ObservationPeriodRow,ProviderRow— five new OMOP CDM v5.4 row types exported fromphenoml.fhir2omoprepresenting care site, death, location, observation period, and provider records.OmopTables— now includes optionallocation,care_site,provider,death, andobservation_periodtable lists alongside existing tables.VisitOccurrenceRow.provider_idandVisitOccurrenceRow.care_site_id— new optional fields linking visit occurrences to OMOP provider and care site records.CreateMultiResponseResourcesItem.source_pages— new optionalList[int]field containing 1-indexed source document page numbers from which a FHIR resource was extracted, populated by the/lang2fhir/document/multiendpoint.Changed
ConditionOccurrenceRow,DrugExposureRow,MeasurementRow,ObservationRow, andProcedureOccurrenceRow— each gains an optionalprovider_idfield linking the clinical event to an OMOP provider record.PersonRow— gains an optionallocation_idfield linking the person to an OMOP location record.