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:
Show file
Open project: openeyes/openeyes
Public Properties
Public Methods
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.
attributeLabels()
public method
beforeSave()
public method
if a secondary diagnosis disorder id has been set, we need to ensure its created on the patient.
cleanUpSecondaryDiagnosis()
protected method
if this element is linked to a secondary diagnosis that still exists, it will be removed.
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
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 rules ( ) : array |
return |
array |
validation rules for model attributes. |
Retrieves a list of models based on the current search/filter conditions.
public search ( ) : CActiveDataProvider |
return |
CActiveDataProvider |
the data provider that can return the models based on the search/filter conditions. |
sidedFields()
public method
softDelete()
public method
tableName()
public method
Property Details
$secondarydiagnosis_disorder_required public property
public $secondarydiagnosis_disorder_required |