Uploaded image for project: 'FHIR Module v2'
  1. FHIR Module v2
  2. FM2-349

Improve handling of searches for _summary=count

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Could
    • Resolution: Fixed
    • FM2 1.2.0
    • FM2 1.2.0
    • None
    • None
    • Low

    Description

      The FHIR search API provides a mechanism for requesting less that a server provides less that the full resources requested for a search using the _summary parameter. Details of this parameter are documented here.

      For the most part, HAPI handles this for us and we do not need to do anything with this parameter. However, the one case that is less than ideal is when the `_summary=count` is specified. This is because we use this IBundleProvider to provide the resources that match a search. The problem is that HAPI will try to get all of the resources that a bundle might provide when the user is only interested in returning the count of resources.

      Where the request is for _summary=count, we should ensure we only do the initial search for the matching resource UUIDs and not perform the actual search at all.

      Gliffy Diagrams

        Attachments

          Activity

            People

              medhavi Medhavi Srivastava
              ibacher Ian Bacher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: