Craig Harvey, 31, denies assaulting consultant radiologist Marcel Strauss at Wishaw General on 24 February.
He is also accused of assaulting a prison officer and wrestling with three others before trying to escape from the ultrasound department on the same day.
Mr Harvey pled not guilty to all the charges during an appearance at the High Court in Glasgow.
It is alleged that he repeatedly struck Dr Strauss on the arm with a blade, which was attached to a piece of plastic, to the doctor's severe injury and permanent disfigurement.
Prosecutors also say that he assaulted prison officer James Muncie when he was "in lawful custody" and that he tried to detain the guard against his will in a toilet while holding the razor blade.
The charge further alleges that Mr Harvey demanded the prison officer remove his handcuffs and attempted to strike him with the blade before struggling with him, which resulted in Mr Muncie striking his head.
It is also claimed that he struggled with three other prison officers and attempted to escape from their custody in an attempt to defeat the ends of justice.
Mr Harvey faces a third charge of being in possession of a weapon.
He is due to stand trial on 27 September at the High Court in Livingston.

The first incident saw a 71-year-old woman from Sandyhills tricked by someone claiming to work for BT.
Now a woman in Stranraer has lost money to a caller who said he was contacting her about problems with her internet.
He claimed to be from BT technical support and gained remote access to her computer to take the cash.
The Sandyhills incident happened on 15 September with the Stranraer con taking place seven days later.
PC Siobhan Pellett said: "The ease with which these people seem to be able to gain access to their victim's computer is frightening and the sums of money being taken are substantial.
"We are asking people to be very, very careful when answering a cold call from someone who tries to gain remote access to their computer in order to rectify an alleged fault.
"Our message is worth repeating once again that people should never, never give out any banking details or account numbers over the telephone.
"Banks, building societies and reputable businesses never ask for this information."

In 2014, the largest colony of the rare seabirds was at Winterton, near Great Yarmouth, Norfolk but the birds have since moved north to Sea Palling.
Two years ago there were 300 pairs of the rare seabird. This year there are just 190 pairs at Sea Palling.
The RSPB said the species is declining.
Little terns travel 3,000 miles from west Africa to breed on the UK coast but, according to the RSPB, the numbers returning to the UK have declined by between 30-50% since last year.
It said the site near Sea Palling is still the country's largest colony, despite the significant drop in numbers.
Fabienne Fossez, the Little Tern warden for RSPB East Norfolk, said: "We're extremely concerned, it's a species in decline and they are in real trouble.
"What we don't know is what goes on out in west Africa in the winter but it is something to do with the climate, weather and food.
"Nevertheless, we have a really good success story here near Sea Palling, despite all of the odds."
Ms Fossez said 380 chicks have hatched at the east Norfolk site since mid May.
Her team has been maintaining a 24-hour surveillance of the colony in order to protect the birds.
But she said the breeding birds have not had the same level of success elsewhere.
"The little terns have had a really difficult time this year," she said.
"On the north Norfolk coast they were completely washed out at the beginning of June. We were protected here on the east coast and we are fortunate that there are just little terns nesting here."
A prisoner is to go on trial accused of attacking a doctor at a hospital with a razor blade.
[NEXT_CONCEPT]
A 60-year-old woman in Dumfries and Galloway has been conned out of £30,000 just a week after a similar scam netted £10,000.
[NEXT_CONCEPT]
Wildlife conservators have said they are "extremely concerned" that the number of little terns nesting in the UK's biggest breeding colony dropped by almost half in a year.