PHP Class Element_OphCoTherapyapplication_PatientSuitability

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Show file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$service

Protected Properties

Property Type Description
$_available_treatments only want to query list of available treatments once

Public Methods

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).

Method Details

attributeLabels() public method

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

calculateAnswers() public method

traverse the given tree and answers to construct list of questions and answers.
public calculateAnswers ( $treeData, $answers, null $parent = null, array $textAnswers = [] ) : array
$treeData
$answers
$parent null
$textAnswers array
return array

contraindicationsRequired() public method

if either the left or right treatment requires the contraindications to be provided, returns true. otherwise returns false.
public contraindicationsRequired ( ) : boolean
return boolean $required

getDecisionTreeAnswersForDisplay() public method

get the answers for each node in the decision tree (to display).
public getDecisionTreeAnswersForDisplay ( $side ) : array
$side
return array

getDecisionTreeForSide() public method

get the decision tree for the element side $side.
public getDecisionTreeForSide ( string $side ) : OphCoTherapyapplication_DecisionTree
$side string
return OphCoTherapyapplication_DecisionTree

getInfotext() public method

Set the event info text to the current status.
public getInfotext ( ) : string
return string

getTreatments() public method

returns list of treatment for the given side.
public getTreatments ( string $side ) : OphTrIntravitrealinjection_Treatment_Drug[]
$side string - left or right
return OphTrIntravitrealinjection_Treatment_Drug[]

isNonCompliant() public method

returns null for invalid requests
public isNonCompliant ( string $side = 'both' ) : boolean | null
$side string
return boolean | null

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
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

public sidedFields ( )

tableName() public method

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

updateDecisionTreeResponses() public method

public updateDecisionTreeResponses ( $side, $update_responses )

validateDateNotInFuture() public method

validate a date is not in the future (assumes that date attributes already converted to mysql date format).
public validateDateNotInFuture ( $attribute )
$attribute - the element attribute that must be an earlier date

Property Details

$_available_treatments protected property

only want to query list of available treatments once
protected $_available_treatments

$service public property

public $service