PHP Класс 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:
Наследование: extends SplitEventTypeElement
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$secondarydiagnosis_disorder_required
$service

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_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.

Описание методов

_getSecondaryDiagnosis() защищенный Метод

Because the secondary diagnosis may or may not exist we have a function to check for it.
protected _getSecondaryDiagnosis ( ) : SecondaryDiagnosis | null
Результат SecondaryDiagnosis | null

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeSave() публичный Метод

if a secondary diagnosis disorder id has been set, we need to ensure its created on the patient.
См. также: parent::beforeSave()
public beforeSave ( )

canCopy() публичный Метод

public canCopy ( )

cleanUpSecondaryDiagnosis() защищенный Метод

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

delete() публичный Метод

См. также: cleanUpSecondaryDiagnosis()
См. также: parent::delete()
public delete ( ) : boolean
Результат boolean

flagRequired() публичный Метод

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

getDiabetesTypes() публичный Метод

public getDiabetesTypes ( )

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : the
$className string
Результат the static model class

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

sidedFields() публичный Метод

См. также: parent::sidedFields()
public sidedFields ( ) : array
Результат array (non-phpdoc)

softDelete() публичный Метод

(non-phpdoc).
См. также: cleanUpSecondaryDiagnosis()
См. также: parent::softDelete()
public softDelete ( )

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

Описание свойств

$secondarydiagnosis_disorder_required публичное свойство

public $secondarydiagnosis_disorder_required

$service публичное свойство

public $service