feat: expand OMOP CDM coverage and add provider_id/location_id fields#193
Open
fern-api[bot] wants to merge 4 commits into
Open
feat: expand OMOP CDM coverage and add provider_id/location_id fields#193fern-api[bot] wants to merge 4 commits into
fern-api[bot] wants to merge 4 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.14.13
…/location_id fields Add five new OMOP CDM v5.4 row types to the fhir2omop module and enrich existing row types with provider and location linkage fields. Also adds `source_pages` to `CreateMultiResponseResourcesItem` for document-level page provenance. Key changes: - New types: `CareSiteRow`, `DeathRow`, `LocationRow`, `ObservationPeriodRow`, `ProviderRow` exported from `phenoml.fhir2omop` - `OmopTables` gains five new optional list fields: `location`, `care_site`, `provider`, `death`, `observation_period` - `ConditionOccurrenceRow`, `DrugExposureRow`, `MeasurementRow`, `ObservationRow`, `ProcedureOccurrenceRow`, `VisitOccurrenceRow` each gain an optional `provider_id` field; `PersonRow` gains `location_id`; `VisitOccurrenceRow` also gains `care_site_id` - `CreateMultiResponseResourcesItem` gains optional `source_pages` field with 1-indexed page numbers from `/lang2fhir/document/multi` 🌿 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.
…79018e66367384c7 [skip ci]
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,ProviderRow— five new OMOP CDM v5.4 row types exported fromphenoml.fhir2omop, covering care sites, deaths, locations, observation periods, and providers.OmopTables.location,.care_site,.provider,.death,.observation_period— new optional list fields onOmopTablespopulated when the corresponding OMOP tables are produced by the FHIR-to-OMOP conversion.provider_idfield — added as an optional field toConditionOccurrenceRow,DrugExposureRow,MeasurementRow,ObservationRow,ProcedureOccurrenceRow, andVisitOccurrenceRowto link clinical events to their ordering provider.PersonRow.location_idandVisitOccurrenceRow.care_site_id— new optional linkage fields connecting persons to their location and visits to their care site.CreateMultiResponseResourcesItem.source_pages— new optionalList[int]field containing 1-indexed page numbers indicating which source document pages a FHIR resource was extracted from (populated by/lang2fhir/document/multionly).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-30_15-41-54_988 origin/fern-bot/2026-06-30_15-41-54_988fern 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 API types and version bump; main operational risk is merging without resolving the Fern replay
pyproject.tomlconflict, which could drop custom OpenAPI packaging on the next regen.Overview
Release 16.5.0 (Fern regen from API spec
5275e24…) bumps package/SDK metadata, bundled OpenAPI, wire tests, and examples to match the updated API.FHIR → OMOP (
phenoml.fhir2omop) adds five OMOP CDM v5.4 row models (CareSiteRow,DeathRow,LocationRow,ObservationPeriodRow,ProviderRow) and wires them intoOmopTablesas optionallocation,care_site,provider,death, andobservation_periodlists. Existing clinical row types gain optionalprovider_id;PersonRowgetslocation_id;VisitOccurrenceRowgetsprovider_idandcare_site_id.Lang2FHIR adds optional
source_pages(sourcePagesin JSON) onCreateMultiResponseResourcesItemfor 1-indexed document page provenance (document multi endpoint).Merge note: Fern replay marks an unresolved conflict on
pyproject.tomlbetween the new generation (version 16.5.0) and the prior customization that pins version andopenapi.jsonwheel/sdist packaging—resolve withfern replay resolvebefore merge if you rely on that patch.Reviewed by Cursor Bugbot for commit 5232ab7. Bugbot is set up for automated code reviews on this repo. Configure here.