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

    Function byForms

    • Builds a qualifier for finding entities recorded with any of the given forms.

      Parameters

      • forms: [string, ...string[]]

        the form codes to search with (e.g. ['pregnancy']). Each is matched verbatim against the document's form field: they are not normalized, so a code with leading or trailing whitespace is rejected rather than silently matching nothing. Duplicates are removed.

      Returns FormsQualifier

      the qualifier

      InvalidArgumentError if the form codes are not a non-empty array of non-blank strings with no leading or trailing whitespace