supporting data peculiar to ippf issue types
[openemr.git] / interface / patient_file / encounter / coding.php
blobaa39fc684f3eb539feed40cd045d7940c58da3ff
1 <?php
2 include_once("../../globals.php");
3 include_once("../../../custom/code_types.inc.php");
4 ?>
5 <html>
6 <head>
7 <?php html_header_show();?>
9 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
10 <script type="text/javascript" src="../../../library/js/jquery.js"></script>
12 <!-- DBC STUFF ================ -->
14 <script type="text/javascript">
15 $(document).ready(function(){
17 $('#closeztn').bind('click', function(){
18 if ( confirm("Do you really want to close the ZTN?") ) {
19 $.ajax({
20 type: 'POST',
21 url: 'as.php',
22 data: 'cztn=1',
23 async: false
24 });
26 window.location.reload(true);
27 });
29 });
30 </script>
32 <script language="JavaScript">
33 <!-- hide from JavaScript-challenged browsers
35 function selas() {
36 popupWin = window.open('dbc_aschoose.php', 'remote', 'width=800,height=700,scrollbars');
39 function selcl() {
40 popupWin = window.open('dbc_close.php', 'remote', 'width=960,height=630,left=200,top=100,scrollbars');
43 function selfl() {
44 popupWin = window.open('dbc_showfollowup.php', 'remote', 'width=500,height=270,left=200,top=100,scrollbars');
46 // done hiding --></script>
49 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
50 </head>
51 <body class="body_bottom">
54 <?php
55 if ( LANGUAGE == 5 ) $pres = "prescriptiondutch";
56 else $pres = "prescription";
59 <dl>
60 <dt><span href="coding.php" class="title"><?php xl('Coding','e'); ?></span></dt>
61 <?php
62 // regular openemr
63 if ( !$GLOBALS['dutchpc'] ) { ?>
65 <dd><a class="text" href="superbill_codes.php"
66 target="<?php echo $GLOBALS['concurrent_layout'] ? '_parent' : 'Main'; ?>"
67 onclick="top.restoreSession()">
68 <?php xl('Superbill','e'); ?></a></dd>
70 <?php foreach ($code_types as $key => $value) { ?>
71 <dd><a class="text" href="search_code.php?type=<?php echo $key ?>"
72 target="Codes" onclick="top.restoreSession()">
73 <?php echo $key; ?> <?php xl('Search','e'); ?></a></dd>
74 <?php } ?>
76 <dd><a class="text" href="copay.php" target="Codes" onclick="top.restoreSession()"><?php xl('Copay','e'); ?></a></dd>
77 <dd><a class="text" href="other.php" target="Codes" onclick="top.restoreSession()"><?php xl('Other','e'); ?></a></dd><br />
79 <?php } else {
80 // implement DBC Dutch System
81 // DBC Dutch SYSTEM
82 if ( !$_SESSION['newdbc'] || !isset($_SESSION['newdbc']) ) {
83 $_SESSION['posas'] = 1; // we need these to automatically select first radiobutton in dbc choose
86 $_SESSION['newdbc'] = TRUE;
87 $_SESSION['show_axid'] = FALSE;
89 if ( $_SESSION['save'] ) { // prevent erasing session vars at refresh
90 // reset session variables
91 for ( $i = 1 ; $i <= 5 ; $i++) {
92 $varr = "as$i";
93 if ( isset($_SESSION[$varr]) ) {
94 unset($_SESSION[$varr]);
96 } // for
98 $_SESSION['save'] = TRUE;
99 $_SESSION['newdbc'] = FALSE;
102 // display the required links, function of ZTN situation
103 display_links();
105 } // EOS DBC
108 <dt><span href="coding.php" class="title"><?php xl('Prescriptions','e'); ?></span></dt>
109 <dd><a class="text" href="<?php echo $GLOBALS['webroot']?>/controller.php?<?php echo $pres?>&list&id=<?php echo $pid?>"
110 target="Codes" onclick="top.restoreSession()"><?php xl('List Prescriptions','e'); ?></a></dd>
111 <dd><a class="text" href="<?php echo $GLOBALS['webroot']?>/controller.php?<?php echo $pres?>&edit&id=&pid=<?php echo $pid?>"
112 target="Codes" onclick="top.restoreSession()"><?php xl('Add Prescription','e'); ?></a></dd>
113 </dl>
115 </body>
116 </html>