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
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$renderPatientPanel

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

public accessRules ( )

actionConfirmPrinted() public méthode

Set operations printed letter state.

actionFilterFirms() public méthode

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

actionFilterSetFirm() public méthode

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

actionFilterSetHosNum() public méthode

Ajax action to set the hosnum filter.

actionFilterSetSiteId() public méthode

Ajax action to the site id filter.

actionFilterSetStatus() public méthode

Ajax action to set the status filter.

actionIndex() public méthode

Lists all models.
public actionIndex ( )

actionPrintLetters() public méthode

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 méthode

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

getFilteredFirms() protected méthode

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

getFromAddress() protected méthode

Get letter from address for letter.
protected getFromAddress ( Element_OphTrOperationbooking_Operation $operation ) : string
$operation Element_OphTrOperationbooking_Operation
Résultat string

getWaitingList() public méthode

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
Résultat Element_OphTrOperationbooking_Operation[]

printActions() public méthode

See also: parent::printActions()
public printActions ( ) : array
Résultat array (non-phpdoc)

printLetter() protected méthode

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 méthode

protected print_gp_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

print_invitation_letter() protected méthode

protected print_invitation_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

print_reminder_letter() protected méthode

protected print_reminder_letter ( Element_OphTrOperationbooking_Operation $operation )
$operation Element_OphTrOperationbooking_Operation

setFilter() public méthode

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

Property Details

$renderPatientPanel public_oe property

public $renderPatientPanel