PHP Class WaitingListController

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseModuleController
Mostra file Open project: openeyes/openeyes

Public Properties

Property Type Description
$renderPatientPanel

Public Methods

Method Description
accessRules ( )
actionConfirmPrinted ( ) Set operations printed letter state.
actionFilterFirms ( ) Generates a firm list based on a subspecialty id provided via POST echoes form option tags for display.
actionFilterSetFirm ( ) Ajax action to set the firm filter.
actionFilterSetHosNum ( ) Ajax action to set the hosnum filter.
actionFilterSetSiteId ( ) Ajax action to the site id filter.
actionFilterSetStatus ( ) Ajax action to set the status filter.
actionIndex ( ) Lists all models.
actionPrintLetters ( ) Prints next pending letter type for requested operations Operation IDs are passed as an array (operations[]) via GET or POST Invalid operation IDs are ignored.
actionSearch ( ) Carry out a search on the waiting list.
getWaitingList ( $firm_id, $subspecialty_id, $status, boolean $hos_num = false, boolean $site_id = false ) : Element_OphTrOperationbooking_Operation[] Get the operations for the waiting list criteria provided.
printActions ( ) : array
setFilter ( $field, $value ) Store the filter item in the user session.

Protected Methods

Method Description
getFilteredFirms ( integer $subspecialtyId ) : array Helper method to fetch firms by subspecialty ID.
getFromAddress ( Element_OphTrOperationbooking_Operation $operation ) : string Get letter from address for letter.
printLetter ( Element_OphTrOperationbooking_Operation $operation, boolean $auto_confirm = false ) Print the next letter for an operation.
print_gp_letter ( Element_OphTrOperationbooking_Operation $operation )
print_invitation_letter ( Element_OphTrOperationbooking_Operation $operation )
print_reminder_letter ( Element_OphTrOperationbooking_Operation $operation )

Method Details

accessRules() public method

public accessRules ( )

actionConfirmPrinted() public method

Set operations printed letter state.

actionFilterFirms() public method

Generates a firm list based on a subspecialty id provided via POST echoes form option tags for display.
public actionFilterFirms ( )

actionFilterSetFirm() public method

Ajax action to set the firm filter.
public actionFilterSetFirm ( )

actionFilterSetHosNum() public method

Ajax action to set the hosnum filter.

actionFilterSetSiteId() public method

Ajax action to the site id filter.

actionFilterSetStatus() public method

Ajax action to set the status filter.

actionIndex() public method

Lists all models.
public actionIndex ( )

actionPrintLetters() public method

Prints next pending letter type for requested operations Operation IDs are passed as an array (operations[]) via GET or POST Invalid operation IDs are ignored.
public actionPrintLetters ( )

actionSearch() public method

Carry out a search on the waiting list.
public actionSearch ( )

getFilteredFirms() protected method

Helper method to fetch firms by subspecialty ID.
protected getFilteredFirms ( integer $subspecialtyId ) : array
$subspecialtyId integer
return array

getFromAddress() protected method

Get letter from address for letter.
protected getFromAddress ( Element_OphTrOperationbooking_Operation $operation ) : string
$operation Element_OphTrOperationbooking_Operation
return string

getWaitingList() public method

Get the operations for the waiting list criteria provided.
public getWaitingList ( $firm_id, $subspecialty_id, $status, boolean $hos_num = false, boolean $site_id = false ) : Element_OphTrOperationbooking_Operation[]
$firm_id
$subspecialty_id
$status
$hos_num boolean
$site_id boolean
return Element_OphTrOperationbooking_Operation[]

printActions() public method

See also: parent::printActions()
public printActions ( ) : array
return array (non-phpdoc)

printLetter() protected method

Print the next letter for an operation.
protected printLetter ( Element_OphTrOperationbooking_Operation $operation, boolean $auto_confirm = false )
$operation Element_OphTrOperationbooking_Operation
$auto_confirm boolean

print_gp_letter() protected method

protected print_gp_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

print_invitation_letter() protected method

protected print_invitation_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

print_reminder_letter() protected method

protected print_reminder_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

setFilter() public method

Store the filter item in the user session.
public setFilter ( $field, $value )
$field
$value

Property Details

$renderPatientPanel public_oe property

public $renderPatientPanel