Health minister Stephen Kinnock said the Wakefield centre was “changing how people access care”.
“This is healthcare built around people’s lives,” he said.
“It is cutting hospital trips while boosting footfall and helping local shops.”
In Barnsley, a health centre is planned for the first floor of the Alhambra Shopping Centre.
The former Wilko store will host hospital eye specialists and other outpatient services. It is expected to be fully staffed by 2028.
It follows the opening of a community diagnostic centre in The Glass Works shopping centre in 2022 in the town, which has seen hundreds of thousands of people attend appointments for things like blood tests, ultrasounds and X-rays.
It is estimated that well over 100,000 visits a year could also be made to the new Alhambra centre instead of the hospital.
Leader of Barnsley Council, Sir Steve Houghton, said the initiative was “revolutionising how residents access health and wellbeing services”.
He said the health centre would “reduce pressure on existing healthcare facilities, improve access and quality of care and attract even more visitors to Barnsley town centre”.