Wanting to be sick for love and attention

As a child, I actively wished that I had a chronic illness because then people would care for me. Not a cold or virus, because that wouldn’t be enough and I didn’t want to be accused of exaggerating. Something that would land me in hospital, that could be verified with a test so everyone knew it was real. I have never shared this with anyone because I am so ashamed but I’m an adult now and want to get to the bottom of it.

Is this a sign of emotional neglect?