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

Invalid response when using _summary=count #88

Closed
ghost opened this issue Mar 16, 2020 · 1 comment
Closed

Invalid response when using _summary=count #88

ghost opened this issue Mar 16, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 16, 2020

Hi :)
I've been trying to have the server give me the total number of results for a given search. I noticed that the Bundle I get as a response does not include the type key which is required based on the FHIR standard:
https://www.hl7.org/fhir/bundle-definitions.html#Bundle.type

The most appropriate type appears to be "searchset". When I use _summary with all the other valid options, that's the type I get in the response.
Example of the problem:
http://hapi.fhir.org/baseR4/Media?_summary=count gives me:

{
  "resourceType": "Bundle",
  "id": "9aaf1d79-4c1a-4c9c-a3db-ea5b119653b6",
  "meta": {
    "lastUpdated": "2020-03-16T12:02:17.484+00:00",
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationValue",
        "code": "SUBSETTED",
        "display": "Resource encoded in summary mode"
      }
    ]
  },
  "total": 1705
}

I have created another issue here:
hapifhir/hapi-fhir#1763

@jamesagnew
Copy link
Contributor

Duplicate of hapifhir/hapi-fhir#1763 - Please don't open the same ticket in multiple repositories.

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