how do medical alerts work