first version of full patient generateRecord