PHP Class OEModule\OphCoCvi\components\OphCoCvi_API

Inheritance: extends BaseAPI
Show file Open project: openeyes/openeyes

Public Properties

Property Type Description
$createOprn
$createOprnArgs

Protected Properties

Property Type Description
$cvi_manager OphCoCvi_Manager
$yii

Public Methods

Method Description
__construct ( CApplication $yii = null )
canUpdate ( $event_id ) : boolean
getEvents ( Patient $patient ) : Event[] Get all events regardless of episode.
getManager ( ) : OphCoCvi_Manager
getUniqueCodeForCviEvent ( $event )
hasCVI ( Patient $patient ) : boolean Checking if the patient has CVI
isVaBelowThreshold ( integer | array $va_base_value ) : boolean Checks whether the VA value(s) is below the threshold
patientSummaryRender ( Patient $patient ) : string Render a patient summary widget to display CVI status based on the eCVI event and the core static model.
renderAlertForVA ( Patient $patient, $element, $show_create = false ) : mixed

Protected Methods

Method Description
renderPartial ( $view, array $parameters = [] ) : mixed Convenience wrapper to allow template rendering.

Method Details

__construct() public method

public __construct ( CApplication $yii = null )
$yii CApplication

canUpdate() public method

public canUpdate ( $event_id ) : boolean
$event_id
return boolean

getEvents() public method

Get all events regardless of episode.
public getEvents ( Patient $patient ) : Event[]
$patient Patient
return Event[]

getManager() public method

public getManager ( ) : OphCoCvi_Manager
return OphCoCvi_Manager

getUniqueCodeForCviEvent() public method

public getUniqueCodeForCviEvent ( $event )
$event

hasCVI() public method

Checking if the patient has CVI
public hasCVI ( Patient $patient ) : boolean
$patient Patient
return boolean

isVaBelowThreshold() public method

Checks whether the VA value(s) is below the threshold
public isVaBelowThreshold ( integer | array $va_base_value ) : boolean
$va_base_value integer | array
return boolean true if value below the threshold

patientSummaryRender() public method

Render a patient summary widget to display CVI status based on the eCVI event and the core static model.
public patientSummaryRender ( Patient $patient ) : string
$patient Patient
return string

renderAlertForVA() public method

public renderAlertForVA ( Patient $patient, $element, $show_create = false ) : mixed
$patient Patient
$element
$show_create - flag to indicate whether the create button should be shown
return mixed

renderPartial() protected method

Convenience wrapper to allow template rendering.
protected renderPartial ( $view, array $parameters = [] ) : mixed
$view
$parameters array
return mixed

Property Details

$createOprn public property

public $createOprn

$createOprnArgs public property

public $createOprnArgs

$cvi_manager protected property

protected OphCoCvi_Manager,OEModule\OphCoCvi\components $cvi_manager
return OphCoCvi_Manager

$yii protected property

protected $yii