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
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$secondarydiagnosis_disorder_required
$service

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeSave() public méthode

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 méthode

public canCopy ( )

cleanUpSecondaryDiagnosis() protected méthode

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

delete() public méthode

See also: cleanUpSecondaryDiagnosis()
See also: parent::delete()
public delete ( ) : boolean
Résultat boolean

flagRequired() public méthode

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

getDiabetesTypes() public méthode

public getDiabetesTypes ( )

model() public static méthode

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

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

sidedFields() public méthode

See also: parent::sidedFields()
public sidedFields ( ) : array
Résultat array (non-phpdoc)

softDelete() public méthode

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

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

Property Details

$secondarydiagnosis_disorder_required public_oe property

public $secondarydiagnosis_disorder_required

$service public_oe property

public $service