ytiddo wrote on Thursday, August 20, 2009:
I’m adding the following patches to the tracker for review.
001-interface_main_main_screen.php-make_default_top_pane_selectable.patch
This patch adds the ability for a user to select what content shows by default in the top pane of openemr. the file to be displayed must be in the interface/main/ directory, and is configured by adding a line in interface/globals.php as follows:
$GLOBALS[‘default_top_pane’] = ‘finder/patient_find.php’;
the default behavior when no configuration has been specified is to load the calendar, as normal.
002-interface_main_left_nav.php-disable_calendar.patch
this patch disables calendar related entries on the collapsable menu on the left hand side when calendars have been disabled in interface/globals.php, by adding the following line:
$GLOBALS[‘disable_calendar’] = true;
by default, the calendar links are left alone.
003-interface_main_left_nav.php-disable_chart_tracker_immunizations_and_prescriptions.patch
this patch disables the chart tracker, prescriptions, and immunization related links in the left hand navigation menu when the following configuration options are added to interface/globals.php:
$GLOBALS[‘disable_chart_tracker’] = true;
$GLOBALS[‘disable_immunizations’] = true;
$GLOBALS[‘disable_prescriptions’] = true;
by default, the entries are displayed unless the previous lines have been added.
04-coding.php-disable_prescriptions.patch
this patch disables prescriptions in the coding page, when the following
line is added to interface/globals.php:
$GLOBALS[‘disable_prescriptions’] = true;
by default, the prescription related entries are visible, unless the
previous line has been added.
005-interface_patient_file_summary_demographics.php-disable_calendar.patch
this patch disables links to the calendar in the demographics summary page, when the following line is added to interface/globals.php:
$GLOBALS[‘disable_calendar’] = true;
without that line, links to the calendar in the demographics summary page show up as normal.
007-interface_main_finder_patient_find.php-create_simple_find_form.patch
this patch adds a simple find form, that i use to replace the default calendar in the top pane. it requires only the configuration in the make_default_top_pane_selectable patch, and is based on an old version of the search function in the left_nav.php, before tony added more features to it.
015-interface_main_left_nav.php-disable_calendar.patch
this is more code to disable the calendar related links in the left navigation bar when the following line is added to interface/globals.php:
$GLOBALS[‘disable_calendar’] = true;
by default, the links are still visible.
020-interface_patient_file_summary_stats.php-disable_prescriptions_and_immunizations.patch
this patch disables prescription and immunization links on the patient stats page, when the following configuration options are added to interface/globals.php:
$GLOBALS[‘disable_immunizations’] = true;
$GLOBALS[‘disable_prescriptions’] = true;
without those lines, the links show up as normal.
I have more patches, but lets get started on this ‘new’(to me) integration procedure before diving into more controversial patches.
(for the record, in my first disable_calendar patch, i remove ippf_specific, and add disable_calendar in its place. I have talked with someone from the IPPF, and they were fine with me doing this)
Flame On.
Justin Doiel