diff --git a/interface/globals.php b/interface/globals.php index 09b2c69399e..bc89e626570 100644 --- a/interface/globals.php +++ b/interface/globals.php @@ -312,7 +312,7 @@ function undoMagicQuotes($array, $topLevel=true) { // The height in pixels of the Navigation bar: $GLOBALS['navBarHeight'] = 22; // The height in pixels of the Title bar: -$GLOBALS['titleBarHeight'] = 20; +$GLOBALS['titleBarHeight'] = 40; // The assistant word, MORE printed next to titles that can be clicked: // Note this label gets translated here via the xl function diff --git a/interface/main/left_nav.php b/interface/main/left_nav.php index b14223cbe5b..ff9f93e7c87 100644 --- a/interface/main/left_nav.php +++ b/interface/main/left_nav.php @@ -549,7 +549,7 @@ function reloadEncounter(frname) { // of the frame that the call came from, so we know to only reload content // from the *other* frame if it is patient-specific. function setPatient(pname, pid, pubpid, frname, str_dob) { - var str = '' + pname + ' (' + pubpid + ')'; + var str = '' + pname + ' (' + pubpid + ')
'; setDivContent('current_patient', str); setTitleContent('current_patient', str + str_dob); if (pid == active_pid) return; diff --git a/interface/main/main_title.php b/interface/main/main_title.php index db39e6bdc23..394ea758888 100644 --- a/interface/main/main_title.php +++ b/interface/main/main_title.php @@ -61,7 +61,7 @@ function toencounter(rawdata) { @@ -72,19 +72,18 @@ function toencounter(rawdata) {
-
 |  -  |  +
+ + ()
- -
- - () +
+ +
-
diff --git a/interface/patient_file/summary/demographics.php b/interface/patient_file/summary/demographics.php index 0080deef4c2..f4f8c3d02e7 100644 --- a/interface/patient_file/summary/demographics.php +++ b/interface/patient_file/summary/demographics.php @@ -196,7 +196,7 @@ function toggleIndicator(target,div) { }); // special size for - $(".image_view_modal").fancybox( { + $("#image_view_modal").fancybox( { 'overlayOpacity' : 0.0, 'showCloseButton' : true, 'centerOnScroll' : false, @@ -221,6 +221,12 @@ function toggleIndicator(target,div) {    " . htmlspecialchars(xl('Balance Due'),ENT_NOQUOTES) . ": " . htmlspecialchars(oeFormatMoney(get_patient_balance($pid)),ENT_NOQUOTES) . - "
"; + ""; + if ($result3['provider']) { // Use provider in case there is an ins record w/ unassigned insco + echo '  ' . htmlspecialchars(xl('Primary Ins'),ENT_NOQUOTES) . ': ' . htmlspecialchars($insco_name,ENT_QUOTES); + if ($result3['copay'] > 0) { + echo '  ' . htmlspecialchars(xl('Copay'),ENT_NOQUOTES) . ': ' . htmlspecialchars($result3['copay'],ENT_QUOTES); + } + echo '  ' . htmlspecialchars(xl('Eff Date'),ENT_NOQUOTES) . ': ' . htmlspecialchars(oeFormatShortDate($result3['effdate'],ENT_QUOTES)); + } + echo "
"; if ($result['genericname2'] == 'Billing') { htmlspecialchars(xl('Billing Note'),ENT_NOQUOTES) . ":"; echo "" . @@ -616,14 +630,18 @@ function toggleIndicator(target,div) { if (preg_match('/\.pdf$/i',$image_file)) { echo "" . - xl("Click for ID card") . "
"; + " onclick='top.restoreSession()' class='css_button_small'>" . + "" . + htmlspecialchars( xl("View"), ENT_QUOTES )."  " . htmlspecialchars( xl("PDF of Patient ID Card"), ENT_QUOTES ) . + "

