Hi there ~
Having a polysomnogram may be diagnostic of the primary insomnia or the insomnia secondary to the general medical condition or a mental health condition. I would also think that this would rule out obstructive sleep apnea
. I would also recommend that you see a psychiatrist
who can prescribe medications that can help with sleep difficulties as well, some suggestions include melatonin
a natural supplement and a naturally occurring hormone that regulates the circadian rhythm and is available over the counter. Others include mirtazapine
or paxil which can help with sleep difficulties or even small doses of qutiapine. However these are only suggestions that you might want to present before your psychiatrist. Hope this helps.
Take care and have a lovely day!