PHP Class Medication

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

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

Method Details

afterDelete() public méthode

public afterDelete ( )

afterSave() public méthode

public afterSave ( )

afterValidate() public méthode

public afterValidate ( )

attributeLabels() public méthode

public attributeLabels ( )

beforeSave() public méthode

public beforeSave ( )

createFromPrescriptionItem() public méthode

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

getDrugLabel() public méthode

Wrapper for the drug name for display.
public getDrugLabel ( ) : string
Résultat string

isCurrentMedication() public méthode

Is the medication current.
public isCurrentMedication ( ) : boolean
Résultat boolean

isPreviousMedication() public méthode

Is the preview current.
public isPreviousMedication ( ) : boolean
Résultat boolean

matches() public méthode

public matches ( $item ) : boolean
$item
Résultat boolean

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

removePatientAdherence() protected méthode

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

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

validateOptionId() public méthode

public validateOptionId ( )