The First Minister has announced funding of £27 million to boost the number of people training to work in Scotland's health service.

Nicola Sturgeon set out measures aimed at increasing access to education in the medical professions over the next five years during a speech at Queen Margaret University in Musselburgh, East Lothian.

These include funding of £3 million to train an extra 500 advanced nurse practitioners and more than £23 million to increase the number of medical school places by 50.

Alongside this will be a new entry-level programme for students from deprived backgrounds and a Scottish graduate entry programme in medicine that will offer to pay fees for students who work in the Scottish NHS after qualifying.

Ms Sturgeon also announced a £1 million support fund for nursery and midwifery students experiencing financial difficulties as well as committing to the continuation of bursaries for nurses and midwives.

The First Minister said investment in the workforce was crucial to ensure the health service was fit to cope with the pressures it is under and successfully deliver the integration of health and social care.

She said: "We need to make sure that we are training the right numbers of professionals - in and across different specialities - with the skills they need for the health service of the future.

"That's why this additional funding of £27 million is so crucial in ensuring in ensuring the NHS in Scotland remains robust, resilient and ready for the challenges of the 21st century.

"We've already invested heavily in the health and care workforce in the last nine years. For example, the NHS Scotland workforce has increased by more than 10,000 since 2007. But we need to build on that success."

Ms Sturgeon said the measures would help to widen access opportunities for those from a variety of backgrounds, with only one in 20 doctors currently coming from the most disadvantaged areas of Scotland.

She said: "If we had truly equal access to the medical profession, that figure would be one in five.

"That's not a reflection on the talent or aptitude of students from disadvantaged areas, it's an indication of how disadvantage acts as a barrier to equal opportunity.

"That's why we are confirming a number of measures to increase medical supply and widen access to medical schools.

"For example, we will make a new entry-level programme available to help secondary-school students from deprived backgrounds prepare more effectively for undergraduate medical education.

"We are also increasing the number of medical student places by 50 from this August. The importance of widening access to medical degrees will be a key priority as those extra places are being filled.

"Finally, we will launch Scotland's first graduate-entry programme for medical students.

"That programme will include an offer to pay fees, which would be conditional on students agreeing to enter the NHS Scotland workforce when they qualify.

"It's a further way of ensuring that financial concerns don't deter talented graduates from studying and working in medicine - but also that we retain our best talent to work here in Scotland."