How should previous encounter values be loaded to ensure performance and reliability?

Hi everyone,

I need some input on how we should handle loading previous encounter values in our React form-engine.

Currently, our implementation attempts to load previous observations from the latest encounter. However, I’m considering whether we should:

  1. Display Previous Value: Load and display the latest observation from the most recent encounter as the ‘previous value’.
  2. Load Individually: Alternatively, load the latest observation individually, independent of the encounter context.

I’d appreciate your thoughts on the following:

  1. Current Approach: Do you think continuing with the current method of loading previous observations from the latest encounter is the best approach?
  2. Alternative Methods: Should we adjust the implementation to load the latest observation as the ‘previous value’? What are the pros and cons of this approach?
  3. Individual Loading: How would loading the latest observation separately from the encounter affect our system? Are there any benefits or potential issues with this method?
  4. Best Practices: What are the best practices for managing and displaying previous encounter values in a React application?

Your insights and suggestions will be invaluable in determining the best approach for handling and displaying previous encounter values.

Thank you for your help!

Best regards, Darshan Hiranandani