As word of a mysterious virus mounted, Li Wenliang shared suspicions in a private chat with his fellow medical school alumni.

The doctor said that seven people seemed to have contracted SARS — the respiratory illness that spread from China to more than two dozen countries and left hundreds dead in the early 2000s. One patient was quarantined at his hospital in Wuhan, Li said. He urged people to be careful.

Li and seven other doctors were quickly summoned by Chinese authorities for propagating “rumors” about SARS-like cases in the area — but their warnings were prescient. Soon, health officials around the world would be scrambling to combat a novel virus with a striking genetic resemblance to SARS. The outbreak in Wuhan has exploded to more than 20,000 confirmed cases just in China.

Among the ill: the ophthalmologist who was censured for sounding an early alarm.

“The diagnosis is finally confirmed,” Li posted Jan. 31 on the social media platform Weibo.

Li’s situation has drawn rare acknowledgment of official missteps in China, where a bureaucratic culture that prioritizes political stability over all else probably allowed the new coronavirus to spread farther and faster. Late last month, China’s highest court admonished the Wuhan police for the detentions.

“If society had at the time believed those ‘rumors,’ and wore masks, used disinfectant and avoided going to the wildlife market as if there were a SARS outbreak, perhaps it would’ve meant we could better control the coronavirus today,” the court said. “Rumors end when there is openness.”

Li, an ophthalmologist at Wuhan Central Hospital, had shared his concerns the same day that Chinese authorities confirmed they were investigating 27 cases of viral pneumonia. Officials at the epicenter in Wuhan — the capital of Hubei Province, where millions are now trapped in an unprecedented lockdown — sent an “urgent notice” to all hospitals about the existence of “pneumonia of unclear cause.”

The notice ordered all departments to immediately compile information about known cases and report them up their chain of command. But it did not mention SARS or a coronavirus.

Li had posted a snippet of an RNA analysis finding “SARS coronavirus” and extensive bacteria colonies in a patient’s airways, according to a chat transcript that he and other chat members later shared online.

On Jan. 1, the Wuhan Public Security Bureau issued summons to Li and the others accused of fanning rumors. The detentions were reported on “Xinwen Lianbo,” a newscast watched by tens of millions.

The police followed up in the state-run Xinhua News Agency with a chilling warning.

“The police call on all netizens to not fabricate rumors, not spread rumors, not believe rumors,” the Wuhan authorities said.

As authorities cracked down, the outbreak was quickly worsening amid an information vacuum. Wang Guangbao, a surgeon and popular science writer in eastern China, later said speculation about a SARS-like virus was rampant around Jan. 1 within medical circles, but the detentions dissuaded many, including himself, from speaking openly about it.

Li was released by Wuhan police on Jan. 3 after signing a document acknowledging he committed “illegal acts.”

He hurried back to work to see sick patients — and worked “normally” for a while, he wrote on Weibo, tending to patients with the new coronavirus.

Then, on Jan. 10, he got a cough. The next day, Li wrote, he had a fever, and by Jan. 12 he was in the hospital.

China had yet to declare an emergency. That would come on Jan. 20, as more than 400 million Chinese people prepared to travel home to mark the Lunar New Year. A renowned pulmonologist appeared on state media to announce that the new virus was transmissible between people, and Chinese President Xi Jinping called for quick information-sharing and “resolute efforts” to contain the virus.

By late January, officials were also acknowledging mistakes.

Li, who emphasized that his license has not been revoked, said he’s been cheered in the hospital by “netizens’ support and encouragement.”