microsoft / microsoft/fhir-server

Improve error message for bulk export in FHIR batches & transactions

Open
#1,459 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-BulkExport Good First Issue Up for grabs
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.