I use the ‘VIEW mode’ of some forms to display some encounters in the Patient Dashboard.
For this script to work, it is assumed that:
- the initial XML form is of a certain layout (for instance,
<obs>are only wrapped into
<p>are containing only one
- the XML form is always gonna be substituted by HFE in the same way (for instance, empty obs are in a span with
emptyValueclass, or have a
valueclass and empty text…).
I would like to create a test to ensure that forms are always made “VIEW mode compatible” and that my script will work. To do so, I want to transform my XML form with HFE and save this output. Later on, I will test my script against this output.
How to apply (in a test environment) the HFE substitution on a resource ?