PHP 클래스 Element_OphDrPrescription_Details

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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
afterValidate ( ) Validate prescription items.

메소드 상세

afterValidate() 보호된 메소드

Validate prescription items.
protected afterValidate ( )

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)

commonDrugs() 공개 메소드

Get the common drugs for session firm.
public commonDrugs ( ) : Drug[]
리턴 Drug[]

commonDrugsBySiteAndSpec() 공개 메소드

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

drugSets() 공개 메소드

Get the drug sets for the current firm.
public drugSets ( ) : DrugSet[]
리턴 DrugSet[]

drugSetsAll() 공개 메소드

Get all drug sets for admin page.
public drugSetsAll ( ) : mixed
리턴 mixed

drugTypes() 공개 메소드

Gets listdata for the drugtypes.
public drugTypes ( ) : CHtml::listData
리턴 CHtml::listData

getContainer_form_view() 공개 메소드

getContainer_print_view() 공개 메소드

getInfotext() 공개 메소드

Returns string status to indicate if the prescription is draft or not.
public getInfotext ( ) : string
리턴 string

getLetterText() 공개 메소드

Generates string for inclusion in letters that describes the prescription.
public getLetterText ( ) : string
리턴 string

getPrint_view() 공개 메소드

public getPrint_view ( )

isEditable() 공개 메소드

Prescription is always editable.
public isEditable ( ) : boolean
리턴 boolean

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Element_OphDrPrescription_Details
리턴 Element_OphDrPrescription_Details the static model class

relations() 공개 메소드

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

rules() 공개 메소드

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

tableName() 공개 메소드

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

updateItems() 공개 메소드

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