An implantable device and method for monitoring changes in the risk of arrhythmia induced by medications. The implantable device monitors risk of arrhythmia by analyzing an aspect of T-wave morphology to generate a metric of transmural dispersion of repolarization (“TDR”) as a proxy for the risk of arrhythmia. The implantable device generates an index of change in the risk of arrhythmia by comparing values of the metric of TDR obtained for different time periods. The implantable device generates a warning if the change in risk of arrhythmia is outside acceptable limits. The implantable device can also communicate with other devices to correlate changes in risk of arrhythmia with medications taken by the patient.