Mattingly said he expects to keep Ramirez off the disabled list. He said it is likely he'll be out of the lineup for a game or two.
"The shot seemed to kind of relieve everything," Mattingly said. "They usually say when that shot is successful that it really gets rid of everything right away."
Miguel Rojas will start in Ramirez's place Friday.
Ramirez has been banged up for much of the season, with injuries to his calf, legs and shoulder. That has caused him to miss 11 games and perhaps also lose the consistency that comes with playing everyday. He is batting .275 with 11 home runs and 48 RBIs.
Ramirez received the shot, which Mattingly said was to the AC joint, immediately following Thursday's win over the Padres. He went two for three with a stolen base in that game.
Mattingly didn't rule out Ramirez for the rest of the weekend before the All-Star break.
"You'd like for him to come out of the break feeling good," Mattingly said. "But if he's available to play, he'll play."
"He's having soreness all over the place," Mattingly said.
He added: "I just think generally, Dre just seems like he doesn't have the same energy, and I just know he hasn't felt good. Body-wise, just trying to give him that back."
Ethier has struggled with consistency this year. He is batting .250 in 79 games with four home runs and 34 RBIs.