function rx()
{
    global $edit;
    if ($edit) {
        return 'onClick="javascript:pullRosebar(this)"></a>';
    } else {
        return '>';
    }
}
require_once $root_path . 'include/care_api_classes/class_notes_nursing.php';
include_once $root_path . 'include/care_api_classes/class_person.php';
include_once $root_path . 'include/care_api_classes/class_diagnostics.php';
$pobj = new Person();
$pid = $pobj->GetPidFromEncounter($pn);
$diag_obj = new Diagnostics();
$batch_no = $diag_obj->GetRadiologyBatchNo($pn);
echo '<table   cellpadding="0" cellspacing=0 border="0" >' . '' . '<tr bgcolor="#696969"><td colspan="3" align="Right" style="padding-top:7px; padding-bottom:2px;"><nobr>';
echo '<input  style="width:220px; overflow:hidden; float:left; margin:0px 0px 7px 6px;"
type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/registration_admission/show_appointment.php' . URL_REDIRECT_APPEND . '$sid=' . $SID . '&pid=' . $pid . '&encounter=' . '&pn=' . $pn . '&lang=en&ntid=false&externalcall=true&help_site=patient_charts&target=search&1=1&backpath=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&pn=' . $pn . '&edit=1') . '\'" value="' . $LDAppointments . '">' . '' . '<input  style="width:220px; overflow:hidden; float:right; margin:0px 0px 7px 6px;" type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/registration_admission/show_prescription.php' . URL_REDIRECT_APPEND . '$sid=' . $SID . '&pn=' . $pn . '&lang=en&ntid=false&externalcall=true&help_site=patient_charts&target=search&1=1&prescrServ=&backpath=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&pn=' . $pn . '&edit=1') . '\'" value="' . $LDPrescrWithoutServices . '">' . '' . '
			 </nobr></td></tr>' . '';
echo '<tr bgcolor="#696969"><td colspan="3" align="Right" style="padding-top:7px; padding-bottom:2px;"><nobr>' . '<input  style="width:220px; overflow:hidden; float:left; margin:0px 0px 7px 6px;"
type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/nursing/nursing-station-patientdaten-doconsil-chemlabor.php' . URL_REDIRECT_APPEND . '&station=' . $station . '&pn=' . $pn . '&user_origin=' . $user_origin . '&target=chemlabor&noresize=1&edit=' . $edit . '\'" value="' . $LDLabRequest . '">' . '' . '<input  style="width:220px; overflow:hidden; float:right; margin:0px 0px 7px 6px;" type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/registration_admission/show_prescription.php' . URL_REDIRECT_APPEND . '$sid=' . $SID . '&pn=' . $pn . '&lang=en&ntid=false&externalcall=true&help_site=patient_charts&target=search&1=1&prescrServ=serv&backpath=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&pn=' . $pn . '&edit=1') . '\'" value="' . $LDServices . '">' . '' . '
			 </nobr></td></tr>' . '';
echo '<tr bgcolor="#696969"><td colspan="3" align="Right" style="padding-top:7px; padding-bottom:2px;"><nobr>' . '<input style="width:220px; overflow:hidden; float:right; margin:0px 0px 7px 6px;" type="button" onClick="window.location.href=\'' . $root_path . 'modules/registration_admission/show_prescription.php' . URL_REDIRECT_APPEND . '$sid=' . $SID . '&pn=' . $pn . '&lang=en&ntid=false&externalcall=true&help_site=patient_charts&target=search&1=1&prescrServ=proc&backpath=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&pn=' . $pn . '&edit=1') . '\'" value="' . $LDProcedures . '">' . '' . '<input  style="width:220px; overflow:hidden; float:left; margin:0px 0px 7px 6px;" type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/laboratory/labor_datalist_noedit.php' . URL_REDIRECT_APPEND . '&station=' . $station . '&pn=' . $pn . '&user_origin=' . $user_origin . '&edit=' . $edit . '\'" value="' . $LDLabReports . '">' . '' . '
			 </nobr></td></tr>' . '';
echo '<tr bgcolor="#696969" ><td colspan="3" align="Right" style="padding-top:7px; padding-bottom:2px;" ><nobr>' . '<input style="width:220px; overflow:hidden; float:right; margin:0px 0px 7px 6px;" type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/nursing/nursing-station-patientdaten-doconsil-radio.php' . URL_REDIRECT_APPEND . '&station=' . $station . '&pn=' . $pn . '&user_origin=' . $user_origin . '&target=radio&noresize=1&edit=' . $edit . '\'" value="' . $LDRadioRequest . '">' . '' . '<input  style="width:220px; overflow:hidden; float:left; margin:0px 0px 7px 6px;"
	type="button" onClick="window.location.href=\'' . $root_path . 'modules/diagnostics_tz/icd10_quicklist.php?sid=' . $sid . '&encounter=' . $pn . '&lang=en&ntid=false&externalcall=true&target=search&1=1&ispopup=true&backpath_diag=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&pn=' . $pn) . '\'" value="' . $LDDiagnoses . '">' . '' . '
			 </nobr></td></tr>' . '';
echo '<tr bgcolor="#696969" ><td colspan="3" align="Right" style="padding-top:7px; padding-bottom:2px;" ><nobr>' . '<input style="width:220px; overflow:hidden; float:right; margin:0px 0px 7px 6px;" type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/laboratory/labor_test_findings_radio.php' . URL_REDIRECT_APPEND . '&station=' . $station . '&pn=' . $pn . '&subtarget=radio&batch_nr=' . $batch_no . '&user_origin=' . $user_origin . '&edit=' . $edit . '\'" value="' . $LDRadioReport . '">' . '' . '<input  style="width:220px; display:none; overflow:hidden; float:left; margin:0px 0px 7px 6px;"
	type="button" onClick="javascript:window.location.href=\'' . $root_path . 'modules/registration_admission/show_notes.php' . URL_REDIRECT_APPEND . '&sid=' . $sid . '&pid=' . $pid . '&pn=' . $pn . '&lang=en&ntid=false&externalcall=true&help_site=patient_charts&target=search&backpath=' . urlencode($_SERVER["PHP_SELF"] . URL_APPEND . '&sid=' . $sid . '&pn=' . $pn . '&edit=1') . '\'" value="' . $LDNotesReports . '">' . '' . '' . '<input style="width:220px; float:left; overflow:hidden; margin:0px 0px 9px 6px;" type = "button" value = "' . $LDNotesReports . '" onClick="window.location.href=\'../../modules/dental/gui_patient_history.php?sid=' . $sid . '&ntid=false&lang=en&pid=' . $pid . '&encounter=' . $pn . '&frm=chart\'">' . '' . '
			 </nobr></td></tr>' . '';