Codesoft Soft Gelatin Capsule is used to treat premenstrual syndrome, mastalgia (breast pain), and rheumatoid arthritis. Premenstrual syndrome is a condition in which a woman has symptoms one to two weeks before her period. Mastalgia is breast pain caused by cyclical or non-cyclical hormonal fluctuations.