Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueSet $expand is setting "total" to "count" #6584

Open
plynchnlm opened this issue Jan 3, 2025 · 0 comments
Open

ValueSet $expand is setting "total" to "count" #6584

plynchnlm opened this issue Jan 3, 2025 · 0 comments

Comments

@plynchnlm
Copy link

Describe the bug
An expansion of the UCUM example ValueSet (and probably others) returns the expansion with the "total" field set to the requested "count" parameter, instead of the number of available results.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://hapi.fhir.org/baseR4/ValueSet/$expand?url=http%3A%2F%2Fhl7.org%2Ffhir%2FValueSet%2Fucum-common&filter=b&_format=application%2Fjson&count=7

Notice that "total" in the expansion (at the bottom) is set to "7", which is the count number.

  1. Remove the count parameter from the URL, and notice that the "total" is now "101".

Expected behavior
The "total" parameter is supposed to be the number of available results. It lets you know whether you can request more results than what was returned. (If it were just the number of returned results, you could easily count those yourself.)

Environment (please complete the following information):

  • HAPI FHIR Version: Running on hapi.fhir.org, which currently says, "HAPI FHIR Server 7.7.15-SNAPSHOT/3594770bf6/2024-12-21"
@plynchnlm plynchnlm changed the title ValueSet $expand it setting "total" to "count" ValueSet $expand is setting "total" to "count" Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant