Method |
Description |
|
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. |
|