/**
  * Update the form (derived) fields plain fields
  *
  * @return void
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_tag_hl7 = CHL7::getObjectTag($this->group_id);
     if (!$this->_configs) {
         $this->loadConfigValues();
     }
 }
示例#2
0
 /**
  * @see parent::updateFormFields
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_parent_class = "CInteropSender";
     if (CModule::getActive("hprimxml")) {
         $this->_tag_hprimxml = CHPrimXML::getObjectTag($this->group_id);
     }
     if (CModule::getActive("phast")) {
         $this->_tag_phast = CPhast::getTagPhast($this->group_id);
     }
     if (CModule::getActive("hl7")) {
         $this->_tag_hl7 = CHL7::getObjectTag($this->group_id);
     }
 }
示例#3
0
 /**
  * Construct
  *
  * @return \CMFN
  */
 function __construct()
 {
     $this->domain = "HL7";
     $this->type = "MFN";
     parent::__construct();
 }
示例#4
0
     *
     * @param string $group_id Group
     *
     * @return string|null
     */
    static function getObjectTag($group_id = null)
    {
        // Recherche de l'établissement
        $group = CGroups::get($group_id);
        if (!$group_id) {
            $group_id = $group->_id;
        }
        $cache = new Cache(__METHOD__, array($group_id), Cache::INNER);
        if ($cache->exists()) {
            return $cache->get();
        }
        $tag = self::getDynamicTag();
        return $cache->put(str_replace('$g', $group_id, $tag));
    }
    /**
     * Get object dynamic tag
     *
     * @return string
     */
    static function getDynamicTag()
    {
        return CAppUI::conf("hl7 tag_default");
    }
}
CHL7::$versions = array("v2" => CHL7v2::$versions);