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
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$itemsPerPage integer
$layout string

Méthodes publiques

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

public accessRules ( )

actionDelete() public méthode

public actionDelete ( )

actionDrugDefaults() public méthode

public actionDrugDefaults ( $drug_id )

actionDrugRouteOptions() public méthode

public actionDrugRouteOptions ( $route_id )

actionEdit() public méthode

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

actionFindDrug() public méthode

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

actionForm() public méthode

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

actionList() public méthode

Lists medications.
public actionList ( )

actionSave() public méthode

public actionSave ( )

actionStop() public méthode

public actionStop ( )

Property Details

$itemsPerPage public_oe property

public int $itemsPerPage
Résultat integer

$layout public_oe property

public string $layout
Résultat string