A person with hypochondria (health anxiety) does not imagine symptoms...they really believe they have a serious medical illness.
The following video explains how hypochondria develops: