Hoping to have significant health problems because you want attention, or because you want to self-harm?
I'm not aware of a term for someone who just hopes to have health problems, but there is a disease where people purposely make themselves ill so they can be constantly hospitalized and receive attention and sympathy. I personally know someone with this disease. It is called Munchausen's Disease. The person I know with this disease has messed herself up so bad that the doctor's have given her only 8 more months to live. She strives to be the sickest person out of anyone and receive the most attention. It annoys me, mostly because she's destroying her life, but I have to keep telling myself that she's sick.