PHP Class MedicationController

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseAdminController
Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$itemsPerPage integer
$layout string

Public Methods

Method Description
accessRules ( )
actionDelete ( )
actionDrugDefaults ( $drug_id )
actionDrugRouteOptions ( $route_id )
actionEdit ( boolean | integer $id = false ) Edits or adds medications.
actionFindDrug ( ) Searches across MedicationDrug and Drug models for the given term. If the term only matches on an alias, the alias will be included in the returned label for that entry.
actionForm ( integer $patientId, integer $medicationId = null, $prescriptionItemId = null )
actionList ( ) Lists medications.
actionSave ( )
actionStop ( )

Method Details

accessRules() public method

public accessRules ( )

actionDelete() public method

public actionDelete ( )

actionDrugDefaults() public method

public actionDrugDefaults ( $drug_id )

actionDrugRouteOptions() public method

public actionDrugRouteOptions ( $route_id )

actionEdit() public method

Edits or adds medications.
public actionEdit ( boolean | integer $id = false )
$id boolean | integer

actionFindDrug() public method

Distinguishes between the data types to ensure relationship defined correctly.
public actionFindDrug ( )

actionForm() public method

public actionForm ( integer $patientId, integer $medicationId = null, $prescriptionItemId = null )
$patientId integer
$medicationId integer

actionList() public method

Lists medications.
public actionList ( )

actionSave() public method

public actionSave ( )

actionStop() public method

public actionStop ( )

Property Details

$itemsPerPage public_oe property

public int $itemsPerPage
return integer

$layout public_oe property

public string $layout
return string