@medic/cht-datasource
    Preparing search index...

    Function getSummaries

    • Returns a function for getting a generator that fetches report summaries from the given data context.

      Parameters

      Returns (qualifier: IdsQualifier) => AsyncGenerator<ReportSummary, null>

      a function for getting a generator that fetches report summaries

        • (qualifier: IdsQualifier): AsyncGenerator<ReportSummary, null>
        • Returns a generator for fetching summary records for the reports identified by the given qualifier. Any identifiers that do not identify an existing report are silently omitted from the result.

          Parameters

          • qualifier: IdsQualifier

            the identifiers of the reports to summarise

          Returns AsyncGenerator<ReportSummary, null>

          a generator for fetching all the matching report summaries

          InvalidArgumentError if the qualifier does not contain an array of non-empty identifier strings

      Error if a data context is not provided