feat: add OMOP CDM v5.4 table types and provider linkage fields#192
Closed
fern-api[bot] wants to merge 3 commits into
Closed
feat: add OMOP CDM v5.4 table types and provider linkage fields#192fern-api[bot] wants to merge 3 commits into
fern-api[bot] wants to merge 3 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.14.13
…inkage fields Expand the fhir2omop module with five new OMOP CDM v5.4 row types and add `provider_id` / `care_site_id` / `location_id` linkage fields to existing row models. The `OmopTables` aggregate now surfaces the new tables so callers can access location, care-site, provider, death, and observation-period data returned by the conversion endpoint. Key changes: - Add `CareSiteRow`, `DeathRow`, `LocationRow`, `ObservationPeriodRow`, and `ProviderRow` Pydantic models under `phenoml.fhir2omop` - Add optional `location`, `care_site`, `provider`, `death`, and `observation_period` list fields to `OmopTables` - Add optional `provider_id` field to `ConditionOccurrenceRow`, `DrugExposureRow`, `MeasurementRow`, `ObservationRow`, `ProcedureOccurrenceRow`, and `VisitOccurrenceRow` - Add optional `care_site_id` to `VisitOccurrenceRow` and `location_id` to `PersonRow` - Export all new types from `phenoml.fhir2omop` and `phenoml.fhir2omop.types` 🌿 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.
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
Added
CareSiteRow,DeathRow,LocationRow,ObservationPeriodRow, andProviderRow— new Pydantic models underphenoml.fhir2omoprepresenting the corresponding OMOP CDM v5.4 destination tables.OmopTables.location,.care_site,.provider,.death, and.observation_period— new optional list fields onOmopTablesthat surface rows for the newly supported OMOP tables returned by the FHIR-to-OMOP conversion endpoint.provider_idoptional field added toConditionOccurrenceRow,DrugExposureRow,MeasurementRow,ObservationRow,ProcedureOccurrenceRow, andVisitOccurrenceRowto link clinical events to their performing provider.care_site_idoptional field added toVisitOccurrenceRow;location_idoptional field added toPersonRowto capture physical location linkage.See full changelog
Action required: 1 file with unresolved customization conflicts
The new generation changed code you previously customized. Non-conflicting customizations have been applied automatically. The following files need manual resolution:
pyproject.tomlHow to resolve
git fetch origin && git checkout -b fern-bot/2026-06-23_21-44-49_528 origin/fern-bot/2026-06-23_21-44-49_528fern replay resolvefern replay resolveagain to finalizeYour resolved customizations will be remembered on future SDK generations.
If you merge this PR without resolving, your unresolved customizations will conflict again on the next generation.
Note
Low Risk
Additive, optional Pydantic fields and new types only; no client method or auth changes. Packaging conflict in replay is operational, not runtime.
Overview
Bumps the SDK to 16.5.0 (changelog,
User-Agent/X-Fern-SDK-Version, Fern metadata) and expandsphenoml.fhir2omopso FHIR-to-OMOP responses can deserialize additional OMOP CDM v5.4 tables and cross-table IDs.New models —
CareSiteRow,DeathRow,LocationRow,ObservationPeriodRow, andProviderRow, exported fromphenoml.fhir2omopand wired into lazy-import__init__modules.OmopTables— adds optional list fieldslocation,care_site,provider,death, andobservation_periodalongside the existing clinical tables.Linkage on existing rows — optional
provider_idon condition, drug, measurement, observation, procedure, and visit occurrence rows;care_site_idon visits;location_idon person rows.Wire tests’ mock
/fhir2omop/createbody is updated to include the new table keys. Fern replay records a new generation; the priorpyproject.tomlcustomization (bundledopenapi.jsonpackaging) is marked unresolved because the regen also touched the version line—merge may needfern replay resolvebefore the next generation.Reviewed by Cursor Bugbot for commit 0d97036. Bugbot is set up for automated code reviews on this repo. Configure here.