Example #1
0
 /**
  * @see parent::getProps()
  */
 function getProps()
 {
     $props = parent::getProps();
     $props["file_category_id"] = "ref class|CFilesCategory";
     $props["etat_envoi"] = "enum notNull list|oui|non|obsolete default|non show|0";
     $props["author_id"] = "ref class|CMediusers";
     $props["private"] = "bool default|0 show|0";
     $props["annule"] = "bool default|0 show|0";
     $props["doc_size"] = "num min|0 show|0";
     $type_doc = "";
     if (CModule::getActive("cda")) {
         $jdv_type = CCdaTools::loadJV("CI-SIS_jdv_typeCode.xml");
         foreach ($jdv_type as $_type) {
             $type_doc .= $_type["codeSystem"] . "^" . $_type["code"] . "|";
         }
         $type_doc = substr($type_doc, 0, -1);
     }
     $props["type_doc"] = empty($type_doc) ? "str" : "enum list|{$type_doc}";
     $sisra_types = "";
     if (CModule::getActive("sisra")) {
         $sisra_types = CSisraTools::getSisraTypeDocument();
         $sisra_types = implode("|", $sisra_types);
     }
     $props["type_doc_sisra"] = empty($sisra_types) ? "str" : "enum list|{$sisra_types}";
     $props["_extensioned"] = "str notNull";
     $props["_no_extension"] = "str notNull";
     $props["_file_size"] = "str show|1";
     $props["_send_problem"] = "text";
     return $props;
 }
Example #2
0
 *  
 * @category CDA
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$group = CGroups::loadCurrent();
$tag = "cda_association_code";
$mb_oid = CAppUI::conf("mb_oid");
$path_ghostscript = CAppUI::conf("cda path_ghostscript");
$path_ghostscript = $path_ghostscript ? escapeshellarg("{$path_ghostscript}") : "gs";
$group->loadLastId400($tag);
$type_group = CCdaTools::loadJV("CI-SIS_jdv_healthcareFacilityTypeCode.xml");
$java = false;
$processorInstance = proc_open("java -verbose -version", array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $pipes);
$processorResult = stream_get_contents($pipes[1]);
$processorErrors = stream_get_contents($pipes[2]);
proc_close($processorInstance);
if ($processorResult) {
    $java = true;
}
$ghostscript = false;
$processorInstance = proc_open("{$path_ghostscript} --version", array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $pipes);
$processorResult = stream_get_contents($pipes[1]);
$processorErrors = stream_get_contents($pipes[2]);
proc_close($processorInstance);
if ($processorResult) {
    $ghostscript = true;