Emergency care will continue to be given 24 hours a day at Ysbyty Ystrad Fawr (YYF) after allegations that the Local Emergency Centre could close through the night.
Concerns were raised that training issues meant junior doctors would not be present at the hospital, but discussions between Aneurin Bevan University Health Board (ABUHB) and the Wales Deanery have been successful.
Health bosses warned if the Deanery removed junior doctors the emergency facility would have to close between 8pm and 8am.
But an ABUHB spokesperson said a number of consultants were being hired and that the unit will continue to open around the clock.
The spokesperson said: “The health board has had a positive meeting with deanery and are currently recruiting consultant staff to provide care and supervision seven days a week in YYF.
“We are confident that the new model of care will enable us to maintain the high standards of care for patients in YYF”
Caerphilly AM Jeff Cuthbert, who raised concerns about the closure of the hospital to the public through the night, also welcomed the progress.
He said: “I met with the health board before Christmas and they said they would try to maintain the facilities at YYF.
“I’m very pleased to hear of this development and I’m sure my constituents will be pleased also.”
Plaid Cymru group leader on Caerphilly County Borough Council Colin Mann also met with health bosses to raise concerns about the closure.
Cllr Mann said: “I think the Deanery and health board recognised the problems they would cause to people in the borough.
“I very much welcome the decision and look forward to an ever improving service in YYF.”
Professor Chris Callander, Sub Dean of the Wales Deanery said: “The health board accepted the training issues that had previously been raised by the Wales Deanery and confirmed implementation of the existing plan for the most junior of the medical trainees at YYF to undertake weekday out-of-hours duties at other hospitals in the health board from February.
“The health board also discussed the development of a major increase in direct consultant presence at YYF between the hours of 8pm and 8am seven days a week.
“The Wales Deanery welcomed this development and confirmed that this would now enable the continued allocation of the junior trainee doctors to YYF on Saturdays and Sundays during these times.”