PHP Class OEModule\OphCoCvi\controllers\DefaultController

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

Méthodes publiques

Свойство Type Description
$cvi_limit
$demographicsData
$event_prompt

Protected Properties

Свойство Type Description
$FILTER_LIST_KEY label used in session storage for the list filter values
$action_types
$cvi_manager

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
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[]

Method Details

actionConsentSignature() public méthode

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

actionCreate() public méthode

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

actionDisplayConsentSignature() public méthode

public actionDisplayConsentSignature ( $id )
$id

actionIssue() public méthode

public actionIssue ( $id )
$id

actionLabelPDFprint() public méthode

public actionLabelPDFprint ( $id )
$id

actionList() public méthode

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

actionPDFPrint() public méthode

public actionPDFPrint ( $id )
$id

actionRemoveConsentSignature() public méthode

public actionRemoveConsentSignature ( $id )
$id

actionRetrieveConsentSignature() public méthode

public actionRetrieveConsentSignature ( $id )
$id

actionSignCVI() public méthode

public actionSignCVI ( $id )
$id

canIssue() public méthode

Determine if the current event can be issued
public canIssue ( ) : boolean
Résultat boolean

checkClericalEditAccess() public méthode

This is a granular permission check, and should be used in conjunection with checkEditAcess
public checkClericalEditAccess ( ) : boolean
Résultat boolean

checkClinicalEditAccess() public méthode

This is a granular permission check, and should be used in conjunection with checkEditAcess
public checkClinicalEditAccess ( ) : boolean
Résultat boolean

checkCreateAccess() public méthode

public checkCreateAccess ( ) : boolean
Résultat boolean

checkEditAccess() public méthode

public checkEditAccess ( ) : boolean
Résultat boolean

checkLabelPrintAccess() public méthode

checkListAccess() public méthode

Currently uses the OprnEditCvi operation to check for access
public checkListAccess ( ) : boolean
Résultat boolean

checkPrintAccess() public méthode

public checkPrintAccess ( ) : boolean
Résultat boolean

checkRequestDeleteAccess() public méthode

Ensure we invoke the CVI RBAC rules around requesting deletion.
public checkRequestDeleteAccess ( ) : boolean
Résultat boolean

checkUserSigned() protected méthode

protected checkUserSigned ( ) : boolean
Résultat boolean

getDisorderSections() public méthode

Simple wrapper to get the disorder sections that should be rendered in the event form.
public getDisorderSections ( ) : mixed
Résultat mixed

getElementsForElementType() protected méthode

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

getEventElements() protected méthode

Because of the permissioning behaviours, need to be able to filter out clinical/clerical elements as appropriate.
protected getEventElements ( ) : array
Résultat array

getListFilter() protected méthode

protected getListFilter ( ) : array
Résultat array

getManager() public méthode

public getManager ( ) : OphCoCvi_Manager
Résultat OEModule\OphCoCvi\components\OphCoCvi_Manager

getOptionalElements() public méthode

Override as the optional elements should not be rendered until completed through the appropriate access levels.
public getOptionalElements ( ) : null
Résultat null

getPatientFactors() public méthode

Simple abstraction wrapper to get the patient factors that should be rendered in the event form.
public getPatientFactors ( ) : mixed
Résultat mixed

initActionConsentSignature() public méthode

initActionDisplayConsentSignature() public méthode

initActionIssue() public méthode

public initActionIssue ( )

initActionLabelPDFprint() public méthode

initActionPDFPrint() public méthode

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

initActionRemoveConsentSignature() public méthode

initActionRetrieveConsentSignature() public méthode

initActionSignCVI() public méthode

public initActionSignCVI ( )

initActionView() public méthode

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

isListFiltered() public méthode

public isListFiltered ( ) : boolean
Résultat boolean

isRequiredInUI() public méthode

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

saveComplexAttributes_Element_OphCoCvi_ClericalInfo() public méthode

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

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

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

setComplexAttributes_Element_OphCoCvi_ClinicalInfo() protected méthode

<<< * 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 méthode

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

setElementDefaultOptions_Element_OphCoCvi_ClinicalInfo() protected méthode

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

setElementDefaultOptions_Element_OphCoCvi_Demographics() protected méthode

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

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

setValidationScenarioForElement() protected méthode

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() protected méthode

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

Property Details

$FILTER_LIST_KEY protected_oe static_oe property

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

$action_types protected_oe static_oe property

protected static $action_types

$cvi_limit public_oe property

public $cvi_limit

$cvi_manager protected_oe property

protected $cvi_manager

$demographicsData public_oe property

public $demographicsData

$event_prompt public_oe property

public $event_prompt