Added diagnoses
Fixed bug in m2m validation of agents on management and outcome