Medical devices, such as endoprostheses, and methods of making the devices
are described. In some implementations, a stent has a surface region of
magnesium with a protective surface layer of magnesium hydride obtained
by hydrogen surface modification through an H-EIR process, offering
enhanced corrosion resistance.