[Developers] Age calculation

Liora liora at asteinrac.com
Wed Feb 15 05:06:48 EST 2012

Hi Mithun,

I attached to this email a rule that will calculate the patient's age by calculating the days between: Date of visit - Date of birth.

What bothers me is that I can't add this rule to the 'Add New Subject' pop up window. If it will be possible subjects that are not in the allowed age will not be added to the system. Or even better the age prevention could be automatically available after defining the allowed minimum and maximum subject age in the build study section.


Liora Bosch - Hommfor
Clinical Data Manager
A. Stein - Regulatory Affairs Consulting
Beit Hapaamon (Suite 102)
20 HaTaas Str. (P.O.B. 124)
Kfar Saba 44425 ISRAEL
Tel: +972-9-7670117
Fax: +972-9-7668534
E-mail: liora at asteinrac.com<mailto:liora at asteinrac.com>

From: developers-bounces at openclinica.org [mailto:developers-bounces at openclinica.org] On Behalf Of Sortur Mithun (RTH) OUH
Sent: Tuesday, February 14, 2012 5:04 PM
To: developers at openclinica.org; users at openclinica.org
Subject: [Developers] Age calculation


Please can you help me to derive the age from "Date of birth" and "date of assessment" fields.

I have 3 fields, DOB, DOA, and Age. The difference of DOB and DOA should reflect in Age text box. I am using date format of "dd/mm/yyyy".  I tried doing this using functions and also rules, but no success.

Kind Regards,
Mithun Sortur

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.openclinica.com/pipermail/developers/attachments/20120215/7540786b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1. DOB22to68.xml
Type: application/xml
Size: 1067 bytes
Desc: 1. DOB22to68.xml
URL: <http://mailman.openclinica.com/pipermail/developers/attachments/20120215/7540786b/attachment.xml>

More information about the Developers mailing list