Skip to content

z-score function not supported #278

Description

@binokaryg

Describe the bug
CHT XPath function z-score does not seem to be supported by test harness. When I use this function, the form does not get filled.

To Reproduce
Steps to reproduce the behavior:

  1. Add a z-score function in a form calculation e.g. z-score('weight-for-age', ../my_sex, ../my_age, ../my_weight)
  2. Fill the form using test harness (use {headless: false} for visibility)
  3. See the browser session getting stuck on the inputs group

What happened?
The form can't be filled and is stuck until it times out.

What did you expect?
Since z-score has been in CHT for a long time, I hoped it would just work.
Screenshots
Image

Environment:

  • Harness "coreVersion": "4.11"

Additional context

The z-score function depends on a CouchDB doc zscore-charts which holds the z-score values. So, adding the support might not be straightforward.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions