A heat pump water heater can’t entirely replace a boiler.
Boilers are designed to heat water for radiators – as a form of central heating – and for bathrooms. Heat pump water heaters, on the other hand, are only designed to provide hot water for bathrooms.