I am applying a field patient_referred of type integer to this constraint . >= 0 and . <= ${patient_assessed} in a XForm. When patient_assessed >= 10, all value of patient_referred between 1 - 9 are failing the comparison. Am I missing something?
Thanks for answering your own question! The clue was that numbers less than 10 worked fine which suggested that it was comparing alphabetically rather than numerically. Good find!