The ScriptContext class gives you access to the active loaded information for the patient. Here are a few examples: ScriptContext.Patient (loaded patient), ScriptContext.Course (active course), ScriptContext.PlanSetup (active plan). ESAPI doesn't give
you access to what is selected via mouse on the screen, but it does give you acccess to the loaded / active information.