The algorithm is primarily based on the pathogenesis of hypocalcemia and hypophosphatemia; serum concentrations of calcium, phosphate, and PTH represent the key biochemical parameters to differentiate hypocalcemic from hypophosphatemic form of rickets. The gene discussed is PTH; the disease is rickets.