Hi Evelyn,
What version of OpenMRS and the Logic Module are you using? I know the
AGE token was broken in some previous versions, but I thought that had
been fixed. You might want to see if upgrading Logic and/or OpenMRS helps.
Alternatively, the includeIf tag supports velocity expressions as well.
It looks like the documentation needs to be expanded to include more on
the possibilities available with velocity. I don't have this installed
to try it out currently, but try something like the following:
<includeIf velocityTest="$patient.age < 16"/>
Hopefully this works,
Mike
On 08/09/2011 06:36 AM, Evelyn Castle wrote:
Hi All,
I am trying to use the HTML Form Entry module to include certain
questions in a form if the patient is a child (under 16). I am trying
to use the same logic that would be used if you were trying to include
only female patients. (we have this working fine in other forms)
|<||includeIf| |logicTest||=||"GENDER = F"||>|
But, in the logic test "token registration", age is not an option,
only "birthdate" and "birthdate estimate". So how can I use the logic
module to determine age since if I used birthdate, I would need to
change the date every year in order for it to continue to show kids
under 16.
Anyone know how I can do this?
Thanks
Evelyn
--
Evelyn Castle
Co-Director, eHealth Nigeria
+1 415 545 8289 (US)
website: http://www.eHealthNigeria.org
blog: http://www.evelyncastle.com
skype: evelynlcastle
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> from
OpenMRS Implementers' mailing list
_________________________________________
To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the body
(not the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]