Gauteng Emergency Services' Lesiba Malotana says construction work was being done on the roof.
It is unclear at this stage what caused the structure to collapse, although bystanders on the scene have confirmed that the roof above the entrance was now under construction with new roofing being installed.
Roughly 30 emergency personnel searched through rubble to find people injured.
Videos posted on social media show chaotic scenes inside the hospital ward.
State hospitals in South Africa have been struggling with persistent underfunding for staff, equipment and facilities.
Rescue workers confirmed that the number of injured people is five, but rescue workers are continuing to dig through the rubble to look for anybody who might be trapped.
The rest hospital is safe, she said. They were sealing the roof when the roof collapsed.
She said rescue workers were busy working on site to ensure no one was trapped underneath the rubble.
Gauteng provincial health minister Gwen Ramokgopa said workers were on the roof when it collapsed into a public area of the Charlotte Maxeke hospital in central Johannesburg.
Structural defects, including persistent ceiling leaks because of faulty heating pipes, have long plagued the hospital with reports surfacing as far back as 2012 that the hospital was at risk of collapse.
"The collapse took place in the passage near maternity department on the hospital street".
What Time Is The Snap IPO Expected to Begin Trading?
At that price, it has a market value of about US$20 billion, based on 1.16 billion shares outstanding after the IPO. Facebook's IPO in 2012 at $38 per share valued the company at $ 104 billion (it's now worth almost $400 billion).
Zlatan Ibrahimovic says he is 'an animal, a lion'
Zlatan Ibrahimovic had a sly dig at Arsenal following their League Cup final win over Southampton on Sunday. After all these years (people said): 'He didn't come and show himself here.' But I came.