* @subpackage Patients * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkAdmin(); $unit_id = CValue::getOrSession("value_unit_id"); $type_id = CValue::getOrSession("value_type_id"); $unit = new CObservationValueUnit(); $unit->load($unit_id); if (!$unit->_id) { $unit->coding_system = "MB"; } else { $unit->loadRefsNotes(); } $units = $unit->loadList(null, "coding_system, code"); $type = new CObservationValueType(); $type->load($type_id); if (!$type->_id) { $type->coding_system = "MB"; } else { $type->loadRefsNotes(); } $types = $type->loadList(null, "coding_system, code"); // Création du template $smarty = new CSmartyDP(); $smarty->assign("unit", $unit); $smarty->assign("units", $units); $smarty->assign("type", $type); $smarty->assign("types", $types); $smarty->display("vw_config_param_surveillance.tpl");
/** * Get observation identifier * * @param DOMNode $node DOM node * @param CObservationResult $result Result * * @return string */ function getObservationIdentifier(DOMNode $node, CObservationResult $result) { $identifier = $this->queryTextNode("OBX.3/CE.1", $node); $text = $this->queryTextNode("OBX.3/CE.2", $node); $coding_system = $this->queryTextNode("OBX.3/CE.3", $node); $value_type = new CObservationValueType(); $result->value_type_id = $value_type->loadMatch($identifier, $coding_system, $text); }