PHP Class Medication

Datei anzeigen Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
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 ( )

Protected Methods

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

Method Details

afterDelete() public method

public afterDelete ( )

afterSave() public method

public afterSave ( )

afterValidate() public method

public afterValidate ( )

attributeLabels() public method

public attributeLabels ( )

beforeSave() public method

public beforeSave ( )

createFromPrescriptionItem() public method

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

getDrugLabel() public method

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

isCurrentMedication() public method

Is the medication current.
public isCurrentMedication ( ) : boolean
return boolean

isPreviousMedication() public method

Is the preview current.
public isPreviousMedication ( ) : boolean
return boolean

matches() public method

public matches ( $item ) : boolean
$item
return boolean

relations() public method

public relations ( ) : array
return array relational rules.

removePatientAdherence() protected method

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

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

tableName() public method

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

validateOptionId() public method

public validateOptionId ( )