PHP Класс OEModule\OphCoCvi\controllers\DefaultController

Наследование: extends BaseEventTypeController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$cvi_limit
$demographicsData
$event_prompt

Защищенные свойства (Protected)

Свойство Тип Описание
$FILTER_LIST_KEY label used in session storage for the list filter values
$action_types
$cvi_manager

Открытые методы

Метод Описание
actionConsentSignature ( $id ) Generate a version of the certificate for signing by the patient/representative for consent.
actionCreate ( ) Create Form with check for the cvi existing events count
actionDisplayConsentSignature ( $id )
actionIssue ( $id )
actionLabelPDFprint ( $id )
actionList ( ) Generate a list of all the CVI events for clerical use.
actionPDFPrint ( $id )
actionRemoveConsentSignature ( $id )
actionRetrieveConsentSignature ( $id )
actionSignCVI ( $id )
canIssue ( ) : boolean Determine if the current event can be issued
checkClericalEditAccess ( ) : boolean This is a granular permission check, and should be used in conjunection with checkEditAcess
checkClinicalEditAccess ( ) : boolean This is a granular permission check, and should be used in conjunection with checkEditAcess
checkCreateAccess ( ) : boolean
checkEditAccess ( ) : boolean
checkLabelPrintAccess ( )
checkListAccess ( ) : boolean Currently uses the OprnEditCvi operation to check for access
checkPrintAccess ( ) : boolean
checkRequestDeleteAccess ( ) : boolean Ensure we invoke the CVI RBAC rules around requesting deletion.
getDisorderSections ( ) : mixed Simple wrapper to get the disorder sections that should be rendered in the event form.
getManager ( ) : OphCoCvi_Manager
getOptionalElements ( ) : null Override as the optional elements should not be rendered until completed through the appropriate access levels.
getPatientFactors ( ) : mixed Simple abstraction wrapper to get the patient factors that should be rendered in the event form.
initActionConsentSignature ( )
initActionDisplayConsentSignature ( )
initActionIssue ( )
initActionLabelPDFprint ( )
initActionPDFPrint ( ) Ensure the event is setup on the controller
initActionRemoveConsentSignature ( )
initActionRetrieveConsentSignature ( )
initActionSignCVI ( )
initActionView ( ) Sets the title for the event display.
isListFiltered ( ) : boolean
isRequiredInUI ( BaseEventTypeElement $element ) : boolean Override because we don't want elements removed from the UI if we have rendered them Optionality is in place to support granular permission structure.
saveComplexAttributes_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $data, $index )

Защищенные методы

Метод Описание
checkUserSigned ( ) : boolean
getElementsForElementType ( ElementType $element_type, $data ) : array Override to support the fact that users might not have permission to edit specific event elements.
getEventElements ( ) : array Sister method to the getElementsForEventType method, this loads up event elements for rendering (whether viewing or editing).
getListFilter ( ) : array
saveComplexAttributes_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $data, $index )
setComplexAttributes_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $data, $index )
setComplexAttributes_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $data, $index ) <<< * This just sets assignments for validation and the re-use in forms if a form submit does not validate
setElementDefaultOptions_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $action )
setElementDefaultOptions_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $action )
setElementDefaultOptions_Element_OphCoCvi_Demographics ( Element_OphCoCvi_Demographics $element ) Sets the default values for the element from the patient
setElementDefaultOptions_Element_OphCoCvi_EventInfo ( Element_OphCoCvi_EventInfo $element, $action )
setValidationScenarioForElement ( $element ) We set the validation scenario for the models based on whether the user is saving as draft or performing a full save
updateEventInfo ( ) Use the manager status for the event info text.

Приватные методы

Метод Описание
getElementsForClerical ( ) : Element_OphCoCvi_ClericalInfo | boolean | null Because form elements won't be submitted when editing without this access, we need to return the current event element if it exists
getElementsForClinical ( ) : Element_OphCoCvi_ClinicalInfo[] | boolean | null Because form elements won't be submitted when editing without this access, we need to return the current event element if it exists
getElementsForEventInfo ( ) : Element_OphCoCvi_EventInfo[]

Описание методов

actionConsentSignature() публичный Метод

Generate a version of the certificate for signing by the patient/representative for consent.
public actionConsentSignature ( $id )
$id

actionCreate() публичный Метод

Create Form with check for the cvi existing events count
public actionCreate ( )

actionDisplayConsentSignature() публичный Метод

public actionDisplayConsentSignature ( $id )
$id

actionIssue() публичный Метод

public actionIssue ( $id )
$id

actionLabelPDFprint() публичный Метод

public actionLabelPDFprint ( $id )
$id

actionList() публичный Метод

Generate a list of all the CVI events for clerical use.
public actionList ( )

actionPDFPrint() публичный Метод

public actionPDFPrint ( $id )
$id

actionRemoveConsentSignature() публичный Метод

public actionRemoveConsentSignature ( $id )
$id

actionRetrieveConsentSignature() публичный Метод

public actionRetrieveConsentSignature ( $id )
$id

actionSignCVI() публичный Метод

public actionSignCVI ( $id )
$id

canIssue() публичный Метод

Determine if the current event can be issued
public canIssue ( ) : boolean
Результат boolean

checkClericalEditAccess() публичный Метод

This is a granular permission check, and should be used in conjunection with checkEditAcess
public checkClericalEditAccess ( ) : boolean
Результат boolean

checkClinicalEditAccess() публичный Метод

This is a granular permission check, and should be used in conjunection with checkEditAcess
public checkClinicalEditAccess ( ) : boolean
Результат boolean

