Welcome to HCM.
Primary cause of Joint pain and underweight
is due to multivitamin
First go for complete body profile test to rule out the diagnosis.Start multivitamin and hemitinics under guidance of your doctor.You have to take high protein,and other high calorie nutritive diets.
Better consult dietitian for better planning of your diet pattern.