SSN compare fails between Demo and Ins Data

tmccormi wrote on Friday, May 18, 2012:

We have discovered a issue, we think primarily with older data conversions that causes the compare between SSN in the patient_data record and the insurance_data record.   The issue seems to be trailing spaces.    I have made a minor change that seems to fix it, but there may be a better approach that covers more ground.   Essentially I just trim the subscriber_ssn to remove the trailing space before the compare.  See code below.     If their are suggestions let me know, otherwise I’ll commit this minor fix.
-Tony

diff -git a/interface/patient_file/summary/demographics_full.php b/interface/patient_file/summary/demographics_

index 4360042..5976e67 100644
--- a/interface/patient_file/summary/demographics_full.php
+++ b/interface/patient_file/summary/demographics_full.php
@@ -611,7 +611,7 @@ $group_seq=0; // this gives the DIV blocks unique IDs
                        <tr>
                                <td class=leftborder><span class=bold><?php xl('S.S.','e'); ?> </span></td>
                                <td class=required>:</td>
-                               <td><input type=entry size=11 name=i<?php echo $i?>subscriber_ss value="<?php ec
+                               <td><input type=entry size=11 name=i<?php echo $i?>subscriber_ss value="<?php ec
                        </tr>
 
                        <tr>

tmccormi wrote on Friday, May 18, 2012:

Hmm…  text was too long for this dumb forum tool…  try this

-                               <td><input type=entry size=11 name=i<?php echo $i?>subscriber_ss value="<?php echo $result3{“subscriber_ss”}?>"></td>
+                               <td><input type=entry size=11 name=i<?php echo $i?>subscriber_ss value="<?php echo trim($result3{“subscriber_ss”})?>"></td>

bradymiller wrote on Friday, May 18, 2012:

Hi Tony,
looks good to me.
-brady

tmccormi wrote on Monday, May 21, 2012:

This has been push to the main line as well as another minor fix to a report that wasn’t working at all…

a3b089b Fix SSN compare between demographics and insurance info
M       interface/patient_file/summary/demographics_full.php

694e049 Fix Services By Catg Report, was not running at all
M       interface/reports/services_by_category.php