Dr Chris Smith, who chairs BMA Scotland’s resident doctors committee, said strike action had been a “last resort” for the union, and that the new offer would guarantee future improvements for staff.

He said: “Our view is the substantial investment proposed continues the progress made to reverse the pay erosion resident doctors have suffered since 2008.

“Coming in the shape of new funding into our contract means that if accepted, this deal embeds improvements for doctors for the future.

“It will provide much needed impetus into delivering a new contract for resident doctors that was a key part of the deal agreed with the Scottish Government in 2023.”

Smith added that the deal would make “real progress” towards righting the “historic wrong” of pay erosion for staff over the past two decades.

The BMA previously said the deal would have been the lowest in the UK and was less than was recommended by the independent pay review body.

However, Smith told BBC Scotland’s Lunchtime Live that the contractual reform package would now bring in additional investment into pay scales for resident doctors, therefore putting more money into doctors pockets.

He added: “There has been a lot of compromise, but this gets back to the principles of the 2023 deal that had been working for the NHS, for doctors and for patients.”

Scotland has been the only part of the UK to have avoided strike action by NHS workers.

A previous proposed strike in Scotland in the summer of 2023 was called off at the last minute after a deal was agreed.