microsoft / microsoft/fhir-server
Improve error message for bulk export in FHIR batches & transactions
Nobody has claimed this yet.
- Dominant language
- TSQL
- Stars
- 1.4k
- Forks
- 592
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 41
Description
User story
Currently, export requests in batches and transactions will return a 400 because the Accept and Prefer headers cannot be provided. The error message specifies: "Value supplied for the "Accept" header is not supported.".
Instead, return Not Supported and update the error message to explain that export operations are not supported in batches and transactions.
Acceptance criteria
If users try to put an export request in a batch or transaction, it will fail with an appropriate error message.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing validation for export requests inside FHIR batch and transaction processing, then inspect how unsupported headers produce the current 400. Done means those requests return Not Supported with an explanation that export operations are unsupported in batches and transactions; verify both batch and transaction cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100