PHP 클래스 OEModule\OphCoCvi\controllers\DefaultController

상속: extends BaseEventTypeController
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$cvi_limit
$demographicsData
$event_prompt

보호된 프로퍼티들

프로퍼티 타입 설명
$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

checkClinicalEditAccess() 공개 메소드

This is a granular permission check, and should be used in conjunection with checkEditAcess

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.

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