/**
 * $Id: ajax_edit_observation_timed_data.php 20370 2013-09-16 09:56:03Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage SalleOp
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 20370 $
 */
CCanDo::checkRead();
$object_guid = CValue::get("object_guid");
$timed_data_id = CValue::get("timed_data_id");
/** @var COperation|CSejour $object */
$object = CStoredObject::loadFromGuid($object_guid);
$timed_data = new CSupervisionTimedData();
$timed_data->load($timed_data_id);
$result = new CObservationResult();
$result->value_type_id = $timed_data->value_type_id;
$result->loadRefValueType();
$result_set = new CObservationResultSet();
$result_set->context_class = $object->_class;
$result_set->context_id = $object->_id;
$result_set->datetime = CMbDT::dateTime();
$result_set->patient_id = $object->loadRelPatient()->_id;
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("result", $result);
$smarty->assign("result_set", $result_set);
$smarty->assign("timed_data", $timed_data);
$smarty->display("inc_edit_observation_timed_data.tpl");
Пример #2
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkAdmin();
$group = CGroups::loadCurrent();
$graphs = CSupervisionGraph::getAllFor($group);
$timed_data = CSupervisionTimedData::getAllFor($group);
$timed_pictures = CSupervisionTimedPicture::getAllFor($group);
$instant_data = CSupervisionInstantData::getAllFor($group);
$packs = CSupervisionGraphPack::getAllFor($group, true);
foreach ($graphs as $_graph) {
    $_axes = $_graph->loadRefsAxes();
    foreach ($_axes as $_axis) {
        $_axis->loadBackRefs("series");
    }
}
$smarty = new CSmartyDP();
$smarty->assign("graphs", $graphs);
$smarty->assign("packs", $packs);
$smarty->assign("timed_data", $timed_data);
$smarty->assign("timed_pictures", $timed_pictures);
$smarty->assign("instant_data", $instant_data);
$smarty->display("inc_list_supervision_graph.tpl");
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkAdmin();
$supervision_timed_data_id = CValue::getOrSession("supervision_timed_data_id");
$timed_data = new CSupervisionTimedData();
$timed_data->load($supervision_timed_data_id);
$timed_data->loadRefsNotes();
$smarty = new CSmartyDP();
$smarty->assign("timed_data", $timed_data);
$smarty->display("inc_edit_supervision_timed_data.tpl");