Shows properties for the selected item (page, question, or question option) in the Forms Pane.
...
The answer taken when the one filling the form has not supplied any. For Single Select/Multiple Select fields, the "Default Value" should be the "Binding" value of the default concept. Here is one example of the "Binding" for an OpenMRS system which assumes the use of the MVP-CIEL concept dictionary: For a Single Select field which has the options "NORMAL" and "ABNORMAL", where "NORMAL" should be the default value, set the field's "Default Value" to "1115^NORMAL^99DCT".
Calculation
This is only for those fields whose values are a result of some computation. For instance if we had three fields: Weight1, Weight2, Weight3.
Where Weight3 = Weight2 - Weight1.
Then the calculation property would be only for the Weight3 field and would be: /form/obs/weight2/value - /form/obs/weight1/value
You can use the "add field" link on the right hand side which lets you select a form field and it inserts the xpath expression for each field.
...
If the field you are comparing with is a single or multiple select (for example if the question is a coded concept), then change 6101 to '6101^NAME^99DCT'
For max, set the calculation property to something like: Math.max(/new_form1/question1/value, /new_form1/question2/value)
...
- XForms Module
- XForms Module User Guide
- XForms Module Patient Registration
- XForms Module Form Designer
- XForms Module External Applications Guide
- XForms Module Technical Overview
- XReports Module ReportDesigner Technical Overview
- XForms Module Release Notes
- Download Module
- GitHub project (source code)
- XForms was discussed on a May 9th University call. Watch xforms video
- XForms Newbies FAQs