Метод |
Описание |
|
answerValidation ( unknown $attribute, array $params ) |
validate that all the questions for the set diagnosis have been answered. |
|
attributeLabels ( ) : array |
|
|
canCopy ( ) |
|
|
delete ( ) |
extends standard delete method to remove any risk assignments made to it. |
|
getAllDisorders ( ) |
|
|
getInjectionQuestionsForDisorderId ( integer $disorder_id, array $answered_question_ids = null ) |
return the questions for a given disorder id. |
|
getInjectionQuestionsForSide ( string $side ) : OphCiExamination_InjectionManagementComplex_Question[] |
get the relevant questions for the given side. |
|
getInjectionSide ( ) : integer | null |
return the side (Eye::BOTH, \Eye::LEFT or \Eye::RIGHT) that should be injected if one should be. null otherwise. |
|
getInjectionTreatments ( $side ) : OphTrIntravitrealinjection_Treatment_Drug[] | null |
get the treatments list to select from for this element on the given side. |
|
getLeftDiagnosisString ( ) : string |
get the diagnosis string for the left. |
|
getLeftNoTreatmentReasonName ( ) : string |
get the no treatment reason name for the left side. |
|
getLetter_string ( ) : string |
get the string of this element for use in correspondence. |
|
getLevel1Disorders ( ) : Disorder[] |
Get a list of level 1 disorders for this element (appends any level 1 disorder that has been selected for this
element but aren't part of the default list). |
|
getLevel2Disorders ( $disorder ) : Disorder[] |
retrieve a list of disorders that are defined as level 2 disorders for the given disorder. |
|
getNoTreatmentReasons ( ) : OphCiExamination_InjectionManagementComplex_NoTreatmentReason[] |
get the list of no treatment reasons that should be used for this element. |
|
getQuestionAnswer ( unknown $side, unknown $question_id ) |
get the answer that has been set for the $side and $question_id. |
|
getRightDiagnosisString ( ) : string |
get the diagnosis string for the right. |
|
getRightNoTreatmentReasonName ( ) : string |
get the no treatment reason name for the right side. |
|
getRiskValues ( ) |
get the risk ids currently in use by the element. |
|
getRisksForSide ( $side ) : array |
get the risk options for a given side. |
|
getleft_treatment ( ) : OphTrIntravitrealinjection_Treatment_Drug | null |
return the treatment drug for the left side if defined. |
|
getright_treatment ( ) : OphTrIntravitrealinjection_Treatment_Drug | null |
return the treatment drug for the right side if defined. |
|
ifInjectionInstalled ( $attribute, $params ) |
pass through validation function that will run the 'check' attribute method if the injection module is installed. |
|
injectionInstalled ( ) : boolean |
returns boolean to indicate if the injection module is installed (and therefore whether we can pick treatments
from that module). |
|
model ( $className = __CLASS__ ) : the |
Returns the static model of the specified AR class. |
|
relations ( ) : array |
|
|
requiredIfNoTreatment ( $attribute, $params ) |
checks value defined when no treatment is set on the element. |
|
requiredIfNoTreatmentOther ( $attribute, $params ) |
checks $attribute defined when the no treatment reason is an 'other' type. |
|
requiredIfSecondary ( $attribute, $params ) |
check a level 2 diagnosis is provided for level 1 diagnoses that require it (need to check the side as well though). |
|
requiredIfTreatment ( string $attribute, array $params ) |
simple wrapper around requiredIfSide that checks the no treatment status flag before checking the side required
attribute. |
|
rules ( ) : array |
|
|
search ( ) : CActiveDataProvider |
Retrieves a list of models based on the current search/filter conditions. |
|
sidedFields ( ) |
|
|
tableName ( ) : string |
|
|
updateQuestionAnswers ( string $side, array $update_answers ) |
store the answers for the questions asked for the $side diagnosis. |
|
updateRisks ( string $side, int[] $risk_ids ) |
update the risks for the given side. |
|