PHP 클래스 Element_OphTrOperationbooking_Operation

The followings are the available columns in table:
상속: extends BaseEventTypeElement
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$count
$service

보호된 프로퍼티들

프로퍼티 타입 설명
$_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