A mother who poisoned her baby son with epilepsy medication to gain sympathy and attention will spend at least three years in jail.

The 22-year-old, who suffers factitious Disorder - previously known as Munchausen Syndrome by Proxy - was arrested in 2018 after repeatedly claiming her 18-month-old was having seizures.

In the video above: Cameron Boyce's cause of death confirmed to be epilepsy

She had been giving the boy epilepsy medication Tegretol, against doctor’s orders, making him extremely ill and after more than 30 hospitals visits his paediatrician raised the alarm with authorities.

Asked why she was giving her son the medication, the mother told police she "wanted a break", the court heard.

"He was attached to me, he was never out my sight," she said.

The mother was jailed for six years jail with a non-parole period of three years in the Downing Centre District Court on Friday.

The 22-year-old, who suffers Fictitious Disorder - previously known as Munchausen Syndrome by Proxy - was arrested in 2018. Credit: AAP

The judge took into account the mother's long history of mental health problems, including depression, mood swings, self-harm, feelings of worthlessness and sexual assault.

He said while that made her less culpable for what she had done her actions were still reckless and deliberate.

More on 7NEWS.com.au:

Outside the court, relatives said the boy was in "good spirits" and thanked all those involved in the investigation.

"There's definitely no winners in this situation, a very traumatic and lengthy process."

"He's in good spirits with us," the family member said.

"There is a lot of love, a lot of support and that's something that will definitely continue more so as he develops in age."