The Boston Public Health Commission confirmed a case of measles in the city on Wednesday — the first time since 2013 that a city resident has been diagnosed with the highly contagious virus, officials said.

The individual was diagnosed with measles on Sunday, the BPHC said in a statement. The commission urged "anyone who does not know their measles immunization status to get vaccinated with at least one dose of the Measles, Mumps, and Rubella (MMR) vaccine."

"The person who was diagnosed was out and about in a few Boston businesses on Oct. 4 and 5, so residents who may have been at those locations during the specific time periods are at risk of contracting measles if they haven't been vaccinated in the past, or if they haven't had measles in the past," said Dr. Jennifer Lo, medical director of the Boston Public Health Commission. The location and exposure times can be found below.

"If any resident thinks they are at risk or were in those locations, they should reach out to their primary care provider and talk to them to see what their immunity status is, if they are risk of getting infected and what they should do from there," Lo said.

Lo credited Massachusetts with having what she called an extremely high vaccination rate, 98 percent. Nevertheless, she cautioned that measles is a dangerous illness, especially for people with chronic illness, children under the age of 5 and people over the age of 60, and said that everyone should be vaccinated.

"You can die from measles. You can have pneumonia. You can have seizures," Lo said. Measles is spread through the air, usually through coughing and sneezing. Early symptoms include a high fever, runny nose, cough and red eyes. Three to five days later, a skin rash appears with flat, red spots on the face.

Exposures to this individual may have occurred at the following locations and times in Boston, according to the Boston Public Health Commission:

Friday Oct. 4, 1:30 p.m. to 4:30 p.m.
Render Coffee, 563 Columbus Ave., South End

Friday Oct. 4, 2:30 p.m. to 4:45 p.m.
Cafe Madeleine, 517 Columbus Ave., South End

Friday Oct. 4 6:30 p.m. to 9:30 p.m.
Gyroscope, 305 Huntington Ave., Fenway

Saturday Oct. 5, 11:30 a.m. to 1:35 p.m.
CouCou, 24 Union Park St., South End

Saturday Oct. 5, 12 p.m. to 2:15 p.m.
Sir Speedy, 827 Boylston St., Back Bay