Skip to content

Transactions/Batches containing searches using HTTP POST entries return Parameters instead of search results #950

@JeremiahSanders

Description

@JeremiahSanders

Describe the bug
Transactions and batches which contain search entries specifying HTTP POST (i.e., FhirClient's .SearchUsingPost() method) return Parameters objects in the resulting Bundle rather than the results of the search.

If the transaction includes search via HTTP GET, its results will be returned as expected. (I.e., only HTTP POST is affected)

To Reproduce
Steps to reproduce the behavior:

  1. Seed a FHIR resource.
  2. Create a TransactionBuilder from your FHIR Client and use its .SearchUsingPost() method to add a FHIR search for the resource just created.
  3. Convert the TransactionBuilder to a Bundle and send it via a FhirClient.
  4. Observe the response Bundle entries. You won't find the resource you were searching for.

Expected behavior
Returned Bundle is expected to contain the search results, rather than a saved Parameters resource.

Spark version

  • Version: 2.3.4

Operating system + Database

  • OS: Linux
  • Database: AWS DocumentDB

Container service / Cloud infrastructure:

  • Container service: AWS ECS
  • Cloud provider: AWS
  • Cloud infrastructure: Docker container
  • Database as a service: AWS DocumentDB w/MongoDB compatibility

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