Gravar-mail: Role of cognitive function in assessing informed consent for endoscopy