Nauru’s president, Baron Waqa, has lost his seat in parliament.

Election results from his electorate of Boe show that Waqa, who has been president since 2013, lost to Asterio Appi and Martin Hunt.

The results come amid a continuing humanitarian crisis for almost 300 refugees remaining on Nauru, with the Nauruan government accused of blocking some medical care to refugees and the Australian government attempting to repeal medevac laws.

On Friday a 36-year-old Pakistani refugee set himself alight.

Waqa only narrowly beat the former cabinet minister and serving opposition member Mathew Batsiua for third place.

The new parliament will meet and elect a new president and speaker on Tuesday, the official republic of Nauru Twitter account said. Waqa will remain in his role until then.

“His Excellency President Baron Waqa has been a wonderful leader for six years,” a statement tweeted on Sunday said. “His government created stability and prosperity for Nauru and he was a tremendous ambassador internationally for Nauru and the Pacific region.

“He will be missed. Thank you for your service President Waqa.”

His Excellency President Baron Waqa has been a wonderful leader for 6 years. His government created stability & prosperity for Nauru & he was a tremendous ambassador internationally for Nauru & the Pacific region. He will be missed. Thank you for your service President Waqa. — Republic of Nauru (@Republic_Nauru) August 25, 2019

The parliamentary election was held on Saturday. Seven thousand people voted to make up the 19-member parliament. Results from six of the eight electorates had been published by Sunday morning.

On Monday Médecins Sans Frontières, which was kicked off Nauru last year for providing mental health services to refugees and has accused the island’s government of breaching medical ethics, will give evidence to an Australian Senate inquiry on the Morrison government’s legislation to appeal the medevac laws.

Reports that Nauruan president Baron Waqa, has not been re-elected in today’s national vote pic.twitter.com/eMqBv9dmuT — Helen Davidson (@heldavidson) August 24, 2019

Medevac laws allow for doctors to arrange for the urgent medical transfer of a refugee from Nauru or Manus Island to Australia.

In February the Nauru government passed laws that presented residents of Nauru from being granted a medical transfer to Australia if the referral was based on an online consultation, which is common in the treatment of refugees.

Batsiua was suspended from parliament in 2014 after publicly criticising the Waqa government and is a member of the Nauru 19, a group of protesters facing prosecution over a protest against the removal of Batsiua and two others from parliament.

The former president Ludwig Scotty, re-elected in May in a byelection, also lost his seat in the Anabar electorate, along with a fellow sitting MP, Riddell Akua. Elected in their place were Maverick Eoe and Pyon Deiye.

Home affairs minister, Charmaine Scotty, was re-elected in Yaren alongside Isabella Dageago.

Khyde Menke, Tawaki Kam and Lionel Aingimea were elected in Menang while Milton Dube was re-elected in Aiwo, alongside Rennier Gadabu. The opposition MP Marcus Stephen was re-elected in Anetan, as was newcomer Timothy Ika.

The former justice minister Roland Kun is out in Buada, with the government MP Shadlog Bernicke retaining his seat alongside Bingham Agir.