checkCreateAccess() публичный Метод

public checkCreateAccess ( ) : boolean
Результат boolean

checkEditAccess() публичный Метод

public checkEditAccess ( ) : boolean
Результат boolean

checkLabelPrintAccess() публичный Метод

checkListAccess() публичный Метод

Currently uses the OprnEditCvi operation to check for access
public checkListAccess ( ) : boolean
Результат boolean

checkPrintAccess() публичный Метод

public checkPrintAccess ( ) : boolean
Результат boolean

checkRequestDeleteAccess() публичный Метод

Ensure we invoke the CVI RBAC rules around requesting deletion.
public checkRequestDeleteAccess ( ) : boolean
Результат boolean

checkUserSigned() защищенный Метод

protected checkUserSigned ( ) : boolean
Результат boolean

getDisorderSections() публичный Метод

Simple wrapper to get the disorder sections that should be rendered in the event form.
public getDisorderSections ( ) : mixed
Результат mixed

getElementsForElementType() защищенный Метод

Override to support the fact that users might not have permission to edit specific event elements.
protected getElementsForElementType ( ElementType $element_type, $data ) : array
$element_type ElementType
$data
Результат array

getEventElements() защищенный Метод

Because of the permissioning behaviours, need to be able to filter out clinical/clerical elements as appropriate.
protected getEventElements ( ) : array
Результат array

getListFilter() защищенный Метод

protected getListFilter ( ) : array
Результат array

getManager() публичный Метод

public getManager ( ) : OphCoCvi_Manager
Результат OEModule\OphCoCvi\components\OphCoCvi_Manager

getOptionalElements() публичный Метод

Override as the optional elements should not be rendered until completed through the appropriate access levels.
public getOptionalElements ( ) : null
Результат null

getPatientFactors() публичный Метод

Simple abstraction wrapper to get the patient factors that should be rendered in the event form.
public getPatientFactors ( ) : mixed
Результат mixed

initActionConsentSignature() публичный Метод

initActionDisplayConsentSignature() публичный Метод

initActionIssue() публичный Метод

public initActionIssue ( )

initActionLabelPDFprint() публичный Метод

initActionPDFPrint() публичный Метод

Ensure the event is setup on the controller
public initActionPDFPrint ( )

initActionRemoveConsentSignature() публичный Метод

initActionRetrieveConsentSignature() публичный Метод

initActionSignCVI() публичный Метод

public initActionSignCVI ( )

initActionView() публичный Метод

Sets the title for the event display.
public initActionView ( )

isListFiltered() публичный Метод

public isListFiltered ( ) : boolean
Результат boolean

isRequiredInUI() публичный Метод

Override because we don't want elements removed from the UI if we have rendered them Optionality is in place to support granular permission structure.
public isRequiredInUI ( BaseEventTypeElement $element ) : boolean
$element BaseEventTypeElement
Результат boolean

saveComplexAttributes_Element_OphCoCvi_ClericalInfo() публичный Метод

public saveComplexAttributes_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $data, $index )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClericalInfo
$data
$index

saveComplexAttributes_Element_OphCoCvi_ClinicalInfo() защищенный Метод

protected saveComplexAttributes_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $data, $index )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClinicalInfo
$data
$index

setComplexAttributes_Element_OphCoCvi_ClericalInfo() защищенный Метод

protected setComplexAttributes_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $data, $index )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClericalInfo
$data
$index

setComplexAttributes_Element_OphCoCvi_ClinicalInfo() защищенный Метод

<<< * This just sets assignments for validation and the re-use in forms if a form submit does not validate
protected setComplexAttributes_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $data, $index )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClinicalInfo
$data
$index

setElementDefaultOptions_Element_OphCoCvi_ClericalInfo() защищенный Метод

protected setElementDefaultOptions_Element_OphCoCvi_ClericalInfo ( Element_OphCoCvi_ClericalInfo $element, $action )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClericalInfo
$action

setElementDefaultOptions_Element_OphCoCvi_ClinicalInfo() защищенный Метод

protected setElementDefaultOptions_Element_OphCoCvi_ClinicalInfo ( Element_OphCoCvi_ClinicalInfo $element, $action )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_ClinicalInfo
$action

setElementDefaultOptions_Element_OphCoCvi_Demographics() защищенный Метод

Sets the default values for the element from the patient
protected setElementDefaultOptions_Element_OphCoCvi_Demographics ( Element_OphCoCvi_Demographics $element )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_Demographics

setElementDefaultOptions_Element_OphCoCvi_EventInfo() защищенный Метод

protected setElementDefaultOptions_Element_OphCoCvi_EventInfo ( Element_OphCoCvi_EventInfo $element, $action )
$element OEModule\OphCoCvi\models\Element_OphCoCvi_EventInfo

setValidationScenarioForElement() защищенный Метод

We set the validation scenario for the models based on whether the user is saving as draft or performing a full save
protected setValidationScenarioForElement ( $element )
$element

updateEventInfo() защищенный Метод

Use the manager status for the event info text.
protected updateEventInfo ( )

Описание свойств

$FILTER_LIST_KEY защищенное статическое свойство

label used in session storage for the list filter values
protected static $FILTER_LIST_KEY

$action_types защищенное статическое свойство

protected static $action_types

$cvi_limit публичное свойство

public $cvi_limit

$cvi_manager защищенное свойство

protected $cvi_manager

$demographicsData публичное свойство

public $demographicsData

$event_prompt публичное свойство

public $event_prompt