We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

dates

Hi all,
I was wondering if there was a command for the actual date, something like:
Field_data gt DateNow
Thanks
Ricardo Simões

Comments

  • Ric_SimRic_Sim Posts: 310
    Hi all,
    I was wondering if there was a command for the actual date, something like:
    Field_data gt DateNow
    Thanks
    Ricardo Simões
  • Dear Ricardo,

    There’s an example in the docs of this:

    https://docs.openclinica.com/3.1/rules/examples-rule-expressions

    Example 3

    The following example uses DATEs with the equal and not equal operators. The same principle applies where the system can only compare items of the same DataType.


    Visit Date is the same as today's date
    ITEM_OID_1 eq _CURRENT_DATE


    _CURRENT_DATE is a system level property that will pull the "today's date" from the server OpenClinica is installed on.


    The date is not December 31, 2012r
    ITEM_OID_1 ne 2012-12-31


    Yours,

    Michael
    Sent: 18 July 2012 10:38
    To: [email protected]; [email protected]
    Subject: [Developers] dates

    Hi all,
    I was wondering if there was a command for the actual date, something like:
    Field_data gt DateNow
    Thanks
    Ricardo Simões
    The University of Dundee is a registered Scottish Charity, No: SC015096
  • Ric_SimRic_Sim Posts: 310
    Perfect, thanks Michael
    Sent: quarta-feira, 18 de Julho de 2012 12:28
    To: [email protected]; [email protected]
    Subject: Re: [Developers] dates

    Dear Ricardo,

    There’s an example in the docs of this:

    https://docs.openclinica.com/3.1/rules/examples-rule-expressions

    Example 3

    The following example uses DATEs with the equal and not equal operators. The same principle applies where the system can only compare items of the same DataType.


    Visit Date is the same as today's date
    ITEM_OID_1 eq _CURRENT_DATE


    _CURRENT_DATE is a system level property that will pull the "today's date" from the server OpenClinica is installed on.


    The date is not December 31, 2012r
    ITEM_OID_1 ne 2012-12-31


    Yours,

    Michael
    Sent: 18 July 2012 10:38
    To: [email protected]; [email protected]
    Subject: [Developers] dates

    Hi all,
    I was wondering if there was a command for the actual date, something like:
    Field_data gt DateNow
    Thanks
    Ricardo Simões
    The University of Dundee is a registered Scottish Charity, No: SC015096
This discussion has been closed.