Hi Evelyn,

 

I needed to do the same thing, but ran into a problem with includeIf and
age (I was trying to use Velocity rather than Logic).  I documented it
in the following ticket...

https://tickets.openmrs.org/browse/HTML-176

 

If we could get this fixed, it would be very useful to all of us.

 

Thanks,

James

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Evelyn Castle
Sent: Tuesday, August 09, 2011 6:37 AM
To: [email protected]
Subject: [OPENMRS-IMPLEMENTERS] HTML form entry "IncludeIF" for age

 

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


_________________________________________

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]

Reply via email to