My dog has had two patella luxation operations. It's needed when the kneecap (patella) does not sit in the groove of the bone below, so it slips out of place, and this can be painful and result in loss of use of the leg. It happens because this groove is too shallow or narrow for the kneecap to sit in, due to being underdeveloped.
Each surgery cost me over $1,500.