PHP 클래스 OEModule\OphCiExamination\models\Element_OphCiExamination_InjectionManagementComplex

The followings are the available columns in table:
상속: extends SplitEventTypeElement
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_injection_installed

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
getDiagnosisString ( string $side ) : string get the diagnosis string for the give side.
getLetterStringForSide ( $side ) : string gets a string of the information contained in this element for the given side.
getNoTreatmentReasonName ( string $side ) : string get the reason for no treatment as a string for given side.

메소드 상세

answerValidation() 공개 메소드

validate that all the questions for the set diagnosis have been answered.
public answerValidation ( unknown $attribute, array $params )
$attribute unknown
$params array

attributeLabels() 공개 메소드

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

canCopy() 공개 메소드

public canCopy ( )

delete() 공개 메소드

(non-PHPdoc)
또한 보기: CActiveRecord::delete()
public delete ( )

getAllDisorders() 공개 메소드

public getAllDisorders ( )

getDiagnosisString() 보호된 메소드

get the diagnosis string for the give side.
protected getDiagnosisString ( string $side ) : string
$side string - left or right
리턴 string string

getInjectionQuestionsForDisorderId() 공개 메소드

return the questions for a given disorder id.
public getInjectionQuestionsForDisorderId ( integer $disorder_id, array $answered_question_ids = null )
$disorder_id integer
$answered_question_ids array

getInjectionQuestionsForSide() 공개 메소드

get the relevant questions for the given side.
public getInjectionQuestionsForSide ( string $side ) : OphCiExamination_InjectionManagementComplex_Question[]
$side string - 'left' or 'right'
리턴 OphCiExamination_InjectionManagementComplex_Question[]

getInjectionSide() 공개 메소드

return the side (Eye::BOTH, \Eye::LEFT or \Eye::RIGHT) that should be injected if one should be. null otherwise.
public getInjectionSide ( ) : integer | null
리턴 integer | null

getInjectionTreatments() 공개 메소드

get the treatments list to select from for this element on the given side.
public getInjectionTreatments ( $side ) : OphTrIntravitrealinjection_Treatment_Drug[] | null
$side
리턴 OphTrIntravitrealinjection_Treatment_Drug[] | null

getLeftDiagnosisString() 공개 메소드

get the diagnosis string for the left.
public getLeftDiagnosisString ( ) : string
리턴 string

getLeftNoTreatmentReasonName() 공개 메소드

get the no treatment reason name for the left side.

getLetterStringForSide() 보호된 메소드

gets a string of the information contained in this element for the given side.
protected getLetterStringForSide ( $side ) : string
$side
리턴 string

getLetter_string() 공개 메소드

get the string of this element for use in correspondence.
public getLetter_string ( ) : string
리턴 string

getLevel1Disorders() 공개 메소드

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).
public getLevel1Disorders ( ) : Disorder[]
리턴 Disorder[]

getLevel2Disorders() 공개 메소드

retrieve a list of disorders that are defined as level 2 disorders for the given disorder.
public getLevel2Disorders ( $disorder ) : Disorder[]
리턴 Disorder[]

getNoTreatmentReasonName() 보호된 메소드

get the reason for no treatment as a string for given side.
protected getNoTreatmentReasonName ( string $side ) : string
$side string
리턴 string

getNoTreatmentReasons() 공개 메소드

get the list of no treatment reasons that should be used for this element.
public getNoTreatmentReasons ( ) : OphCiExamination_InjectionManagementComplex_NoTreatmentReason[]
리턴 OphCiExamination_InjectionManagementComplex_NoTreatmentReason[]

getQuestionAnswer() 공개 메소드

get the answer that has been set for the $side and $question_id.
public getQuestionAnswer ( unknown $side, unknown $question_id )
$side unknown
$question_id unknown

getRightDiagnosisString() 공개 메소드

get the diagnosis string for the right.
public getRightDiagnosisString ( ) : string
리턴 string

getRightNoTreatmentReasonName() 공개 메소드

get the no treatment reason name for the right side.

getRiskValues() 공개 메소드

get the risk ids currently in use by the element.
public getRiskValues ( )

getRisksForSide() 공개 메소드

get the risk options for a given side.
public getRisksForSide ( $side ) : array
$side
리턴 array

getleft_treatment() 공개 메소드

defines relation to external model, hence not using the yii magic relations definition
public getleft_treatment ( ) : OphTrIntravitrealinjection_Treatment_Drug | null
리턴 OphTrIntravitrealinjection_Treatment_Drug | null

getright_treatment() 공개 메소드

defines relation to external model, hence not using the yii magic relations definition
public getright_treatment ( ) : OphTrIntravitrealinjection_Treatment_Drug | null
리턴 OphTrIntravitrealinjection_Treatment_Drug | null

ifInjectionInstalled() 공개 메소드

pass through validation function that will run the 'check' attribute method if the injection module is installed.
public ifInjectionInstalled ( $attribute, $params )
$attribute
$params

injectionInstalled() 공개 메소드

returns boolean to indicate if the injection module is installed (and therefore whether we can pick treatments from that module).
public injectionInstalled ( ) : boolean
리턴 boolean

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
리턴 the static model class

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

requiredIfNoTreatment() 공개 메소드

checks value defined when no treatment is set on the element.
public requiredIfNoTreatment ( $attribute, $params )
$attribute
$params

requiredIfNoTreatmentOther() 공개 메소드

checks $attribute defined when the no treatment reason is an 'other' type.
public requiredIfNoTreatmentOther ( $attribute, $params )
$attribute
$params

requiredIfSecondary() 공개 메소드

check a level 2 diagnosis is provided for level 1 diagnoses that require it (need to check the side as well though).
public requiredIfSecondary ( $attribute, $params )

requiredIfTreatment() 공개 메소드

simple wrapper around requiredIfSide that checks the no treatment status flag before checking the side required attribute.
public requiredIfTreatment ( string $attribute, array $params )
$attribute string
$params array

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

sidedFields() 공개 메소드

public sidedFields ( )

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

updateQuestionAnswers() 공개 메소드

store the answers for the questions asked for the $side diagnosis.
public updateQuestionAnswers ( string $side, array $update_answers )
$side string
$update_answers array - associate array of question id to answer value

updateRisks() 공개 메소드

update the risks for the given side.
public updateRisks ( string $side, int[] $risk_ids )
$side string
$risk_ids int[] - array of risk ids to assign to the element

프로퍼티 상세

$_injection_installed 보호되어 있는 프로퍼티

protected $_injection_installed