PHP Класс Element_OphTrOperationbooking_Operation

The followings are the available columns in table:
Наследование: extends BaseEventTypeElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$count
$service

Защищенные свойства (Protected)

Свойство Тип Описание
$_has_bookings
$_original_referral_id

Открытые методы

Метод Описание
afterFind ( )
attributeLabels ( ) : array
audit ( $target, $action, $data = null, $log = false, $properties = [] )
calculateEROD ( Firm $firm = null ) : OphTrOperationbooking_Operation_EROD | null Calculate the EROD for this operation - the firm used to determine the service can be overridden by providing a firm.
canChangeReferral ( ) : boolean Whether the referral for the operation is still changeable - simple wrapper at the moment.
cancel ( $reason_id, $comment = null, $cancellation_user_id = false )
confirmLetterPrinted ( $confirmto = null, $confirmdate = null )
delete ( )
fixCalendarDateOrdering ( $sessions )
getContainer_view_view ( )
getDiagnosis ( )
getDisorderText ( )
getDueLetter ( ) : integer | null get the code for the letter that is due on this operation, based on the current status will return null if in an unknown state.
getFirm ( ) : Firm Wrapper function to get the element firm.
getFirmCalendarForMonth ( $firm, $timestamp, Element_OphTrOperationbooking_ScheduleOperation $schedule_options = null ) : array
getHas_address ( )
getHas_gp ( )
getHealthContact ( )
getLastLetter ( )
getLetterContact ( )
getLetterOptions ( )
getLetterType ( )
getMinDate ( )
getNextLetter ( )
getPatient ( ) : null | Patient Wrapper function to get the element patient.
getProcedureCount ( ) : integer Calculates the total number of procedures this operation requires.
getProceduresCommaSeparated ( $field = 'term' )
getRTT ( ) : RTT | null returns the RTT for the operation booking if there is one available.
getRTTBreach ( ) : string Get the RTT breach for this operation (if either an RTT is set, or if there is a psuedo-breach based on a week count from DTA).
getRefuseContact ( )
getSchedule_timeframe ( )
getTextOperationName ( )
getTheatres ( $date, $firm_id = false )
getTransportColour ( )
getTransportStatus ( )
getWaitingListContact ( )
getWaitingListLetterStatus ( )
getWaitingListStatus ( ) Returns the letter status for an operation.
getWardOptions ( $session )
getproc_defaults ( )
isEditable ( )
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
schedule ( OphTrOperationbooking_Operation_Booking $booking, $operation_comments, $session_comments, $operation_comments_rtt, boolean $reschedule = false, null $cancellation_data = null, Element_OphTrOperationbooking_ScheduleOperation $schedule_op = null ) : array | boolean
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
sent1stReminder ( )
sent2ndReminder ( )
sentGPLetter ( )
sentInvitation ( )
setDefaultOptions ( ) Set default values for forms on create.
setStatus ( $name, boolean $save = true ) Set the status based on the name passed in. If $save is false, we don't save and it is the responsibility of the caller to ensure the instance is saved.
tableName ( ) : string
updateProcedures ( array $procedure_ids ) Stores procedures identified by the given procedure ids against this element.
validateDuration ( $attribute ) : boolean Validate a duration only if a procedure exists so we don't have messages for non existent elements.
validateReferral ( $attribute, $params ) Ensure that referral assigned to the element is for the correct patient.

Защищенные методы

Метод Описание
afterValidate ( )
beforeSave ( ) : boolean Sets flags based on element properties.

Описание методов

afterFind() публичный Метод

public afterFind ( )

afterValidate() защищенный Метод

protected afterValidate ( )

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

audit() публичный Метод

public audit ( $target, $action, $data = null, $log = false, $properties = [] )

beforeSave() защищенный Метод

Sets flags based on element properties.
protected beforeSave ( ) : boolean
Результат boolean

calculateEROD() публичный Метод

(Note that this handles the emergency list by having a firm placeholder object that does not have an id - at this time, no sessions are assigned to A&E firms, having the effect that no EROD can be calculated for emergency bookings).
public calculateEROD ( Firm $firm = null ) : OphTrOperationbooking_Operation_EROD | null
$firm Firm
Результат OphTrOperationbooking_Operation_EROD | null

canChangeReferral() публичный Метод

Whether the referral for the operation is still changeable - simple wrapper at the moment.
public canChangeReferral ( ) : boolean
Результат boolean

cancel() публичный Метод

public cancel ( $reason_id, $comment = null, $cancellation_user_id = false )

confirmLetterPrinted() публичный Метод

public confirmLetterPrinted ( $confirmto = null, $confirmdate = null )

delete() публичный Метод

public delete ( )

fixCalendarDateOrdering() публичный Метод

public fixCalendarDateOrdering ( $sessions )

getContainer_view_view() публичный Метод

