PHP Class Element_OphDrPrescription_Details

Inheritance: extends BaseEventTypeElement
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode Description
attributeLabels ( ) : array
commonDrugs ( ) : Drug[] Get the common drugs for session firm.
commonDrugsBySiteAndSpec ( $site_id, $subspecialty_id ) : SiteSubspecialtyDrug[] Get the drug list for a specified site and subspecialty.
drugSets ( ) : DrugSet[] Get the drug sets for the current firm.
drugSetsAll ( ) : mixed Get all drug sets for admin page.
drugTypes ( ) : CHtml::listData Gets listdata for the drugtypes.
getContainer_form_view ( )
getContainer_print_view ( )
getInfotext ( ) : string Returns string status to indicate if the prescription is draft or not.
getLetterText ( ) : string Generates string for inclusion in letters that describes the prescription.
getPrint_view ( )
isEditable ( ) : boolean Prescription is always editable.
model ( $className = __CLASS__ ) : Element_OphDrPrescription_Details Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
updateItems ( array() $items ) Create and save appropriate Element_OphDrPrescription_Item and Element_OphDrPrescription_Item_Taper models for this prescription based on the $items structure passed in.

Méthodes protégées

Méthode Description
afterValidate ( ) Validate prescription items.

Method Details

afterValidate() protected méthode

Validate prescription items.
protected afterValidate ( )

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

commonDrugs() public méthode

Get the common drugs for session firm.
public commonDrugs ( ) : Drug[]
Résultat Drug[]

commonDrugsBySiteAndSpec() public méthode

Get the drug list for a specified site and subspecialty.
public commonDrugsBySiteAndSpec ( $site_id, $subspecialty_id ) : SiteSubspecialtyDrug[]
$site_id
$subspecialty_id
Résultat SiteSubspecialtyDrug[]

drugSets() public méthode

Get the drug sets for the current firm.
public drugSets ( ) : DrugSet[]
Résultat DrugSet[]

drugSetsAll() public méthode

Get all drug sets for admin page.
public drugSetsAll ( ) : mixed
Résultat mixed

drugTypes() public méthode

Gets listdata for the drugtypes.
public drugTypes ( ) : CHtml::listData
Résultat CHtml::listData

getContainer_form_view() public méthode

getContainer_print_view() public méthode

getInfotext() public méthode

Returns string status to indicate if the prescription is draft or not.
public getInfotext ( ) : string
Résultat string

getLetterText() public méthode

Generates string for inclusion in letters that describes the prescription.
public getLetterText ( ) : string
Résultat string

getPrint_view() public méthode

public getPrint_view ( )

isEditable() public méthode

Prescription is always editable.
public isEditable ( ) : boolean
Résultat boolean

model() public static méthode

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Element_OphDrPrescription_Details
Résultat Element_OphDrPrescription_Details the static model class

relations() public méthode

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

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

updateItems() public méthode

This instance must have been saved already.
public updateItems ( array() $items )
$items array()