To prevent pregnancy, your dermatologist will likewise prescribe a contraceptive pill if it's feasible for you to obtain pregnant.: If you have an infection or excruciating swelling, your dermatologist can prescribe medication to treat these. If you have a type of hair loss called frontal fibrosing alopecia (FFA), which can trigger painful swelling