A hereditary disorder that leads to a selective defect in renal or intestinal magnesium absorption, resulting in a low serum magnesium concentration. The disease is familial primary hypomagnesemia (MONDO_0018100). Also known as: HOMG, primary familial hypomagnesemia.