microsoft / microsoft/fhir-server

500 when using :iterate

Open
#2,382 1 comment 0 reactions 0 assignees View on GitHub
Bug VSTS-Backlog
Dominant language
TSQL
Stars
1.4k
Forks
592
Avg merge
2d 7h
Merged PRs (30d)
41

Description

Following query causes 500:

{{fhirEndpoint}}Observation/?_revinclude=Observation:part-of&_include=Observation:focus&_include:iterate=Observation:focus

using same query but on performer instead of focus is working:
{{fhirEndpoint}}Observation/?_revinclude=Observation:part-of&_include=Observation:focus&_include:iterate=Observation:performer

What is interesting one can observe this on empty server without any Observation.

Also this gives 500 (after removing ''&_include=Observation:focus" from first query):

{{fhirEndpoint}}Observation/?_revinclude=Observation:part-of&_include:iterate=Observation:focus

Contributor guide

Open the contributing guide

Research direction

Reproduce the listed FHIR queries against an empty server, comparing :focus with :performer and testing the cases with and without _include=Observation:focus. Trace the API handling for _include:iterate and verify that these requests no longer return HTTP 500; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.