Though the island state is only 81 miles from mainland China, Taiwan has managed to stem what could have been an even bigger coronavirus crisis.

The country leveraged its public-health infrastructure and affordable healthcare to keep its population safe and healthy compared with nearby countries.

Countries struggling to manage their COVID-19 epidemics can learn something from Taipei's swift, multifaceted response to the virus, experts say.

Visit Business Insider's homepage for more stories.

Only 81 miles from mainland China, the island state of Taiwan and its nearly 24 million residents faced a dire threat as the novel coronavirus broke out in Wuhan, China, late last year.

But instead of fueling pandemonium, the country has taken control of the situation. Taiwan has only 77 confirmed cases and a single death from COVID-19, the illness caused by the virus, and nearly 30% of infected people have recovered. China, by comparison, has about 81,000 confirmed cases.

China is one of the largest countries by population, with 1.4 billion people to Taiwan's nearly 24 million. Still, China's per-capita case rate is more than 25 times Taiwan's.

In its fight against a countrywide epidemic, the government in Taipei has implemented 124 safety protocols, a testament to its quick, vast, and well-considered policy measures.

"The policies and actions go beyond border control," Jason Wang, a Stanford University pediatrics professor and policy-analysis expert, told Stanford Health Policy earlier this month, "because they recognized that that wasn't enough."

How did Taiwan manage to stem a health crisis that originated in nearby China and has seen more than 127,000 infections and nearly 5,000 deaths around the globe?

In an article published last week in the Journal of the American Medical Association, Wang credited the government's early and swift action: It took advantage of public-health infrastructure and data analytics, affordable healthcare, and extensive educational outreach.

Taiwan quickly implemented extensive screening for people traveling from Wuhan

On December 31, Chinese officials notified the World Health Organization that China had several cases of pneumonia. That day, the Taiwan Centers for Disease Control began monitoring passengers who arrived in the country from Wuhan. Government officials boarded flights from Wuhan as soon as they landed, monitoring passengers for symptoms.

Less than a week later, the government began monitoring people who had traveled from Wuhan since December 20.

"Suspected cases were screened for 26 viruses, including SARS and MERS," the Stanford Health Policy report said. "Passengers displaying symptoms were quarantined at home and assessed whether medical attention at a hospital was necessary."

People in Taipei view lanterns on display for Lunar New Year in February. Chiang Ying-ying/AP Photo

In mid-January, Taiwan sent a team of experts on a fact-finding mission to China — with permission, even though Taiwanese-Chinese relations are less than stellar.

"They didn't let us see what they didn't want us to see, but our experts sensed the situation was not optimistic," Kolas Yotaka, a Taiwanese government representative, told NBC News.

Then the government ramped up safety and health protocols even further.

By late January, Taipei had established a Central Epidemic Command Center, centralizing policy measures to protect public health. On January 26, Taiwan became the first country to ban flights from Wuhan.

People pray at the popular Longshan Temple in Taipei on Thursday. Chiang Ying-ying/AP Photo

Around the same time, the government banned the export of face masks and ensured they were affordable by capping prices at about $0.17 each.

By late February, Taipei had distributed nearly 6.5 million masks to primary and secondary schools, as well as after-school institutions, plus 84,000 liters of hand sanitizer and 25,000 forehead thermometers.

Intensive health monitoring through big data and repeat testing

Taiwan's health infrastructure, including big-data analysis, is partially the result of the 2003 SARS outbreak, which killed 73 people and stunted its economy.

After the 2003 epidemic, Taiwan put temperature monitors in airports to screen travelers for fever, a symptom of COVID-19. The government had learned its lesson.

Travelers can also report their travel and health history with a QR code, which the government uses "to classify travelers' infectious risks based on flight origin and travel history in the last 14 days," the Stanford report said.

Lanterns on display for Lunar New Year in Taipei on February 9. Chiang Ying-ying/ AP Photo

"People who had not traveled to high-risk areas were sent a health declaration border pass via SMS for faster immigration clearance," the report said. "Those who had traveled to high-risk areas were quarantined at home and tracked through their mobile phones to ensure that they stayed home during the incubation period."

Crucially, the government does not forget about people who tested negative for the virus — it retests them to keep track of new cases, Wang told NBC News.

'Taiwan's health insurance lets everyone not be afraid to go to the hospital'

Taiwan's health-insurance system covers 99% of the population, Kolas told NBC News, adding that affordable coverage virtually guarantees that people don't need to choose between their personal and financial health.

"Taiwan's health insurance lets everyone not be afraid to go to the hospital. If you suspect you have coronavirus, you won't have to worry that you can't afford the hospital visit to get tested," she told NBC News. "You can get a free test, and if you're forced to be isolated, during the 14 days, we pay for your food, lodging, and medical care.

"So no one would avoid seeing the doctor because they can't pay for health care," she added.

Easy access to information

To stem the crisis, Taipei required television and radio stations to broadcast hourly public-service announcements about the coronavirus, including how it spreads and how people should prevent infection, NBC News reported.

"We think only when information is transparent, and people have sufficient medical knowledge, will their fear be reduced," Kolas told the outlet.

Two children watch as chefs make dumplings in Taipei on Saturday. Chiang Ying-ying/AP Photo

In turn, citizens have intensified their safety practices. Tu Chen-yang, a school principal, told NBC News that this was especially evident in schools.

"More than 95% of our parents take their child's temperature at home and report it to the school before the children arrive," Tu said. "Regardless of what the government does, people have to take responsibility for their own health."

Public and private buildings have screened entrants for signs of fever, and apartment buildings have put hand sanitizer inside or outside elevators, NBC News reported.

It takes an entire country to keep people safe, and Taiwan's extensive coordination and swift action have helped stem the tide of coronavirus cases in the country.