Skip to content

Release 16.5.0: add SSE reconnection and OMOP tables#194

Open
fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-07-02_17-53-06_076
Open

Release 16.5.0: add SSE reconnection and OMOP tables#194
fern-api[bot] wants to merge 5 commits into
mainfrom
fern-bot/2026-07-02_17-53-06_076

Conversation

@fern-api

@fern-api fern-api Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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_enabled and max_stream_reconnection_attempts — new optional parameters on PhenomlClient, AsyncPhenomlClient, and RequestOptions to configure automatic SSE stream reconnection behavior.
  • CareSiteRow, DeathRow, LocationRow, ObservationPeriodRow, ProviderRow — five new OMOP CDM v5.4 row types exported from phenoml.fhir2omop representing care site, death, location, observation period, and provider records.
  • OmopTables — now includes optional location, care_site, provider, death, and observation_period table lists alongside existing tables.
  • VisitOccurrenceRow.provider_id and VisitOccurrenceRow.care_site_id — new optional fields linking visit occurrences to OMOP provider and care site records.
  • CreateMultiResponseResourcesItem.source_pages — new optional List[int] field containing 1-indexed source document page numbers from which a FHIR resource was extracted, populated by the /lang2fhir/document/multi endpoint.

Changed

  • ConditionOccurrenceRow, DrugExposureRow, MeasurementRow, ObservationRow, and ProcedureOccurrenceRow — each gains an optional provider_id field linking the clinical event to an OMOP provider record.
  • PersonRow — gains an optional location_id field linking the person to an OMOP location record.

fern-api Bot and others added 4 commits July 2, 2026 17:52
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.

@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 2 potential issues.

Fix All in Cursor

❌ 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.

Comment thread src/phenoml/core/client_wrapper.py Outdated
Comment thread src/phenoml/core/client_wrapper.py
Patches replayed:
  - patch-6516695e: Release 15.0.2: restore bundled openapi.json packaging (#169)
@gavinsharp gavinsharp changed the title feat: add stream reconnection, new OMOP table types, and SSE safety limits Release 16.5.0: add SSE reconnection and OMOP tables Jul 2, 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