added functional for patient creation