Skip to content

Scoped API verify: a FHIR search OperationOutcome entry is read as a marker match #2526

Closed

Description

@abrichr

Found by the independent review of #2525. Not blocking there, and it predates that PR.

A FHIR searchset Bundle can carry an OperationOutcome entry with search.mode: outcome (a warning or an error about the search itself). txplan/scoped.py _search reads every entry.*.resource as a matching record. So an outcome entry with an id:

  • counts as a found create, so recovery can adopt a write that never landed;
  • counts toward duplicate_write.

Fix: let a pack declare which items are matches. One way is a search_match filter, e.g. {path: search.mode, equals: match} on the entry, or resourceType equal to the collection's type. Then any outcome entry with a non-informational severity should make the search an error, not a match. This is the same missing-evidence class as the rest of #2525's fixes.

Activity

  1. added a commit that references this issue on Nov 23, 2026
    a5f92f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions