The Australian Medical Association found almost half of trainee doctors in New South Wales are overworked and fear that they have made medical mistakes