Patent Document ID: 8352029
Application ID: 12785954
Patent Flag: 1

Claim One:
1. A method comprising the acts of: implementing a neural stimulation therapy mode in an implantable medical device (IMD) comprising stimulation circuitry adapted to provide at least one neural stimulation energy to a patient using at least one neural stimulation electrode, the implementing the neural stimulation therapy mode including: storing representations of device states as entries of a neural table, wherein a device state is defined by one or more timer states, including at least one neural event timer, or one or more indications of one or more sensed physiologic events; mapping respective device states to associated device actions in the stored neural table, wherein the device actions include: one or more of a neural stimulation energy delivery and a change in one or more timer states; and a set of one or more action inputs, wherein an action input includes at least one of an input to the neural stimulation circuitry and an input to the one or more timers; detecting a change in a current device state; searching the neural table entries to identify a match to the current device state in response to the detected change; applying an action word associated with the identified neural table entry match to action inputs to cause performance of one or more associated device actions, wherein an action input includes at least one of an input to the neural stimulation circuitry and an input to the one or more timers; and storing an event represented as a device status word and a time stamp in a queue in response to an action input.