The values X and Y like other parameters are programmable and adaptable to the needs of each particular patient. [0170] The I/O subroutine 517 receives physician commands from the data communication sub-system 60 via the link 56 and, in turn, reads and sends back via the link 57 the data stream 519 containing the event related data previously stored in the memory 55 by the algorithm 512.