build patients data