The procedure is performed in a hospital or outpatient surgery center. During the surgery, the damaged cartilage and bone is removed from your joint and replaced with prosthetic components made of metal, plastic, or ceramic. The prosthesis mimics the shape and movement of a natural joint.