Esempio n. 1
0
    if ($_REQUEST['id'] || $prescIds) {
        if ($_REQUEST['id']) {
            $prescArr = explode(':', $_REQUEST['id']);
        } elseif ($prescIds) {
            $prescArr = explode(':', $prescIds);
        }
        foreach ($prescArr as $prescid) {
            if ($prescid) {
                OutsidePrescription($doc, $r, $pid, $prescid);
            }
        }
    } else {
        OutsidePrescription($doc, $r, $pid, 0);
    }
    if ($res_presc < $GLOBALS['total_count']) {
        $uploaded_med_arr = PatientMedication($doc, $r, $pid, $med_limit);
    }
}
$xml = $doc->saveXML();
$xml = preg_replace('/"/', "'", $xml);
//echo $xml."<br><br>";
$xml = stripStrings($xml, array('&#xD;' => '', '\\t' => ''));
//$xml = stripStrings($xml,array('&#xD;'=>'','\t'=>'','\r'=>'','\n'=>''));
if ($dem_check) {
    echo "<b>" . htmlspecialchars(xl("Warning:"), ENT_NOQUOTES) . "</b><br><br>";
    echo $dem_check . "<br>";
    echo htmlspecialchars(xl("The page will be redirected to Demographics. You can edit the country field and clickthrough to NewCrop again."), ENT_NOQUOTES);
    ob_end_flush();
    ?>
    <script type="text/javascript">
    window.setTimeout(function nav(){
Esempio n. 2
0
    $prescIds = preg_replace('/:$/', '', $prescIds);
    if ($_REQUEST['id'] || $prescIds) {
        if ($_REQUEST['id']) {
            $prescArr = explode(':', $_REQUEST['id']);
        } elseif ($prescIds) {
            $prescArr = explode(':', $prescIds);
        }
        foreach ($prescArr as $prescid) {
            if ($prescid) {
                OutsidePrescription($doc, $r, $pid, $prescid);
            }
        }
    } else {
        OutsidePrescription($doc, $r, $pid, 0);
    }
    PatientMedication($doc, $r, $pid);
}
$xml = $doc->saveXML();
$xml = preg_replace('/"/', "'", $xml);
if ($msg) {
    echo htmlspecialchars(xl('The following fields have to be filled to send request.'), ENT_NOQUOTES);
    echo "<br>";
    echo $msg;
    die;
}
//################################################
//XML GENERATED BY OPENEMR
//################################################
//$fh=fopen('click_xml.txt','w');
//fwrite($fh,$xml);
//echo $xml;