PHP Class PatientController

Inheritance: extends Controller
Datei anzeigen Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$current_episode
$editable
$editing
$episode
$episodes
$event
$event_actions
$event_tabs
$event_type
$event_type_id
$firm
$layout
$patient
$renderPatientPanel
$title

Public Methods

Method Description
accessRules ( )
actionAddAllergy ( ) Add patient/allergy assignment.
actionAddContact ( )
actionAddFamilyHistory ( )
actionAddNewEpisode ( )
actionAddPreviousOperation ( )
actionAddRisk ( ) Add patient/allergy assignment.
actionAdddiagnosis ( )
actionAjaxSearch ( ) Ajax search.
actionAssociatecontact ( )
actionEditContact ( )
actionEditOphInfo ( )
actionEditSocialHistory ( )
actionEpisode ( $id )
actionEpisodes ( )
actionGenerateAllergySelect ( ) Generate the select to the frontend for the allergy selection.
actionGetContactLocation ( )
actionGetPreviousOperation ( )
actionHideepisode ( )
actionInstitutionSites ( )
actionPossiblecontacts ( )
actionRemoveAllergy ( ) Remove patient/allergy assignment.
actionRemoveFamilyHistory ( )
actionRemovePreviousOperation ( )
actionRemoveRisk ( ) Remove patient/allergy assignment.
actionRemovediagnosis ( )
actionSearch ( )
actionSendSiteMessage ( )
actionShowepisode ( )
actionUnassociatecontact ( )
actionUpdateepisode ( $id )
actionValidateAddDiagnosis ( )
actionValidateEditContact ( )
actionValidateSaveContact ( )
actionVerifyAddNewEpisode ( )
actionView ( integer $id ) Displays a particular model.
allergyList ( ) List of allergies - changed to a wrap function to be able to use a common function from the model.
behaviors ( )
checkCreateAccess ( Episode $episode, EventType $event_type ) : boolean Check create access for the specified event type.
getDefaultElements ( $action, $event_type_id = false, $event = false ) : array Get all the elements for a the current module's event type.
getEpisodes ( )
getOptionalElements ( $action, $event = false ) : array Get the optional elements for the current module's event type This will be overriden by the module.
getSearch ( array $data ) : CDataProvider Perform a search on a model and return the results (separate function for unit testing).
getTemplateName ( $action, $eventTypeId )
loadModel ( integer $id ) Returns the data model based on the primary key given in the GET variable.
processJsVars ( )
reportDiagnoses ( $params )
reportEarliestDate ( $row )
riskList ( ) List of risks.

Protected Methods

Method Description
beforeAction ( $action )
getEventTypeGrouping ( )
performAjaxValidation ( CModel $model ) Performs the AJAX validation.

Private Methods

Method Description
checkImportedBiometryEvent ( ) Check for new imported biometry event.
processFuzzyDate ( )

Method Details

accessRules() public method

public accessRules ( )

actionAddAllergy() public method

Add patient/allergy assignment.
public actionAddAllergy ( )

actionAddContact() public method

public actionAddContact ( )

actionAddFamilyHistory() public method

actionAddNewEpisode() public method

public actionAddNewEpisode ( )

actionAddPreviousOperation() public method

actionAddRisk() public method

Add patient/allergy assignment.
public actionAddRisk ( )

actionAdddiagnosis() public method

public actionAdddiagnosis ( )

actionAjaxSearch() public method

Ajax search.
public actionAjaxSearch ( )

actionAssociatecontact() public method

actionEditContact() public method

public actionEditContact ( )

actionEditOphInfo() public method

public actionEditOphInfo ( )

actionEditSocialHistory() public method

actionEpisode() public method

public actionEpisode ( $id )

actionEpisodes() public method

public actionEpisodes ( )

actionGenerateAllergySelect() public method

Generate the select to the frontend for the allergy selection.

actionGetContactLocation() public method

actionGetPreviousOperation() public method

actionHideepisode() public method

public actionHideepisode ( )

actionInstitutionSites() public method

actionPossiblecontacts() public method

actionRemoveAllergy() public method

Remove patient/allergy assignment.
public actionRemoveAllergy ( )

actionRemoveFamilyHistory() public method

actionRemovePreviousOperation() public method

actionRemoveRisk() public method

Remove patient/allergy assignment.
public actionRemoveRisk ( )

actionRemovediagnosis() public method

actionSearch() public method

public actionSearch ( )

actionSendSiteMessage() public method

actionShowepisode() public method

public actionShowepisode ( )

actionUnassociatecontact() public method

actionUpdateepisode() public method

public actionUpdateepisode ( $id )

actionValidateAddDiagnosis() public method

actionValidateEditContact() public method

actionValidateSaveContact() public method

actionVerifyAddNewEpisode() public method

actionView() public method

Displays a particular model.
public actionView ( integer $id )
$id integer the ID of the model to be displayed

allergyList() public method

List of allergies - changed to a wrap function to be able to use a common function from the model.
public allergyList ( )

beforeAction() protected method

protected beforeAction ( $action )

behaviors() public method

public behaviors ( )

checkCreateAccess() public method

Check create access for the specified event type.
public checkCreateAccess ( Episode $episode, EventType $event_type ) : boolean
$episode Episode
$event_type EventType
return boolean

getDefaultElements() public method

Get all the elements for a the current module's event type.
public getDefaultElements ( $action, $event_type_id = false, $event = false ) : array
$event_type_id
return array

getEpisodes() public method

public getEpisodes ( )

getEventTypeGrouping() protected method

protected getEventTypeGrouping ( )

getOptionalElements() public method

Get the optional elements for the current module's event type This will be overriden by the module.
public getOptionalElements ( $action, $event = false ) : array
return array

getSearch() public method

Perform a search on a model and return the results (separate function for unit testing).
public getSearch ( array $data ) : CDataProvider
$data array form data of search terms
return CDataProvider

getTemplateName() public method

public getTemplateName ( $action, $eventTypeId )

loadModel() public method

If the data model is not found, an HTTP exception will be raised.
public loadModel ( integer $id )
$id integer the ID of the model to be loaded

performAjaxValidation() protected method

Performs the AJAX validation.
protected performAjaxValidation ( CModel $model )
$model CModel the model to be validated

processJsVars() public method

public processJsVars ( )

reportDiagnoses() public method

public reportDiagnoses ( $params )

reportEarliestDate() public method

public reportEarliestDate ( $row )

riskList() public method

List of risks.
public riskList ( )

Property Details

$current_episode public_oe property

public $current_episode

$editable public_oe property

public $editable

$editing public_oe property

public $editing

$episode public_oe property

public $episode

$episodes public_oe property

public $episodes

$event public_oe property

public $event

$event_actions public_oe property

public $event_actions

$event_tabs public_oe property

public $event_tabs

$event_type public_oe property

public $event_type

$event_type_id public_oe property

public $event_type_id

$firm public_oe property

public $firm

$layout public_oe property

public $layout

$patient public_oe property

public $patient

$renderPatientPanel public_oe property

public $renderPatientPanel

$title public_oe property

public $title