The bundled payment program works like this: For some medical procedures, including joint replacements or some heart operations, the Centers for Medicare & Medicaid Services will add up the costs for the entire episode, from the hospital stay and medical supplies to the rehabilitation afterward.