Property | Type | Description | |
---|---|---|---|
$service |
Property | Type | Description | |
---|---|---|---|
$_available_treatments | only want to query list of available treatments once |
Method | Description | |
---|---|---|
attributeLabels ( ) : array | ||
calculateAnswers ( $treeData, $answers, null $parent = null, array $textAnswers = [] ) : array | traverse the given tree and answers to construct list of questions and answers. | |
contraindicationsRequired ( ) : boolean | if either the left or right treatment requires the contraindications to be provided, returns true. otherwise returns false. | |
getDecisionTreeAnswersForDisplay ( $side ) : array | get the answers for each node in the decision tree (to display). | |
getDecisionTreeForSide ( string $side ) : OphCoTherapyapplication_DecisionTree | get the decision tree for the element side $side. | |
getInfotext ( ) : string | Set the event info text to the current status. | |
getTreatments ( string $side ) : OphTrIntravitrealinjection_Treatment_Drug[] | returns list of treatment for the given side. | |
isNonCompliant ( string $side = 'both' ) : boolean | null | determines if application is non compliant for the given side. If both, returns true if either side is non compliant. | |
model ( $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 ( ) | ||
tableName ( ) : string | ||
updateDecisionTreeResponses ( $side, $update_responses ) | ||
validateDateNotInFuture ( $attribute ) | validate a date is not in the future (assumes that date attributes already converted to mysql date format). |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public contraindicationsRequired ( ) : boolean | ||
return | boolean | $required |
public getDecisionTreeAnswersForDisplay ( $side ) : array | ||
$side | ||
return | array |
public getDecisionTreeForSide ( string $side ) : OphCoTherapyapplication_DecisionTree | ||
$side | string | |
return | OphCoTherapyapplication_DecisionTree |
public getInfotext ( ) : string | ||
return | string |
public getTreatments ( string $side ) : OphTrIntravitrealinjection_Treatment_Drug[] | ||
$side | string | - left or right |
return | OphTrIntravitrealinjection_Treatment_Drug[] |
public static model ( $className = __CLASS__ ) : the | ||
return | the | static model class |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public updateDecisionTreeResponses ( $side, $update_responses ) |
public validateDateNotInFuture ( $attribute ) | ||
$attribute | - the element attribute that must be an earlier date |
protected $_available_treatments |