예제 #1
0
require_once $GLOBALS['fileroot'] . "/library/patient.inc";
require_once $GLOBALS['fileroot'] . "/library/lists.inc";
require_once $GLOBALS['srcdir'] . '/ESign/Api.php';
// This array defines the list of primary documents that may be
// chosen.  Each element value is an array of 3 values:
//
// * Name to appear in the navigation table
// * Usage: 0 = global, 1 = patient-specific, 2 = encounter-specific
// * The URL relative to the interface directory
//
$primary_docs = array('ros' => array(xl('Roster'), 0, 'reports/players_report.php?embed=1'), 'cal' => array(xl('Calendar'), 0, 'main/main_info.php'), 'pfb' => array(xl('Patient Flow Board'), 0, '../interface/patient_tracker/patient_tracker.php?skip_timeout_reset=1'), 'app' => array(xl('Portal Activity'), 0, '../myportal/index.php'), 'msg' => array(xl('Messages'), 0, 'main/messages/messages.php?form_active=1'), 'pwd' => array(xl('Password'), 0, 'usergroup/user_info.php'), 'prf' => array(xl('Preferences'), 0, 'super/edit_globals.php?mode=user'), 'adm' => array(xl('Admin'), 0, 'usergroup/admin_frameset.php'), 'rep' => array(xl('Reports'), 0, 'reports/index.php'), 'ono' => array(xl('Ofc Notes'), 0, 'main/onotes/office_comments.php'), 'fax' => array(xl('Fax/Scan'), 0, 'fax/faxq.php'), 'adb' => array(xl('Addr Bk'), 0, 'usergroup/addrbook_list.php'), 'orl' => array(xl('Proc Prov'), 0, 'orders/procedure_provider_list.php'), 'ort' => array(xl('Proc Cat'), 0, 'orders/types.php'), 'orc' => array(xl('Proc Load'), 0, 'orders/load_compendium.php'), 'orb' => array(xl('Proc Bat'), 0, 'orders/orders_results.php?batch=1'), 'ore' => array(xl('E-Reports'), 0, 'orders/list_reports.php'), 'ppo' => array(xl('CMS Portal'), 0, 'cmsportal/list_requests.php'), 'cht' => array(xl('Chart Trk'), 0, '../custom/chart_tracker.php'), 'imp' => array(xl('Import'), 0, '../custom/import.php'), 'bil' => array(xl('Billing'), 0, 'billing/billing_report.php'), 'sup' => array(xl('Superbill'), 0, 'patient_file/encounter/superbill_custom_full.php'), 'aun' => array(xl('Authorizations'), 0, 'main/authorizations/authorizations.php'), 'new' => array(xl('New Pt'), 0, 'new/new.php'), 'ped' => array(xl('Patient Education'), 0, 'reports/patient_edu_web_lookup.php'), 'lab' => array(xl('Check Lab Results'), 0, 'orders/lab_exchange.php'), 'dem' => array(xl('Patient'), 1, "patient_file/summary/demographics.php"), 'his' => array(xl('History'), 1, 'patient_file/history/history.php'), 'ens' => array(xl('Visit History'), 1, 'patient_file/history/encounters.php'), 'nen' => array(xl('Create Visit'), 1, 'forms/newpatient/new.php?autoloaded=1&calenc='), 'pre' => array(xl('Rx'), 1, 'patient_file/summary/rx_frameset.php'), 'iss' => array(xl('Issues'), 1, 'patient_file/summary/stats_full.php?active=all'), 'imm' => array(xl('Immunize'), 1, 'patient_file/summary/immunizations.php'), 'doc' => array(xl('Documents'), 1, '../controller.php?document&list&patient_id={PID}'), 'orp' => array(xl('Proc Pending Rev'), 1, 'orders/orders_results.php?review=1'), 'orr' => array(xl('Proc Res'), 1, 'orders/orders_results.php'), 'lda' => array(xl('Lab overview'), 1, 'patient_file/summary/labdata.php'), 'tan' => array(xl('Configure Tracks'), 0, 'forms/track_anything/create.php'), 'prp' => array(xl('Pt Report'), 1, 'patient_file/report/patient_report.php'), 'prq' => array(xl('Pt Rec Request'), 1, 'patient_file/transaction/record_request.php'), 'pno' => array(xl('Pt Notes'), 1, 'patient_file/summary/pnotes.php'), 'tra' => array(xl('Transact'), 1, 'patient_file/transaction/transactions.php'), 'sum' => array(xl('Summary'), 1, 'patient_file/summary/summary_bottom.php'), 'enc' => array(xl('Encounter'), 2, 'patient_file/encounter/encounter_top.php'), 'erx' => array(xl('e-Rx'), 1, 'eRx.php'), 'err' => array(xl('e-Rx Renewal'), 1, 'eRx.php?page=status'), 'ere' => array(xl('e-Rx EPCS'), 1, 'eRx.php?page=epcs-admin'), 'pay' => array(xl('Payment'), 1, '../patient_file/front_payment.php'), 'edi' => array(xl('EDI History'), 0, 'billing/edih_view.php'), 'dld' => array(xl('Display Documents'), 0, 'main/display_documents.php'));
$primary_docs['npa'] = array(xl('Batch Payments'), 0, 'billing/new_payment.php');
if ($GLOBALS['use_charges_panel'] || $GLOBALS['concurrent_layout'] == 2) {
    $primary_docs['cod'] = array(xl('Charges'), 2, 'patient_file/encounter/encounter_bottom.php');
}
$esignApi = new Api();
// This section decides which navigation items will not appear.
$disallowed = array();
$disallowed['edi'] = !($GLOBALS['enable_edihistory_in_left_menu'] || acl_check('acct', 'eob'));
$disallowed['adm'] = !(acl_check('admin', 'calendar') || acl_check('admin', 'database') || acl_check('admin', 'forms') || acl_check('admin', 'practice') || acl_check('admin', 'users') || acl_check('admin', 'acl') || acl_check('admin', 'super') || acl_check('admin', 'superbill') || acl_check('admin', 'drugs'));
$disallowed['bil'] = !(acl_check('acct', 'rep') || acl_check('acct', 'eob') || acl_check('acct', 'bill'));
$disallowed['new'] = !acl_check('patients', 'demo', '', array('write', 'addonly'));
$disallowed['fax'] = !($GLOBALS['enable_hylafax'] || $GLOBALS['enable_scanner']);
$disallowed['ros'] = !$GLOBALS['athletic_team'];
$disallowed['iss'] = !((acl_check('encounters', 'notes', '', 'write') || acl_check('encounters', 'notes_a', '', 'write')) && acl_check('patients', 'med', '', 'write'));
$disallowed['imp'] = $disallowed['new'] || !is_readable("{$webserver_root}/custom/import.php");
$disallowed['cht'] = !is_readable("{$webserver_root}/custom/chart_tracker.php");
$disallowed['pre'] = !acl_check('patients', 'med');
// Helper functions for treeview generation.
function genTreeLink($frame, $name, $title, $mono = false)
{
예제 #2
0
include_once "{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php";
?>
<script type="text/javascript" src="../../../library/dynarch_calendar_setup.js"></script>
<script type="text/javascript" src="../../../library/js/common.js"></script>
<script type="text/javascript" src="../../../library/js/fancybox-1.3.4/jquery.fancybox-1.3.4.js"></script>
<script src="<?php 
echo $GLOBALS['webroot'];
?>
/library/ESign/js/jquery.esign.js"></script>
<link rel="stylesheet" type="text/css" href="<?php 
echo $GLOBALS['webroot'];
?>
/library/ESign/css/esign.css" />

<?php 
$esignApi = new Api();
?>

<?php 
// include generic js support for graphing
?>
<script type="text/javascript" src="<?php 
echo $GLOBALS['web_root'];
?>
/library/openflashchart/js/json/json2.js"></script>
<script type="text/javascript" src="<?php 
echo $GLOBALS['web_root'];
?>
/library/openflashchart/js/swfobject.js"></script>

<?php 
예제 #3
0
$PDF_OUTPUT = empty($_POST['pdf']) ? 0 : intval($_POST['pdf']);
if ($PDF_OUTPUT) {
    require_once "{$srcdir}/html2pdf/html2pdf.class.php";
    // $pdf = new HTML2PDF('P', 'Letter', 'en', array(5, 5, 5, 5) );  // add a little margin 5cm all around TODO: add to globals
    $pdf = new HTML2PDF($GLOBALS['pdf_layout'], $GLOBALS['pdf_size'], $GLOBALS['pdf_language'], array($GLOBALS['pdf_left_margin'], $GLOBALS['pdf_top_margin'], $GLOBALS['pdf_right_margin'], $GLOBALS['pdf_bottom_margin']));
    ob_start();
}
// get various authorization levels
$auth_notes_a = acl_check('encounters', 'notes_a');
$auth_notes = acl_check('encounters', 'notes');
$auth_coding_a = acl_check('encounters', 'coding_a');
$auth_coding = acl_check('encounters', 'coding');
$auth_relaxed = acl_check('encounters', 'relaxed');
$auth_med = acl_check('patients', 'med');
$auth_demo = acl_check('patients', 'demo');
$esignApi = new Api();
$printable = empty($_GET['printable']) ? false : true;
if ($PDF_OUTPUT) {
    $printable = true;
}
unset($_GET['printable']);
// Number of columns in tables for insurance and encounter forms.
$N = $PDF_OUTPUT ? 4 : 6;
$first_issue = 1;
function getContent()
{
    global $web_root, $webserver_root;
    $content = ob_get_clean();
    // Fix a nasty html2pdf bug - it ignores document root!
    $i = 0;
    $wrlen = strlen($web_root);