Pending Patches

ytiddo wrote on Monday, June 22, 2009:

I have been working on a series of patches tuning OpenEMR to fit our mental health practice a little better.

These patches perform the following operations:

Allow one to change from loading the calendar in the upper-right frame, to loading an arbitrary page (and provide an example ‘simple search’ page).
change from using ‘Patient’ to ‘Client’.
change from ‘Encounter’ to ‘Visit’.
minimize the bottom frame by default (which i notice the athletic team doing?)
disable the calendar
disable the chart tracker
disable the immunization tracker (which i notice the weight loss clinic doing?)
disable the prescription ordering subsystem

I would like to get some of these committed, after further review, but as these change the features/behavior of openEMR, some public comment is necessary.

So, public, comment. its necessary! :stuck_out_tongue:

<dons flameproof apparel>

Justin Doiel

cfapress wrote on Tuesday, June 23, 2009:

Justin,

Are your changes applied by a setting in globals.php?
That is how the athletic team changes are handled.

BTW - Our Agency is both a mental health and school-based health-center organization. So we’re trying to figure out how best to use OpenEMR for the mental health part. So far it seems that OpenEMR just needs mental-health forms available in the Encounters section.

Jason

ytiddo wrote on Tuesday, June 23, 2009:

Each of the items i disable or set isset by a different setting in my globals.php

I have a section inserted just below where the other ‘special’ trees are set, that looks like thus:

{{{
// NOT functional. Always keep this value FALSE.
//  Plan to remove when this functionally has been completely
//   removed from code.
$GLOBALS[‘dutchpc’] = FALSE;

$GLOBALS[‘disable_calendar’] = true;
$GLOBALS[‘disable_chart_tracker’] = true;
$GLOBALS[‘disable_prescriptions’] = true;
$GLOBALS[‘disable_immunizations’] = true;
$GLOBALS[‘patient_is_client’] = true;
$GLOBALS[‘encounter_is_visit’] = true;
$GLOBALS[‘default_top_pane’] = ‘finder/patient_find.php’;
$GLOBALS[‘disable_bottom_pane’] = true;

// Theme definition:
if ($GLOBALS[‘concurrent_layout’]) {
}}}

And to further the conversation, heres one of those patches:
please forgive me if cutting and pasting eats the formatting.

— openemr-old/interface/main/left_nav.php     2009-06-23 03:11:24.000000000 +0100
+++ openemr/interface/main/left_nav.php 2009-06-21 18:50:21.000000000 +0100
@@ -651,7 +651,7 @@
   </td>
   <td class=‘smalltext’ align=‘right’ nowrap>
    <b><?php xl(‘Bot’,‘e’) ?></b>
-   <input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php if (empty($GLOBALS[‘athletic_team’])) echo ‘checked ‘; ?>/>
+   <input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php if (empty($GLOBALS[‘athletic_team’]) && empty($GLOBALS[‘disable_bottom_pane’])) echo ‘checked ‘; ?>/>
   </td>
  </tr>
</table>
@@ -936,7 +936,7 @@
       <input type=‘checkbox’ name=‘cb_top’ onclick=‘toggleFrame(1)’ checked /><b><?php xl(‘Top’,‘e’) ?></b>
      </td>
      <td class=‘smalltext’ align=‘right’ nowrap>
-      <b><?php xl(‘Bot’,‘e’) ?></b><input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ checked />
+      <b><?php xl(‘Bot’,‘e’) ?></b><input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php $GLOBALS[‘disable_bottom_pane’]?"":checked ?> />
      </td>
     </tr>
    </table>
— openemr-old/interface/main/main_screen.php  2009-06-19 20:08:57.000000000 +0100
+++ openemr/interface/main/main_screen.php      2009-06-21 21:31:49.000000000 +0100
@@ -47,7 +47,7 @@
    <frame src=‘daemon_frame.php’ name=‘Daemon’ scrolling=‘no’ frameborder=‘0’
     border=‘0’ framespacing=‘0’ />
   </frameset>
-<?php if (empty($GLOBALS[‘athletic_team’])) { ?>
+<?php if (empty($GLOBALS[‘athletic_team’]) && empty($GLOBALS[‘disable_bottom_pane’])) { ?>
   <frameset rows=‘60%,*’ id=‘fsright’ bordercolor=’#999999’ frameborder=‘1’>
<?php } else { ?>
   <frameset rows=‘100%,*’ id=‘fsright’ bordercolor=’#999999’ frameborder=‘1’>

With these two patches setting $GLOBALS[‘disable_bottom_pane’] will result in the bottom frame not being visible by default, the the ‘bot’ check box on the navigation frame will not be checked.

This is just a simple patch, to test using this forum for patch posting. i have ~18 patches in my queue, of which these are the two smallest. :wink:

omo66 wrote on Wednesday, June 24, 2009:

Is there an easy way to make only one frame display e.g the top frame when a form is opened (e.g SOAP).
This will allow bigger screen for processing this form.
I thought that an IF statement inside main_screen.php should examine the request before displaying both frames…
Any one could give me some directions

Thanks