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:
- Seed a FHIR resource.
- Create a
TransactionBuilder from your FHIR Client and use its .SearchUsingPost() method to add a FHIR search for the resource just created.
- Convert the
TransactionBuilder to a Bundle and send it via a FhirClient.
- 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
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