getList() public static method

Fetch options list of disorders (and optionally findings).
public static getList ( Firm $firm, boolean $include_findings = false ) : array
$firm Firm
$include_findings boolean
return array
Beispiel #1
0
					<?php 
    echo $error;
    ?>
				</li>
			</ul>
		</div>
	<?php 
}
?>

	<section class="element element-data">
		<h3 class="data-title">Principal diagnosis:</h3>
		<div class="row">
			<div class="large-5 column end">
				<?php 
$form->widget('application.widgets.DiagnosisSelection', array('field' => 'disorder_id', 'options' => CommonOphthalmicDisorder::getList(Firm::model()->findByPk($this->selectedFirmId)), 'code' => 130, 'layout' => 'episodeSummary'));
?>
			</div>
		</div>
	</section>

	<?php 
if (!empty($_POST)) {
    $eye_id = @$_POST['eye_id'];
} else {
    $eye_id = $episode->eye_id;
}
?>
	<section class="element element-data">
		<fieldset>
			<legend class="data-title">Principal eye:</legend>
Beispiel #2
0
									<th>Edit</th>
								</tr>
							</thead>
							<tbody id="Reports_diagnoses">
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>

		<div id="selected_diagnoses">
		</div>

		<?php 
$this->widget('application.widgets.DiagnosisSelection', array('field' => 'disorder_id', 'options' => CommonOphthalmicDisorder::getList(Firm::model()->findByPk($this->selectedFirmId)), 'layout' => 'minimal', 'callback' => 'Reports_AddDiagnosis'));
?>

		<div class="row field-row">
			<div class="large-2 column">
			</div>
			<div class="large-9 column end">
				<input type="radio" name="condition_type" id="condition_or" value="or" checked="checked" />
				<label for="condition_or">
					Match patients with <strong>any</strong> of these diagnoses
				</label>
			</div>
		</div>
		<div class="row field-row">
			<div class="large-2 column">
			</div>
 /**
  * @dataProvider dataProvider_getList
  */
 public function testGetList($firmkey, $get_findings, $result_count)
 {
     $res = CommonOphthalmicDisorder::getList($this->firms($firmkey), $get_findings);
     $this->assertCount($result_count, $res);
 }
					Add Ophthalmic Diagnosis
				</button>
			</div>

			<div id="add_new_ophthalmic_diagnosis" style="display: none;">

				<?php 
    $form = $this->beginWidget('FormLayout', array('id' => 'add-ophthalmic-diagnosis', 'enableAjaxValidation' => false, 'action' => array('patient/adddiagnosis'), 'layoutColumns' => array('label' => 3, 'field' => 9), 'htmlOptions' => array('class' => 'form add-data')));
    ?>

					<fieldset class="field-row">

						<legend><strong>Add ophthalmic diagnosis</strong></legend>

						<?php 
    $form->widget('application.widgets.DiagnosisSelection', array('field' => 'ophthalmic_disorder_id', 'label' => 'Diagnosis', 'options' => CommonOphthalmicDisorder::getList(Firm::model()->findByPk($this->selectedFirmId)), 'code' => 130, 'default' => false, 'layout' => 'patientSummary', 'loader' => 'add_ophthalmic_diagnosis_loader'));
    ?>

						<div class="row field-row hide" id="add_ophthalmic_diagnosis_loader">
							<p class="large-offset-<?php 
    echo $form->layoutColumns['label'];
    ?>
 large-<?php 
    echo $form->layoutColumns['field'];
    ?>
 column end">
								<img class="loader" src="<?php 
    echo Yii::app()->assetManager->createUrl('img/ajax-loader.gif');
    ?>
" />
									searching...
<?php

/**
 * OpenEyes.
 *
 * (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 <http://www.gnu.org/licenses/>.
 *
 * @link http://www.openeyes.org.uk
 *
 * @author OpenEyes <*****@*****.**>
 * @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust
 * @copyright Copyright (c) 2011-2013, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
?>

<fieldset class="element-fields" id="editDiagnosis">
	<?php 
echo $form->radioButtons($element, 'eye_id', CHtml::listData(Eye::model()->findAll(array('order' => 'display_order asc')), 'id', 'name'));
?>
	<?php 
$form->widget('application.widgets.DiagnosisSelection', array('field' => 'disorder_id', 'element' => $element, 'options' => CommonOphthalmicDisorder::getList(Firm::model()->findByPk($this->selectedFirmId)), 'layoutColumns' => array('label' => $form->layoutColumns['label'], 'field' => 4)));
?>
</fieldset>