/**
* Set up some key js vars.
*
* @param string $action
*/
protected function initAction($action)
{
parent::initAction($action);
if (in_array($action, array('create', 'update'))) {
$this->jsVars['OE_gp_id'] = $this->patient->gp_id;
$this->jsVars['OE_practice_id'] = $this->patient->practice_id;
$this->loadDirectLines();
}
}