The Lamotrigine test is primarily performed to measure the concentration of the drug Lamotrigine in the blood. Lamotrigine is an anti-seizure medication used to treat various types of seizures, including partial seizures and generalized seizures. It is also used to treat psychiatric disorders such as bipolar disorder to stabilize mood and prevent manic episodes.