PHP Class OEModule\OphCoCvi\components\OphCoCvi_API

Inheritance: extends BaseAPI
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$createOprn
$createOprnArgs

Protected Properties

Свойство Type Description
$cvi_manager OphCoCvi_Manager
$yii

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

canUpdate() public méthode

public canUpdate ( $event_id ) : boolean
$event_id
Résultat boolean

getEvents() public méthode

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

getManager() public méthode

public getManager ( ) : OphCoCvi_Manager
Résultat OphCoCvi_Manager

getUniqueCodeForCviEvent() public méthode

public getUniqueCodeForCviEvent ( $event )
$event

hasCVI() public méthode

Checking if the patient has CVI
public hasCVI ( Patient $patient ) : boolean
$patient Patient
Résultat boolean

isVaBelowThreshold() public méthode

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

patientSummaryRender() public méthode

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
Résultat string

renderAlertForVA() public méthode

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

renderPartial() protected méthode

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

Property Details

$createOprn public_oe property

public $createOprn

$createOprnArgs public_oe property

public $createOprnArgs

$cvi_manager protected_oe property

protected OphCoCvi_Manager,OEModule\OphCoCvi\components $cvi_manager
Résultat OphCoCvi_Manager

$yii protected_oe property

protected $yii