The invention is directed to an expandable stent for implantation in a body lumen, such as an artery, and a method for making it from a single length of tubing. A protective circuit module including a substrate and protective devices mounted on the substrate is electrically connected to the unit batteries adjacent to top portions of the unit batteries. The IC further includes routing circuits for routing signals to and from the logic circuits to allow the logic circuits to perform the operations.