This invention is directed to spiroheterocyclic compounds of formula (I):whereink, j, p, Q, R1, R3a, R3b, R3e, and R3d are as defined herein, as a stereoisomer, enantiomer, tautomer thereof or mixtures thereof; or a pharmaceutically acceptable salt, solvate or prodrug thereof, that are useful for the treatment and/or prevention of sodium channel-mediated diseases or conditions, such as pain. Pharmaceutical compositions comprising the compounds and methods of using the compounds are also disclosed.