Method | 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. |
Method | Description | |
---|---|---|
afterValidate ( ) | Validate prescription items. |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public commonDrugs ( ) : Drug[] | ||
return | Drug[] |
public commonDrugsBySiteAndSpec ( $site_id, $subspecialty_id ) : SiteSubspecialtyDrug[] | ||
$site_id | ||
$subspecialty_id | ||
return | SiteSubspecialtyDrug[] |
public drugSets ( ) : DrugSet[] | ||
return | DrugSet[] |
public drugSetsAll ( ) : mixed | ||
return | mixed |
public drugTypes ( ) : CHtml::listData | ||
return | CHtml::listData |
public getInfotext ( ) : string | ||
return | string |
public getLetterText ( ) : string | ||
return | string |
public isEditable ( ) : boolean | ||
return | boolean |
public static model ( $className = __CLASS__ ) : Element_OphDrPrescription_Details | ||
return | Element_OphDrPrescription_Details | the static model class |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public updateItems ( array() $items ) | ||
$items | array() |