PHP 클래스 Medication

파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
afterDelete ( )
afterSave ( )
afterValidate ( )
attributeLabels ( )
beforeSave ( )
createFromPrescriptionItem ( $item ) Takes a prescription item and sets the appropriate medication values from it.
getDrugLabel ( ) : string Wrapper for the drug name for display.
isCurrentMedication ( ) : boolean Is the medication current.
isPreviousMedication ( ) : boolean Is the preview current.
matches ( $item ) : boolean
relations ( ) : array
rules ( ) : array
tableName ( ) : string
validateOptionId ( )

보호된 메소드들

메소드 설명
removePatientAdherence ( ) Will remove the patient adherence element if it is no longer relevant.

메소드 상세

afterDelete() 공개 메소드

public afterDelete ( )

afterSave() 공개 메소드

public afterSave ( )

afterValidate() 공개 메소드

public afterValidate ( )

attributeLabels() 공개 메소드

public attributeLabels ( )

beforeSave() 공개 메소드

public beforeSave ( )

createFromPrescriptionItem() 공개 메소드

Takes a prescription item and sets the appropriate medication values from it.
public createFromPrescriptionItem ( $item )
$item

getDrugLabel() 공개 메소드

Wrapper for the drug name for display.
public getDrugLabel ( ) : string
리턴 string

isCurrentMedication() 공개 메소드

Is the medication current.
public isCurrentMedication ( ) : boolean
리턴 boolean

isPreviousMedication() 공개 메소드

Is the preview current.
public isPreviousMedication ( ) : boolean
리턴 boolean

matches() 공개 메소드

public matches ( $item ) : boolean
$item
리턴 boolean

relations() 공개 메소드

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

removePatientAdherence() 보호된 메소드

Will remove the patient adherence element if it is no longer relevant.
protected removePatientAdherence ( )

rules() 공개 메소드

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

tableName() 공개 메소드

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

validateOptionId() 공개 메소드

public validateOptionId ( )