Method |
Description |
|
attributeLabels ( ) : array |
|
|
audit ( $target, $action, $data = null, $log = false, $properties = [] ) |
|
|
defaultScope ( ) : array |
Sets default scope for events such that we never pull back any rows that have deleted set to 1. |
|
disableDefaultScope ( ) |
|
|
getAllEventsByType ( $event_type_id ) : Event[] |
Get all the events of the given type for this episode. |
|
getBySubspecialtyAndPatient ( integer $subspecialtyId, integer $patientId, $onlyReturnOpen = true ) : object |
Returns the episode for a patient and subspecialty if there is one. |
|
getCurrentEpisodeByFirm ( $patient_id, $firm, $include_closed = false ) |
get the current episode for the given firm, based on the firm subspecialty - if firm has no
subspecialty, will return a support services episode. |
|
getCurrentEpisodeBySubspecialtyId ( $patient_id, $subspecialty_id, $include_closed = false ) |
get the current episode for the patient id and subspecialty_id (if this is null, looking for support services episode). |
|
getElementsOfType ( $element_type, integer $exclude_event_id = null ) : BaseEventTypeElement[] |
Get all elements of the given type from this Episode. |
|
getHidden ( ) |
|
|
getLatestEvent ( ) : Event |
get the latest event for this episode. |
|
getMostRecentEventByType ( $event_type_id ) : Event |
Get the most recent event by the given type in this episode. |
|
getOpen ( ) |
|
|
getPrincipalDiagnosisDisorderTerm ( ) |
|
|
getSubspecialty ( ) : Subspecialty |
get the subspecialty for this episode. |
|
getSubspecialtyID ( ) : integer | null |
get the subspecialty id for this episode. |
|
getSubspecialtyText ( ) : string |
get the subspecialty text for the episode. |
|
hasEventOfType ( integer $eventTypeId, Event $currentEvent = null ) : boolean |
Returns true if an event of the given type exists within this episode. |
|
model ( $className = __CLASS__ ) : Episode |
Returns the static model of the specified AR class. |
|
relations ( ) : array |
|
|
rules ( ) : array |
|
|
save ( $runValidation = true, $attributes = null, $allow_overriding = false, $save_version = false ) |
|
|
search ( ) : CActiveDataProvider |
Retrieves a list of models based on the current search/filter conditions. |
|
setPrincipalDiagnosis ( $disorder_id, $eye_id ) |
|
|
tableName ( ) : string |
|
|