Before any person is examined by a regional center pursuant to Section 1370.1 of the Penal Code, the court ordering such medical examination shall transmit to the regional center a copy of the orders made pursuant to proceedings conducted under Sections 1368 and 1369 of the Penal Code. The purpose of the mental examination shall be to determine if developmental disability is the primary diagnosis.