CASR and familial primary hypomagnesemia: Gain-of-function mutations in the gene encoding the calcium sensing receptor CaSR (CASR) are associated with hypercalciuric hypocalcemia and occasionally with hypomagnesemia [21, 22].