Patients in Wales will be encouraged to only go to hospital if it is essential, under new plans published by the Welsh Government.
As the 70th anniversary of the NHS approaches, health services will be delivered in the community with a focus on prevention.
Ministers have promised a revolution in health and social care with their plan, A Healthier Wales, focusing on providing more joined-up community services.
In the future people will only go to a general hospital when it is essential, the Welsh Government said.
The intention is to create even better care locally, with support and treatment available across a range of community-based services.
This shift will mean that when hospital based care is needed it can be accessed more quickly,
The changes will begin immediately with a £100 million transformation fund to support the implementation of the plan.
The funding will be targeted at resources to speed up the process, including the development of new integrated prevention services and activities in the community.
Health Secretary Vaughan Gething (pictured) said: "This year we are celebrating the 70th anniversary of the NHS, which was born here in Wales.
"We remain hugely proud of its achievements and all who work within it. However, it is clear that much has changed in those 70 years.
"With an increase in life expectancy and our continued public health challenges the service is facing increasing pressure.
"Today's plan sets out our vision for the future - it looks at how we will adapt to meet these future challenges and transform the way we deliver health and social care.
"We will deliver that change and remain true to the core values of the NHS to provide free healthcare for all."
It is the first time the Welsh Government has set out a shared plan for health and social care.
The aim is to see a shift from healthcare which focuses on treating people when they become unwell, to one that provides services which support people to stay well, lead healthier lifestyles and live independently for as long as possible.
There will also be more focus on seamless services, which are designed to fit around the individual. Information will be shared between services and providers, allowing a smoother patient experience.
This will also allow those with the greatest need to be treated first and make the most effective use of resources.
The plan also commits the Welsh Government to increasing investment in digital technologies and to support and develop the workforce, including unpaid carers and volunteers.
Mr Gething added: "The Parliamentary Review found that much of what we are doing in health and social care in Wales is right, but that change needs to be made to secure services for the future and to ensure people continue to get the best care.
"Today we are responding to that review. This will be a revolution from within the health service.
"We have to move on from the idea that the hospital is the first or best place for you to be when you are unwell.
"That isn't always the case, especially when there are a range of local services that will allow you to remain safely at home.
"I recognise the challenge and this will take time, but change will begin immediately.
"By the time we celebrate the 80th anniversary of our NHS I expect to see a stronger, joined-up system between health and social care that will be fit to serve people for generations to come."
Copyright (c) Press Association Ltd. 2018, All Rights Reserved. Picture (c) BMA Wales.