Diagnosis of primary and secondary hyperparathyroidism