When only some of the joint is damaged, a surgeon may be able to repair or replace just the damaged parts. When the entire joint is damaged, a total joint replacement is done. To replace a total hip or knee joint, a surgeon removes the diseased or damaged part and inserts artificial parts, called prostheses or implants.