Skip to content

feat!: change ResourceReviewRemediated.getAction() return type to ResourceReviewRemediatedAction - #265

Open
fern-api[bot] wants to merge 4 commits into
mainfrom
fern-bot/2026-10-30_20-49-45_830
Open

fern-api[bot] wants to merge 4 commits into
mainfrom
fern-bot/2026-10-30_20-49-45_830

Conversation

@fern-api

@fern-api fern-api Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

⚠️ 18.1.0 → 19.0.0

Breaking: MAJOR because ResourceReviewRemediated.getAction() changed its return type from Optional<String> to Optional<ResourceReviewRemediatedAction>, and both Builder.action(String) and Builder.action(Optional<String>) overloads were replaced with ResourceReviewRemediatedAction-typed equivalents, breaking all existing callers that pass or compare string values.

Breaking Changes

  • ResourceReviewRemediated.getAction() — now returns Optional<ResourceReviewRemediatedAction> instead of Optional<String>; replace string comparisons with ResourceReviewRemediatedAction enum constants, and update Builder.action(...) call sites to pass ResourceReviewRemediatedAction instead of String.

Added

  • RequestOptions.Builder.addBodyProperty() / .bodyProperties() — inject arbitrary key/value pairs into JSON or form-urlencoded request bodies, acting as the full body for endpoints with no defined body schema.
  • RetryInterceptor.newAsyncCall() — async retry factory that schedules backoff on a daemon thread, freeing OkHttp dispatcher slots and enabling immediate cancellation.
  • Stream.fromSseWithEventDiscrimination() and SseEventParser.parseEventLevelUnion() — new SSE stream factories supporting event-type-discriminated union deserialization from the full SSE envelope.
  • New FHIR-to-OMOP response types — DeviceExposureRow, DeviceExposureContext, DeviceExposureLink, DeviceExposureEvidence, SpecimenRow, AllergyCodingEvidence, AllergyMappingResolution, and related enum types added to the fhir2omop package; OmopTables now exposes getDeviceExposure() and getSpecimen().
  • New optional fields across OMOP row and summary types — DrugExposureRow.getQuantity(), MeasurementRow.getUnitSourceConceptId(), VisitOccurrenceRow.getVisitSourceConceptId(), ProviderRow.getNpi(), Summary.getRowsForReview(), MappingEntry.getSourceCodingIndex(), and MappingEntry.getResolution() added.
  • See full changelog for all changes

Changed

  • additionalProperties deserialization — all request and response builder types now filter known JSON field names out of additionalProperties, preventing duplicate capture of recognized fields.
  • CreateMultiRequest.getSmallNote() — new optional boolean field that bills at the small-note rate; text must be ≤ 15,360 bytes UTF-8 when true.
  • CreateMultiRequest / DocumentMultiRequest field documentation — getImplementationGuide() and getDetectionEffort() docs updated; deep and standard detection effort now produce identical results and the field is deprecated.
  • DocumentMultiResponse.getPageClassifications() — now populated on every document request, not only when page_filter or split_classifications is explicitly set.
  • MappingPath and MappingPathMappingStatus — new response type and open enum describing a single OMOP concept-mapping chain step, with ALREADY_STANDARD, MAPPED, and POLICY_MAPPED constants.

Fixed

  • @JsonAnySetter guard on agent builder types — known field names are no longer accidentally routed into additionalProperties during JSON deserialization.

See full changelog

fern-api Bot added 3 commits October 30, 2026 20:49
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-java-sdk: 4.32.4
… return type to ResourceReviewRemediatedAction

Change `ResourceReviewRemediated.getAction()` from returning `Optional<String>` to
`Optional<ResourceReviewRemediatedAction>`, introducing a new enum type that encodes
the possible review actions (removed_codings, removed_fields, flagged_required).
Callers that read or compare the action as a plain string must migrate to the new enum.

Also refactor `@JsonAnySetter` handling across all builder types to use a private
`putAdditionalPropertyFromJson` method that guards against overwriting known fields,
preventing deserialization collisions when unknown JSON keys shadow known property names.

Additional documentation updates clarify `DocumentMultiResponse.getPageClassifications()`
(now returned on every request, not only when page_filter/split_classifications is set),
`ResourceReview.getTargets()` (empty list disables the audit), `ResourceReviewResult.getRemediated()`
(covers all review outcomes), and `ProfileUploadRequest.getImplementationGuide()`
(phenoml_hpo is now also a reserved IG name).

Key changes:
- `ResourceReviewRemediated.getAction()` / `Builder.action(...)` — return type changed from `Optional<String>` to `Optional<ResourceReviewRemediatedAction>`; update callers to use enum constants
- `putAdditionalPropertyFromJson` private guard method added to all builder types to prevent known-field keys from landing in `additionalProperties` during JSON deserialization
- `DocumentMultiResponse.getPageClassifications()` Javadoc updated: field is now populated on every request, not only when a page filter or split classification is supplied
- `ResourceReview.getTargets()` Javadoc updated: an empty list now explicitly disables the audit
- `ProfileUploadRequest.getImplementationGuide()` Javadoc updated: `phenoml_hpo` added as a reserved IG name alongside `us_core`

🌿 Generated with Fern
@cursor

cursor Bot commented Oct 30, 2026

Copy link
Copy Markdown

This PR is too large for Bugbot to review. It changes 47,952 lines and 3,907,542 characters. Split the change into smaller pull requests to get a review.

This branch has not been deployed

No deployments
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.

0 participants