The Taliban have pledged their readiness to cooperate with healthcare workers instead of killing them, as fear of a coronavirus epidemic spreads in Afghanistan.

Whatever reservations the militants previously held over eradicating the crippling disease, they have now clearly grasped the dangers posed by the pandemic sweeping the rest of the world.

In the past the military organisation have been accused of impeding the work of doctors.

'The Islamic Emirate via its Health Commission assures all international health organizations and WHO of its readiness to cooperate and coordinate with them in combating the coronavirus,' said Suhail Shaheen, the Taliban's spokesman, on Twitter, using the term the group uses to describe itself.

An Afghan health worker in Kabul measures the temperature of passengers in an effort to prevent the spread of the coronavirus

Afghanistan currently has 22 confirmed coronavirus cases, with concerns growing particularly over the danger of infections among the thousands of Afghans crossing the border with Iran – one of the worst-affected nations.

Zabihullah Mujahid, another Taliban spokesman, told Reuters fighters were encouraging people to listen to health workers and messages broadcast by Mullahs, and would force anyone not obeying to comply.

'Our Mujahideen are helping the health workers to spread out the messages about the dangers of COVID-19 among the public in our controlled areas,' he said.

Religious scholars would also be consulted over whether gatherings in mosques should be suspended if the health scare intensified, he added.

A Taliban commander in southern Helmand province said the group would provide what services it could for people who became infected, but added that they neither had adequate facilities nor trained personnel to deal with an epidemic.

Afghanistan currently has 22 confirmed coronavirus cases, with concerns growing particularly over the danger of infections among the thousands of Afghans crossing the border with Iran – one of the worst-affected nations. Pictured: an Afghan worker sprays disinfectant in Jalalabad, Afghanistan

Along with two other commanders that Reuters spoke with, he said the Taliban had clinics where sick or wounded fighters were taken for treatment.

Otherwise, some Afghan non-government organisations are operating in insurgency-prone areas.

Waheed Omer, an aide to President Ashraf Ghani, said he was still seeing reports of Taliban harassing health workers in some areas.

'It should be stopped immediately,' he Tweeted on Wednesday.

Back in September, the Taliban lifted a ban on the World Health Organisation and Red Cross from operating in militant-held territory, having warned them off in April because of suspicions over polio vaccination campaigns.

An Afghan health worker measures the temperature of passengers in an effort to prevent the spread of the coronavirus as they enter Kabul

In a report in December, the World Health Organisation refrained from naming the Taliban or any other militant group as it counted the human and social cost of targeted attacks on healthcare during 2019.

At least 51 healthcare workers, patients and supportive staff were killed and 142 others wounded. As a result of the attacks 192 health facilities were closed, of which only 34 were re-opened.

The Taliban denied responsibility for the attacks that Afghan authorities have blamed on their fighters.

The country's woefully inadequate health system would undoubtedly be overwhelmed if the virus were to take hold. Moreover, after 18 years of war the government only controls about half of the country.

The rest is either controlled or contested by the insurgents, who have agreed a peace deal with the United States, but have yet to open talks with the government.

A worker in a protective suit sprays disinfectant over a police vehicle in Kabul, Afghanistan

Communities in ethnic Pashtun rural areas where the Taliban hold sway could suffer from the loss of access to health support in their villages as a result of past militant action.

Access can be even worse for women in these communities due to conservative Pashtun attitudes on gender.

Rahila, a 31 year old woman living in Takhar province, said that in her village in a Taliban-controlled area there was a health clinic with only male doctors.

'When we get sick we are not allowed to go to a doctor, instead our husbands bring medicine for us,' Rahila told Reuters, asking not to publish her full name over safety concerns. 'Who will test the women?'

She added: 'What if a woman has a coronavirus…everyone in our village will be affected. If magic happens and helps the Taliban, then the Taliban can prevent coronavirus in our village.'