I am an ex corgi reg engineer ( retired) so I may be out of touch. A boiler certainly could be installed in a bathroom providing it had a sealed balanced flue (they all have now). As previous reply, it should be out of reach of sink and bath and all supply switches etc must be outside the room...