When a person is suffering from chronic pain or other symptoms that affect the mood, physical and mental, it is logical that you can affect in relationships.
Keep it as depend on the attitude of the patient. A negative attitude will affect each and every one of the aspects of your life , affecting their health and personal relationships.
It is better to go to professionals such as a psychologist to help you in this aspect. This is not to search guilty of the situation but to understand situations in order to improve your quality of life.