Diagnosis typically involves a combination of medical history, physical examination, and laboratory tests. Blood tests can measure serum calcium, phosphorus, and vitamin D levels. In some cases, a bone x-ray or dual-energy X-ray absorptiometry (DEXA) scan may be necessary to assess bone density.