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

    Function getSummaries

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

      Parameters

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

      a function for getting a generator that fetches contact summaries

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

          Parameters

          • qualifier: IdsQualifier

            the identifiers of the contacts to summarise

          Returns AsyncGenerator<ContactSummary, null>

          a generator for fetching all the matching contact summaries

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

      Error if a data context is not provided