Image copyright Li Wenliang Image caption Li Wenliang contracted the virus while working at Wuhan Central Hospital

A Chinese doctor who tried to issue the first warning about the deadly coronavirus outbreak has died, the hospital treating him has said.

Li Wenliang contracted the virus while working at Wuhan Central Hospital.

He had sent out a warning to fellow medics on 30 December but police told him to stop "making false comments".

There had been contradictory reports about his death, but the People's Daily now says he died at 02:58 on Friday (18:58 GMT Thursday).

The virus has killed 636 people and infected 31,161 in mainland China, the National Health Commission's latest figures show.

The death toll includes 73 new deaths reported on Thursday.

The virus causes severe acute respiratory infection and symptoms usually start with a fever, followed by a dry cough.

Most people infected are likely to fully recover - just as they would from a flu.

What is Li Wenliang's story?

Dr Li, an ophthalmologist, posted his story on Weibo from a hospital bed a month after sending out his initial warning.

The 34-year-old had noticed seven cases of a virus that he thought looked like Sars - the virus that led to a global epidemic in 2003.

On 30 December he sent a message to fellow doctors in a chat group warning them to wear protective clothing to avoid infection.

Four days later he was summoned to the Public Security Bureau where he was told to sign a letter. In the letter he was accused of "making false comments" that had "severely disturbed the social order".

He was one of eight people who police said were being investigated for "spreading rumours" Local authorities later apologised to Dr Li.

In his Weibo post he describes how on 10 January he started coughing, the next day he had a fever and two days later he was in hospital. He was diagnosed with the coronavirus on 30 January.

Media playback is unsupported on your device Media caption Coronavirus: Shanghai's deserted streets and metro, filmed in February

How has China reacted?

A wave of anger and grief flooded Chinese social media site Weibo when news of Dr Li's death broke late on Thursday.

The top two trending hashtags on the website were "Wuhan government owes Dr Li Wenliang and apology" and "We want freedom of speech".

Both hashtags were quickly censored. When the BBC searched Weibo on Friday morning, hundreds of thousands of comments had already been wiped.

Many have now taken to posting under the hashtag "Can you manage, do you understand?" - a reference to the letter Dr Li was told to sign where he was accused of disturbing "social order".

Only a handful of critical comments now remain - many of which do not directly name him - but are an indication of the mounting anger and distrust towards the Chinese government.

"Do not forget how you feel now. Do not forget this anger. We must not let this happen again," said one comment on Weibo.

"The truth will always be treated as a rumour. How long are you going to lie? Are you still lying? What else do you have to hide?" another said.

'An epic political disaster'

Analysis by Stephen McDonell, BBC News, Beijing

The death of Dr Li Wenliang has been a heart-breaking moment for this country. For the Chinese leadership it is an epic political disaster.

It lays bare the worst aspects of China's command and control system of governance under Xi Jinping - and the Communist Party would have to be blind not to see it.

If your response to a dangerous health emergency is for the police to harass a doctor trying to blow the whistle, then your structure is obviously broken.

The city's mayor - reaching for excuses - said he needed clearance to release critical information which all Chinese people were entitled to receive.

Now the spin doctors and censors will try to find a way to convince 1.4 billion people that Dr Li's death is not a clear example of the limits to the party's ability to manage an emergency - when openness can save lives, and restricting it can kill.

Chinese people are going to take some convincing.

Why was there confusion over his death?

Global Times, People's Daily and other Chinese media reported Dr Li's death earlier on Thursday.

Dr Li, was initially declared dead at 21:30 local time and the news triggered a huge wave of popular reaction on Weibo, China's equivalent of Twitter.

The People's Daily sent out a tweet saying Dr Li's death had sparked "national grief".

However, Global Times then said he had been given a treatment known as ECMO (extra-corporeal membrane oxygenation) which keeps a person's heart pumping and keeps their blood oxygenated without it going through their lungs.

Global Times said he was in a critical condition.

Journalists and doctors at the scene, who do not want their names used, told the BBC and other media that government officials had intervened.

Official media outlets had been told to change their reports to say the doctor was still being treated.

The media outlets then later reported the new time of Dr Li's death:

Most of those killed by coronavirus have been over the age of 60 or have suffered from other medical conditions, according to China's health authorities. Dr Li's medical history is not known.

What is the latest on the virus in China?

China is introducing more restrictive measures to try to control the outbreak.

Beijing has banned group dining for events such as birthdays and weddings while cities such as Hangzhou and Nanchang are limiting how many family members can leave home each day.

Hubei province has switched off lifts in high-rise buildings to discourage residents from going outside.

Its capital, Wuhan, has a lack of beds and equipment, one senior city official said. Despite the rapid construction of two hospitals, the volume of patients is causing severe strain.

Reports on social media say the Wuhan government is to carry out door-to-door temperature checks on residents.

Media playback is unsupported on your device Media caption Evacuating from China to a remote Australian island for quarantine

There has been criticism of the crackdowns, with Human Rights Watch saying China was "treating public health with a sledgehammer".

Meanwhile, Hong Kong has seen panic buying of goods, including toilet rolls, and there have been huge queues for masks.

What's the latest on infections?

Although the virus has spread overseas, with confirmed infection in some 25 nations, there have so far been only two deaths outside mainland China - one in Hong Kong and one in the Philippines.

Media playback is unsupported on your device Media caption The BBC's online health editor on what we know about the virus

The World Health Organization has declared a global health emergency, saying if funds are not allocated now to tackle the outbreak, nations would pay for it later.

Although the official figures in China are of 31,000 infections, some scientists have estimated that the actual rate could be 10 times higher, with the majority of infected people only presenting mild symptoms, not receiving treatment, yet passing on the potentially deadly disease.

The UK on Thursday confirmed a third case of the virus.

Some 3,700 people on the Diamond Princess cruise vessel moored off Japan face testing and quarantine for at least two weeks. On Friday, Japanese broadcaster NHK said 41 new cases had been detected on board, bringing the total to 61.

Another cruise ship with 3,600 passengers and crew is quarantined in Hong Kong with three cases on board.

Learn more about the new virus

Image copyright Getty

Have you been affected by any of the issues raised? You can share your experiences by emailing haveyoursay@bbc.co.uk.

Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways: