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

_count on search #4235

Open
sagarsarvankar opened this issue Aug 7, 2023 · 0 comments
Open

_count on search #4235

sagarsarvankar opened this issue Aug 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sagarsarvankar
Copy link

This is regarding a question on _count on search.

I have a scenario as below

POST https://qafhirserver.justtest.in:9443/fhir-server/api/v4/CarePlan/_search
Response
{
"resourceType": "Bundle",
"id": "1be8164a-1484-41e4-91cb-b1d53fede8c2",
"type": "searchset",
"total": 730,
"link": [
{
"relation": "self",
"url": "https://qafhirserver.justtest.in:9443/fhir-server/api/v4/CarePlan/_search?_count=10&_page=1"
},
{
"relation": "next",
"url": "https://qafhirserver.justtest.in:9443/fhir-server/api/v4/CarePlan/_search?_count=10&_page=2"
}
......
....

Now, when I do a GET on https://qafhirserver.justtest.in:9443/fhir-server/api/v4/CarePlan/_search?_count=10&_page=2
I get below response
{
"resourceType": "OperationOutcome",
"id": "ac-1f-1b-dc-d0effbfc-4537-41a7-9384-40da112cb8f7",
"issue": [
{
"severity": "fatal",
"code": "invalid",
"details": {
"text": "Search parameter '_count' is not supported by read."
}
}
]
}

Environment
FHIR Server 4.11.1

Expected behavior
GET on the "next" url returned in the response should work.

@sagarsarvankar sagarsarvankar added the bug Something isn't working label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant