BOSTON — The Boston Red Sox designated outfielder Jeremy Hermida for assignment.

Outfielder Ryan Kalish, a former Portland Sea Dog, was called up from Triple-A Pawtucket to replace him on the roster.

Hermida had originally been listed in the starting lineup for today’s game against the Detroit Tigers.

An announcement was made in the press box 20 minutes before the first pitch with the change.

Hermida was batting .203 with five homers and 27 RBI this season.

The Red Sox traded right-handed reliever Ramon Ramirez to the San Francisco Giants just before the trade deadline, the team announced. No further details have been given.

Ramirez, 28, was brought off the field earlier in the day after being hit by a ball above the right eye during batting practice. He appeared to be OK but was seen changing in the last few minutes that the clubhouse was open to the media.

Acquired before the 2009 season in the deal that sent Coco Crisp to the Kansas City Royals, Ramirez was 7-4 with a 2.84 ERA in his first season in Boston. However, his ERA increased each month of the season and he struggled this season.