PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_Diagnoses

The followings are the available columns in table:
Inheritance: extends BaseEventTypeElement
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
afterValidate ( ) Ensure a principal diagnosis is set for the episode.
attributeLabels ( ) : array
getCommonOphthalmicDisorders ( integer $firm_id ) : array Gets the common ophthalmic disorders for the given firm.
getEyeForDisorder ( $disorder_id, $disorder_ids )
getLetter_string ( )
getPrint_view ( )
getSelectedDisorderIDs ( ) : int[] Returns the disorder ids for the element diagnoses.
model ( string $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
updateDiagnoses ( $update_disorders ) Update the diagnoses for this element using a hash structure of [{ 'disorder_id' => integer, 'eye_id' => \Eye::LEFT|\Eye::RIGHT|\Eye::BOTH, 'principal' => boolean }, .

Protected Methods

Method Description
beforeDelete ( ) : boolean Delete the related diagnoses for this element.

Method Details

afterValidate() public method

Ensure a principal diagnosis is set for the episode.
public afterValidate ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

beforeDelete() protected method

Delete the related diagnoses for this element.
protected beforeDelete ( ) : boolean
return boolean

getCommonOphthalmicDisorders() public method

Gets the common ophthalmic disorders for the given firm.
public getCommonOphthalmicDisorders ( integer $firm_id ) : array
$firm_id integer
return array

getEyeForDisorder() public method

public getEyeForDisorder ( $disorder_id, $disorder_ids )

getLetter_string() public method

public getLetter_string ( )

getPrint_view() public method

public getPrint_view ( )

getSelectedDisorderIDs() public method

Returns the disorder ids for the element diagnoses.
public getSelectedDisorderIDs ( ) : int[]
return int[]

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : the
$className string
return the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

tableName() public method

public tableName ( ) : string
return string the associated database table name

updateDiagnoses() public method

.. ].
public updateDiagnoses ( $update_disorders )
$update_disorders