Irreversible thermodynamics of Poisson processes with reaction