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

calculating difference in time in a repeating item group

Hello All,

For those of you who are interested in having a repeating-item-group with two time fields and a third column for the difference in minutes, here's a javascript to get just that.
If you want more info about why and how, please visit http://www.trialdatasolutions.com/tds/howto/timediff.jsp with lots of screenshots and an example CRF to try at home.
Kind regards,

Gerben Rienk

ps. as you can see I was heavily inspired by the script Sander and Lindsay wrote, http://en.wikibooks.org/wiki/OpenClinica_User_Manual/LongLists and yes, I also used Alicia's siblings-construction!

image

Comments

  • jmacminn1jmacminn1 Posts: 18
    edited April 2014
    Hi Gerben,

    This is very helpful, I will try it out for myself...Many thanks! 

    -Jessica
This discussion has been closed.