Пример #1
0
 /**
  * @see parent::getBackProps
  */
 function getBackProps()
 {
     $backProps = parent::getBackProps();
     $backProps["messages_supported"] = "CMessageSupported object_id";
     $backProps["object_links"] = "CObjectToInteropSender sender_id";
     $backProps["routes_sender"] = "CEAIRoute sender_id";
     return $backProps;
 }
<?php

/**
 * Refresh incrementer/actor EAI
 *  
 * @category EAI
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html 
 * @version  SVN: $Id:$ 
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$domain_id = CValue::get("domain_id");
// Liste des domaines
$domain = new CDomain();
$domain->load($domain_id);
$domain->loadRefsGroupDomains();
$domain->loadRefActor();
$domain->loadRefIncrementer()->loadView();
$domain->isMaster();
// Liste des acteurs
$actor = new CInteropActor();
$actors = $actor->getObjects();
$groups = CGroups::loadGroups();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("domain", $domain);
$smarty->assign("actors", $actors);
$smarty->assign("groups", $groups);
$smarty->display("inc_vw_incrementer_actor.tpl");
Пример #3
0
 /**
  * Update the form (derived) fields plain fields
  *
  * @return void
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_parent_class = "CInteropReceiver";
 }
Пример #4
0
 /**
  * Set the actor
  * 
  * @param CInteropActor $actor The actor
  * 
  * @return null
  */
 function setActor(CInteropActor $actor)
 {
     $source = $actor->getFirstExchangesSources();
     if (get_class($actor) == "CDicomSender") {
         $actor->loadRefsExchangesSources();
         $this->sender = $source->host . ":" . $source->port;
         $this->receiver = "[SELF]";
         $this->sender_id = $actor->_id;
     } elseif (get_class($actor) == "CDicomReceiver") {
         $actor->loadRefsExchangesSources();
         $this->receiver = $source->host . ":" . $source->port;
         $this->sender = "[SELF]";
         $this->receiver_id = $actor->_id;
     }
     $this->_ref_actor = $actor;
 }
 /**
  * Fill other identifiers
  *
  * @param array         &$identifiers Identifiers
  * @param CPatient      $patient      Person
  * @param CInteropActor $actor        Interop actor
  *
  * @return null
  */
 function fillOtherIdentifiers(&$identifiers, CPatient $patient, CInteropActor $actor = null)
 {
     if (CValue::read($actor->_configs, "send_own_identifier")) {
         $identifiers[] = array($patient->_id, null, null, $this->getAssigningAuthority("mediboard"), "RI");
     }
     if (!CValue::read($actor->_configs, "send_self_identifier")) {
         return;
     }
     if (!($idex_actor = $actor->getIdex($patient)->id400)) {
         return;
     }
     $identifiers[] = array($idex_actor, null, null, $this->getAssigningAuthority("actor", null, $actor));
 }