This calculates the number of days between an episode and the previous episode in the case, expressed as a whole number.

For example, suppose we define a calculated value attribute named “Period” as “days between episodes”. The values of Period will appear in the case as follows:

           01 Jun 03    20 Jun 03    30 Jun 03    24 Oct 06    24 Oct 07
Period                     19           10           1212         365			
HDL           2.0          2.1          2.2          2.5          1.9
LDL                        6.2*         5.0*                      3.9
Trig          3.6                                    3.6
LipidDrug     N                         Y            Y

The following conditions are true for this case:

Period is 365

Second most recent Period is 1212

At least 1 Period > 1000

See also days between