How should the previous encounter values be loaded?

Hi everyone, How should the previous encounter value be loaded?

The current implementation on the react form-engine attempts to load the previous obs from the latest encounter.

Should that be the case or can we have the ‘previous value’ to display the latest obs from the latest encounter? or load the latest observation individually of the encounter? cc @ibacher @eudson @mayanja @samuel34

There are basically two strategies that could make sense, and the answer probably depends on the Obs:

  1. Load from the latest encounter of the same encounter type as the current encounter.
  2. Load the latest obs for a given code.

In the NGX engine, we default to 1 with some escape hatches (in the form of data sources) for 2.

1 Like