getDiagnosis() публичный Метод

public getDiagnosis ( )

getDisorderText() публичный Метод

public getDisorderText ( )

getDueLetter() публичный Метод

get the code for the letter that is due on this operation, based on the current status will return null if in an unknown state.
public getDueLetter ( ) : integer | null
Результат integer | null

getFirm() публичный Метод

Wrapper function to get the element firm.
public getFirm ( ) : Firm
Результат Firm

getFirmCalendarForMonth() публичный Метод

public getFirmCalendarForMonth ( $firm, $timestamp, Element_OphTrOperationbooking_ScheduleOperation $schedule_options = null ) : array
$firm
$timestamp
$schedule_options Element_OphTrOperationbooking_ScheduleOperation
Результат array

getHas_address() публичный Метод

public getHas_address ( )

getHas_gp() публичный Метод

public getHas_gp ( )

getHealthContact() публичный Метод

public getHealthContact ( )

getLastLetter() публичный Метод

public getLastLetter ( )

getLetterContact() публичный Метод

public getLetterContact ( )

getLetterOptions() публичный статический Метод

public static getLetterOptions ( )

getLetterType() публичный Метод

public getLetterType ( )

getMinDate() публичный Метод

public getMinDate ( )

getNextLetter() публичный Метод

public getNextLetter ( )

getPatient() публичный Метод

Wrapper function to get the element patient.
public getPatient ( ) : null | Patient
Результат null | Patient

getProcedureCount() публичный Метод

Calculates the total number of procedures this operation requires.
public getProcedureCount ( ) : integer
Результат integer

getProceduresCommaSeparated() публичный Метод

public getProceduresCommaSeparated ( $field = 'term' )

getRTT() публичный Метод

returns the RTT for the operation booking if there is one available.
public getRTT ( ) : RTT | null
Результат RTT | null

getRTTBreach() публичный Метод

Get the RTT breach for this operation (if either an RTT is set, or if there is a psuedo-breach based on a week count from DTA).
public getRTTBreach ( ) : string
Результат string 'Y-m-d'|null

getRefuseContact() публичный Метод

public getRefuseContact ( )

getSchedule_timeframe() публичный Метод

getTextOperationName() публичный Метод

getTheatres() публичный Метод

public getTheatres ( $date, $firm_id = false )

getTransportColour() публичный Метод

public getTransportColour ( )

getTransportStatus() публичный Метод

public getTransportStatus ( )

getWaitingListContact() публичный Метод

getWaitingListLetterStatus() публичный Метод

getWaitingListStatus() публичный Метод

Checks to see if it's an operation to be scheduled or an operation to be rescheduled. If it's the former it bases its calculation on the operation creation date. If it's the latter it bases it on the most recent cancelled_booking creation date. return int

getWardOptions() публичный Метод

public getWardOptions ( $session )

getproc_defaults() публичный Метод

public getproc_defaults ( )

isEditable() публичный Метод

public isEditable ( )

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Результат the static model class

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

schedule() публичный Метод

public schedule ( OphTrOperationbooking_Operation_Booking $booking, $operation_comments, $session_comments, $operation_comments_rtt, boolean $reschedule = false, null $cancellation_data = null, Element_OphTrOperationbooking_ScheduleOperation $schedule_op = null ) : array | boolean
$booking OphTrOperationbooking_Operation_Booking
$operation_comments
$session_comments
$operation_comments_rtt
$reschedule boolean
$cancellation_data null
$schedule_op Element_OphTrOperationbooking_ScheduleOperation
Результат array | boolean

sent1stReminder() публичный Метод

public sent1stReminder ( )

sent2ndReminder() публичный Метод

public sent2ndReminder ( )

sentGPLetter() публичный Метод

public sentGPLetter ( )

sentInvitation() публичный Метод

public sentInvitation ( )

setDefaultOptions() публичный Метод

Set default values for forms on create.
public setDefaultOptions ( )

setStatus() публичный Метод

Set the status based on the name passed in. If $save is false, we don't save and it is the responsibility of the caller to ensure the instance is saved.
public setStatus ( $name, boolean $save = true )
$name
$save boolean

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

updateProcedures() публичный Метод

Stores procedures identified by the given procedure ids against this element.
public updateProcedures ( array $procedure_ids )
$procedure_ids array

validateDuration() публичный Метод

Validate a duration only if a procedure exists so we don't have messages for non existent elements.
public validateDuration ( $attribute ) : boolean
$attribute
Результат boolean

validateReferral() публичный Метод

Ensure that referral assigned to the element is for the correct patient.
public validateReferral ( $attribute, $params )
$attribute
$params

Описание свойств

$_has_bookings защищенное свойство

protected $_has_bookings

$_original_referral_id защищенное свойство

protected $_original_referral_id

$count публичное свойство

public $count

$service публичное свойство

public $service