Monitoring compliance in clinical trials