PHP Class OEModule\PatientTicketing\controllers\DefaultController

Inheritance: extends BaseModuleController
Show file Open project: openeyes/openeyes

Public Properties

Property Type Description
$QUEUESETCATEGORY_SERVICE
$QUEUESET_SERVICE
$TICKET_SERVICE
$layout
$renderPatientPanel

Protected Properties

Property Type Description
$page_size

Public Methods

Method Description
accessRules ( ) : array Access rules for ticket actions.
actionCollapseTicket ( $ticket_id ) Set user to session to keep ticket collapsed.
actionExpandTicket ( $ticket_id ) Set user to session to keep ticket expanded.
actionGetFirmsForSubspecialty ( )
actionGetPatientAlert ( $patient_id ) Load the Patient Alert widget for the given patient.
actionGetQueueAssignmentForm ( $id ) Generates the form for assigning a Ticket to the given Queue.
actionGetTicketTableRow ( $id ) Generate individual row for the given Ticket id.
actionGetTicketTableRowHistory ( $id ) Generate history rows for the given Ticket id.
actionIndex ( ) Generate a list of current tickets.
actionMoveTicket ( $id ) Handles the moving of a ticket to a new Queue.
actionNavigateToEvent ( $id ) Handles the moving of a ticket to a new Queue.
actionReleaseTicket ( $id ) Release a ticket from assignment.
actionStartTicketProcess ( $ticket_id ) Action to mark the given ticket as being processed by the current user Redirects to the appropriate page for the user to process the patient.
actionTakeTicket ( $id ) Method to take ownership of a ticket for the current user.
actionUndoLastStep ( $id )
checkQueueSetProcessAccess ( $queueset ) : mixed Check the current user is permissioned on the given queueset.
printActions ( ) : array: List of print actions.
setTicketState ( $ticket, $expand, boolean $unique = false ) Abstraction of managing session tracking of expanded tickets.
validateForm ( $ticket_id )

Protected Methods

Method Description
beforeAction ( CAction $action ) : boolean Ensures firm is set on the controller.
buildTicketFilterCriteria ( $filter_options, PatientTicketing_QueueSet $queueset )

Private Methods

Method Description
autoSaveTicket ( $data )

Method Details

accessRules() public method

Access rules for ticket actions.
public accessRules ( ) : array
return array

actionCollapseTicket() public method

Set user to session to keep ticket collapsed.
public actionCollapseTicket ( $ticket_id )
$ticket_id

actionExpandTicket() public method

Set user to session to keep ticket expanded.
public actionExpandTicket ( $ticket_id )
$ticket_id

actionGetFirmsForSubspecialty() public method

actionGetPatientAlert() public method

Load the Patient Alert widget for the given patient.
public actionGetPatientAlert ( $patient_id )
$patient_id

actionGetQueueAssignmentForm() public method

Generates the form for assigning a Ticket to the given Queue.
public actionGetQueueAssignmentForm ( $id )
$id

actionGetTicketTableRow() public method

Generate individual row for the given Ticket id.
public actionGetTicketTableRow ( $id )
$id

actionGetTicketTableRowHistory() public method

Generate history rows for the given Ticket id.
public actionGetTicketTableRowHistory ( $id )
$id

actionIndex() public method

Generate a list of current tickets.
public actionIndex ( )

actionMoveTicket() public method

Handles the moving of a ticket to a new Queue.
public actionMoveTicket ( $id )
$id

actionNavigateToEvent() public method

Handles the moving of a ticket to a new Queue.
public actionNavigateToEvent ( $id )
$id

actionReleaseTicket() public method

Release a ticket from assignment.
public actionReleaseTicket ( $id )
$id

actionStartTicketProcess() public method

Action to mark the given ticket as being processed by the current user Redirects to the appropriate page for the user to process the patient.
public actionStartTicketProcess ( $ticket_id )
$ticket_id

actionTakeTicket() public method

Method to take ownership of a ticket for the current user.
public actionTakeTicket ( $id )
$id

actionUndoLastStep() public method

public actionUndoLastStep ( $id )

beforeAction() protected method

Ensures firm is set on the controller.
protected beforeAction ( CAction $action ) : boolean
$action CAction
return boolean

buildTicketFilterCriteria() protected method

protected buildTicketFilterCriteria ( $filter_options, PatientTicketing_QueueSet $queueset )
$queueset OEModule\PatientTicketing\services\PatientTicketing_QueueSet

checkQueueSetProcessAccess() public method

Check the current user is permissioned on the given queueset.
public checkQueueSetProcessAccess ( $queueset ) : mixed
$queueset
return mixed

printActions() public method

List of print actions.
public printActions ( ) : array:
return array:

setTicketState() public method

Abstraction of managing session tracking of expanded tickets.
public setTicketState ( $ticket, $expand, boolean $unique = false )
$ticket
$expand
$unique boolean

validateForm() public method

public validateForm ( $ticket_id )

Property Details

$QUEUESETCATEGORY_SERVICE public static property

public static $QUEUESETCATEGORY_SERVICE

$QUEUESET_SERVICE public static property

public static $QUEUESET_SERVICE

$TICKET_SERVICE public static property

public static $TICKET_SERVICE

$layout public property

public $layout

$page_size protected property

protected $page_size

$renderPatientPanel public property

public $renderPatientPanel