From 5d62523a16bf937bb052f7e0265a941b99d3aae1 Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Fri, 4 Nov 2005 23:56:56 +0000 Subject: [PATCH] added referral interface --- custom/refer.php | 43 +++++++++++++++++++++++++++ custom/refercare.php | 55 +++++++++++++++++++++++++++++++++++ interface/globals.php | 8 ++--- interface/patient_file/navigation.php | 7 +++++ 4 files changed, 109 insertions(+), 4 deletions(-) create mode 100644 custom/refer.php create mode 100644 custom/refercare.php diff --git a/custom/refer.php b/custom/refer.php new file mode 100644 index 000000000..b7f815261 --- /dev/null +++ b/custom/refer.php @@ -0,0 +1,43 @@ + + // + // This program is free software; you can redistribute it and/or + // modify it under the terms of the GNU General Public License + // as published by the Free Software Foundation; either version 2 + // of the License, or (at your option) any later version. + + include_once("../interface/globals.php"); +?> + + +Referrals + + +
+

Referrals

+
+ +

This is a placeholder for a script that will initiate a new referral +using a referral management system. Currently we know of one such system, +ReferCare.org™, which is a +web-based subscription service.

+ +

If you subscribe to ReferCare, then simply replace the file +custom/refer.php in the OpenEMR installation directory with the file +custom/refercare.php, and you will then be able to initiate referrals +from within OpenEMR.

+ +

If you wish to use some other referral management system, then replace +custom/refer.php with a suitable interface to that system.

+ +

If your practice never initiates referrals, then you may wish to delete +the file custom/refer.php so that the Refer option will no longer appear.

+ +
+
+

+
+
+ + + diff --git a/custom/refercare.php b/custom/refercare.php new file mode 100644 index 000000000..353b69924 --- /dev/null +++ b/custom/refercare.php @@ -0,0 +1,55 @@ + + // + // This program is free software; you can redistribute it and/or + // modify it under the terms of the GNU General Public License + // as published by the Free Software Foundation; either version 2 + // of the License, or (at your option) any later version. + + ///////////////////////////////////////////////////////////////////// + // This program invokes ReferCare to create a new referral. + ///////////////////////////////////////////////////////////////////// + + include_once("../interface/globals.php"); + // include_once("../library/patient.inc"); + + // This mess gets all the info for the patient. + // + $query = "SELECT * FROM patient_data WHERE pid = '$pid' LIMIT 1"; + $row = sqlFetchArray(sqlStatement($query)); + + $phone = ""; + if ($row['phone_home']) { + $phone .= "Home: " . $row['phone_home']; + } + if ($row['phone_biz']) { + if ($phone) $phone .= "; "; + $phone .= "Work: " . $row['phone_biz']; + } + if ($row['phone_cell']) { + if ($phone) $phone .= "; "; + $phone .= "Cell: " . $row['phone_cell']; + } + if ($row['phone_contact']) { + if ($phone) $phone .= "; "; + $phone .= "Contact: " . $row['phone_contact']; + } + + $rcurl = "https://www.refercare.org/edit_referral.php?chart=$pid"; + $rcurl .= "&lastname=" . htmlentities(trim($row['lname']), ENT_QUOTES); + $rcurl .= "&firstname=" . htmlentities(trim($row['fname']), ENT_QUOTES); + $rcurl .= "&ssn=" . htmlentities(trim($row['ss']) , ENT_QUOTES); + $rcurl .= "&dob=" . htmlentities(trim($row['DOB']) , ENT_QUOTES); + $rcurl .= "&contactinfo=" . htmlentities(trim($phone) , ENT_QUOTES); +?> + + + +Create a Referral + + + + + diff --git a/interface/globals.php b/interface/globals.php index 3b8ee27ca..5e6688d96 100644 --- a/interface/globals.php +++ b/interface/globals.php @@ -90,10 +90,10 @@ else { //Version tags $v_major = '2'; -$v_minor = '7'; -$v_patch = '3'; +$v_minor = '8'; +$v_patch = '0'; -$tag = '-rc1'; // release candidate +$tag = '-rc2'; // release candidate, e.g. '-rc1' $openemr_version = "$v_major.$v_minor.$v_patch".$tag; // Version tag used by program @@ -106,7 +106,7 @@ $GLOBALS['rootdir'] = $rootdir; //change these to reflect when the daily view should start to display times //as well as it should end. ex schedule_start = 9 schedule_end = 17 // start end times in hours -$GLOBALS['schedule_start'] = 9; +$GLOBALS['schedule_start'] = 8; $GLOBALS['schedule_end'] = 17; // the interval in minutes that the day calendar will display $GLOBALS['calendar_interval'] =15; diff --git a/interface/patient_file/navigation.php b/interface/patient_file/navigation.php index 9d31e00e6..0d3462c2d 100644 --- a/interface/patient_file/navigation.php +++ b/interface/patient_file/navigation.php @@ -22,6 +22,10 @@ function selpopup(selobj) { width = 500; height = 400; } + else if (opt.text == 'Refer') { + width = 700; + height = 500; + } dlgopen(opt.value, '_blank', width, height); } selobj.selectedIndex = 0; @@ -69,6 +73,9 @@ function selpopup(selobj) { + + + -- 2.11.4.GIT