Hello Jeff,
I think in branching logic it can still be helpful to include the date format as the fourth parameter of the datediff() function. I reckon the event ref and [current-instance] are redundant in a branching logic expression like that too, so try this:
datediff([longdate][previous-instance],[longdate],'d','mdy',true)< 0
HTH,
Luke
Luke Stevens
Research Data Systems Manager
Clinical Epidemiology & Biostatistics Unit (CEBU)
Murdoch Children's Research Institute
The Royal Children's Hospital, 50 Flemington Road
Parkville, Victoria 3052 Australia
T +61 3 9345 6552
E luke.s...@mcri.edu.au
W mcri.edu.au
From: 'Jeff Theobald' via Redcap Open <redca...@googlegroups.com>
Sent: Friday, May 10, 2024 4:25 AM
To: Redcap Open <redca...@googlegroups.com>
Subject: [EXTERNAL][REDCap Open] Repeating instances: out-of-sequence warning
CAUTION: External Email. Please be cautious with attachments and clicking links
--
You received this message because you are subscribed to the Google Groups "Redcap Open" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
redcap_open...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/redcap_open/630b5a72-0c7e-45d3-bbba-03a0a8588627n%40googlegroups.com.
This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.
Thank you, Luke – this works exactly as I had hoped! I could’ve sworn I tried that formulation, but I must have gotten it wrong.
Jeff
From: Luke Stevens <luke.s...@mcri.edu.au>
Sent: Thursday, May 9, 2024 6:54 PM
To: Theobald, Jeff <Jeffrey....@cchmc.org>; Redcap Open <redca...@googlegroups.com>
Subject: RE: [EXTERNAL][REDCap Open] Repeating instances: out-of-sequence warning
This email originated from an EXTERNAL sender to CCHMC. Proceed with caution when replying, opening attachments, or clicking links in this message. |