PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_DRGrading

NOTE that this element provides the facility to set a patient secondary diagnosis for the diabetic type. To enable support for deleting it, we record the id of the SecondaryDiagnosis it creates, as well as the type. A foreign key constraint is not enforced to allow the SecondaryDiagnosis to be deleted as normal through the Patient view. The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Show file Open project: openeyes/openeyes

Public Properties

Property Type Description
$secondarydiagnosis_disorder_required
$service

Public Methods

Method Description
attributeLabels ( ) : array
beforeSave ( ) if a secondary diagnosis disorder id has been set, we need to ensure its created on the patient.
canCopy ( )
delete ( ) : boolean
flagRequired ( $attribute, $params ) validator that requires the attribute only if the flag attribute on the element is true.
getDiabetesTypes ( )
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.
sidedFields ( ) : array
softDelete ( ) (non-phpdoc).
tableName ( ) : string

Protected Methods

Method Description
_getSecondaryDiagnosis ( ) : SecondaryDiagnosis | null Because the secondary diagnosis may or may not exist we have a function to check for it.
cleanUpSecondaryDiagnosis ( ) if this element is linked to a secondary diagnosis that still exists, it will be removed.

Method Details

_getSecondaryDiagnosis() protected method

Because the secondary diagnosis may or may not exist we have a function to check for it.
protected _getSecondaryDiagnosis ( ) : SecondaryDiagnosis | null
return SecondaryDiagnosis | null

attributeLabels() public method

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

beforeSave() public method

if a secondary diagnosis disorder id has been set, we need to ensure its created on the patient.
See also: parent::beforeSave()
public beforeSave ( )

canCopy() public method

public canCopy ( )

cleanUpSecondaryDiagnosis() protected method

if this element is linked to a secondary diagnosis that still exists, it will be removed.

delete() public method

See also: cleanUpSecondaryDiagnosis()
See also: parent::delete()
public delete ( ) : boolean
return boolean

flagRequired() public method

validator that requires the attribute only if the flag attribute on the element is true.
public flagRequired ( $attribute, $params )
$attribute
$params

getDiabetesTypes() public method

public getDiabetesTypes ( )

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.

sidedFields() public method

See also: parent::sidedFields()
public sidedFields ( ) : array
return array (non-phpdoc)

softDelete() public method

(non-phpdoc).
See also: cleanUpSecondaryDiagnosis()
See also: parent::softDelete()
public softDelete ( )

tableName() public method

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

Property Details

$secondarydiagnosis_disorder_required public property

public $secondarydiagnosis_disorder_required

$service public property

public $service