Skip to content

_count on search #4235

Description

@sagarsarvankar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions