public function Registrar(Paciente $data) { try { $sql = "INSERT INTO paciente (Nombre,Apellido,Sexo,FechaNacimiento,Medico,Detalles) \n\t\t VALUES (?, ?, ?, ?, ?, ?)"; $this->pdo->prepare($sql)->execute(array($data->__GET('Nombre'), $data->__GET('Apellido'), $data->__GET('Sexo'), $data->__GET('FechaNacimiento'), $data->__GET('Medico'), $data->__GET('Detalles'))); } catch (Exception $e) { die($e->getMessage()); } }