Hadrons from coalescence plus fragmentation in AA collisions at energies available at the BNL Relativistic Heavy Ion Collider to the CERN Large Hadron Collider