The Minister for Health, Dr James Reilly, has vowed to address the issue of junior doctors' working hours.