"; } else { // image file type(s) std list png, jpg, etc... echo "" . - xl("Click to View ID card") . "
"; + " onclick='top.restoreSession()' class='css_button_small' id='image_view_modal'>" . + "" . + htmlspecialchars( xl("View"), ENT_QUOTES )."  " . htmlspecialchars( xl("Patient ID Card"), ENT_QUOTES ) . + "

"; } } diff --git a/interface/patient_file/summary/demographics_full.php b/interface/patient_file/summary/demographics_full.php index d8d05d9c185..72760f792d6 100644 --- a/interface/patient_file/summary/demographics_full.php +++ b/interface/patient_file/summary/demographics_full.php @@ -65,16 +65,23 @@ + - @@ -412,7 +417,7 @@ function end_group() { $result3 = $insurance_info[$i]; ?> -
+
@@ -426,9 +431,9 @@ function end_group() {
: - - - + + + - - - - - - @@ -554,6 +551,14 @@ function end_group() { () + + + + + + diff --git a/interface/practice/ins_list.php b/interface/practice/ins_list.php index c4da67a3782..bdedaba503d 100644 --- a/interface/practice/ins_list.php +++ b/interface/practice/ins_list.php @@ -75,12 +75,9 @@ function addwhere($where, $colname, $value) { // This is invoked when an insurance company name is clicked. function setins(ins_id, ins_name) { - if (opener.closed || ! opener.set_insurance) - alert('The parent window was closed; I cannot apply your selection.'); - else - opener.set_insurance(ins_id, ins_name); - window.close(); - return false; + parent.set_insurance(ins_id, ins_name); + parent.$.fn.fancybox.close(); + return false; } diff --git a/interface/practice/ins_search.php b/interface/practice/ins_search.php index 6accb04a338..47aa4c4112e 100644 --- a/interface/practice/ins_search.php +++ b/interface/practice/ins_search.php @@ -63,10 +63,20 @@ +\n"; exit(); } @@ -208,6 +225,8 @@ function validate(f) { "SELECT id, name FROM x12_partners ORDER BY name" ); ?> +
+
@@ -341,10 +360,15 @@ class='search' title='Identifier assigned by CMS' />   ' name='form_save' onmousedown='save_clicked=true' />   -' onclick='window.close()' /> +' onclick='parent.$.fn.fancybox.close();'/>

+
+ +
+
+ diff --git a/interface/themes/style_default.css b/interface/themes/style_default.css index 44fbd949087..9c63bbaf4fe 100644 --- a/interface/themes/style_default.css +++ b/interface/themes/style_default.css @@ -177,7 +177,7 @@ a:hover { .bottom_line { background: url('../pic/aquabg.gif') repeat; } /* $GLOBALS['style']['BOTTOM_BG_LINE'] */ .logobar { background-color: #24262c; height: 110px; } /* $GLOBALS['logoBarHeight'] */ .navbar { height: 22px; } /* $GLOBALS['navBarHeight'] */ -.titlebar { height: 20px; } /* $GLOBALS['titleBarHeight'] */ +.titlebar { height: 40px; } /* $GLOBALS['titleBarHeight'] */ /* style taken out of the addressbook code and put here instead */ diff --git a/library/patient.inc b/library/patient.inc index bde358d3cd1..e970cdeba58 100644 --- a/library/patient.inc +++ b/library/patient.inc @@ -37,6 +37,14 @@ function getLanguages() { return $returnval; } +function getInsuranceProvider($ins_id) { + + $sql = "select name from insurance_companies where id=?"; + $row = sqlQuery($sql,array($ins_id)); + return $row['name']; + +} + function getInsuranceProviders() { $returnval = array();
:subscriber_fname value="" onchange="capitalizeMe(this);" /> - subscriber_mname value="" onchange="capitalizeMe(this);" /> - subscriber_lname value="" onchange="capitalizeMe(this);" />
:
:subscriber_fname value="" onchange="capitalizeMe(this);" /> + subscriber_mname value="" onchange="capitalizeMe(this);" /> + subscriber_lname value="" onchange="capitalizeMe(this);" />
: