Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Test Case Name: Configure Average Consumption

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:2526.01.2017

Short description

  • an implementer (who is an authorized API user) can configure this field to appear in the Requisition template for their program
  • an implementer (who is an authorized API user) can configure it with a field label string
  • P is available to be associated with a requisition template by program
  • can be assigned a display order in the requisition form
  • average consumption is based on a period moving-average window of adjusted consumption (N) from most recent period(s)
    • (N t0 + N t-1 + N t-2 + N t-(n-1)) / ( n )
  • user defines "n" (to indicate how many periods will be averaged)
  • "n" cannot be 1 or 0, must be greater than or equal to 2
  • "n" must have a value if (P) is selected to be displayed/included in the template
  • n = number of periods
  • t = indicates relative period (t0 = current reporting period)

For data entry, if not enough periods exist, compute based on the following:

  • if no previous periods, and there is only t0 ; use P = N (instead of the formula above)
  • if one previous period, so t0 and t-1 ; use P = Roundup( (N t0 + N t-1) / 2)
  • if more than one previous period, just compute the average of what periods are available (even if less than the defined "n")

                                                                                                                                                   

...