예제 #1
0
파일: save.php 프로젝트: epsdky/openemr
        for ($i = $rx_number; $i < 5; $i++) {
            $query = "DELETE FROM form_eye_mag_wearing where ENCOUNTER=? and PID=? and FORM_ID=? and RX_NUMBER=?";
            sqlQuery($query, array($encounter, $pid, $form_id, $i));
        }
        //now return the obj
        $send['IMPPLAN_items'] = build_IMPPLAN_items($pid, $form_id);
        $send['Clinical'] = start_your_engines($_REQUEST);
        $send['PMH_panel'] = display_PMSFH('2');
        $send['right_panel'] = show_PMSFH_panel($PMSFH);
        $send['PMSFH'] = $PMSFH[0];
        echo json_encode($send);
        exit;
    }
} elseif ($_REQUEST["mode"] == "retrieve") {
    if ($_REQUEST['PRIORS_query']) {
        echo display_PRIOR_section($_REQUEST['zone'], $_REQUEST['orig_id'], $_REQUEST['id_to_show'], $pid);
        exit;
    }
}
/**
 * Save the canvas drawings
 */
if ($_REQUEST['canvas']) {
    if (!$pid || !$encounter || !$zone || !$_POST["imgBase64"]) {
        exit;
    }
    $side = "OU";
    $base_name = $pid . "_" . $encounter . "_" . $side . "_" . $zone . "_VIEW";
    $filename = $base_name . ".jpg";
    $type = "image/jpeg";
    // all our canvases are this type
예제 #2
0
                    <!-- end    PMH Left -->
                    <!-- start  PMH Right -->
                    <div id="PMH_right" name="PMH_right" class="exam_section_right borderShadow">
                      <a class="nodisplay left_PMSFH_tab" id="right-panel-link" href="#right-panel">
                        <img src="<?php 
echo $GLOBALS['webroot'];
?>
/interface/forms/eye_mag/images/PMSFHx.png">
                      </a>
                      <span class="fa fa-close pull-right closeButton" id="BUTTON_TEXTD_PMH" name="BUTTON_TEXTD_PMH" value="1"></span>
                      <?php 
display_draw_section("PMH", $encounter, $pid);
?>
                      <div id="QP_PMH" name="QP_PMH" class="QP_class" style="max-height:100%">
                        <?php 
echo display_PRIOR_section("PMSFH", $id, $id, $pid);
?>
                      </div>
                    </div>
                    <!-- end    PMH Right -->
                  </div>
                  <!-- end      PMH_section -->
                </div>
                <!-- end    HPI_PMH row -->
              </div>
              <!-- end first div -->

              <div id="clinical_anchor" name="clinical_anchor" class="clear_both"></div>
              <br />

              <!-- start of the CLINICAL BOX -->