Understanding Medicare rules and their application