4482. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:41 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

4482.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:41 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\webapp\WEB-INF\web expiringConsentReport.jsp Fri Apr 21 20:15:58 2017 UTC

4482.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 295
Removed 0 0

4482.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

4482.4 Active regular expressions

No regular expressions were active.

4482.5 Comparison detail

        1   <%@taglib  tagdir="/W EB-INF/tag s/formatti ng" prefix ="f" %>
        2   <%@page im port="java .util.Hash Map"%>
        3   <%@page im port="gov. va.nvap.sv c.facility .data.Faci lity"%>
        4   <%@taglib  uri="http: //java.sun .com/jsp/j stl/core"  prefix="c" %>
        5   <%@taglib  uri="http: //java.sun .com/jsp/j stl/fmt" p refix="fmt "%>
        6   <%@taglib  uri="http: //java.sun .com/jsp/j stl/functi ons" prefi x="fn"%>
        7   <%@taglib  tagdir="/W EB-INF/tag s/cpp" pre fix="cpp"% >
        8  
        9   <%
        10       HashMa p tips = ( HashMap) s ession.get Attribute( "descripto rs");
        11       String  facilityF ilterToolt ip = (Stri ng) tips.g et("authen ticatingFa cilityFiel d");
        12       Facili ty default UserFacili ty = (Faci lity) sess ion.getAtt ribute("de faultUserF acility");
        13       String  defaultUs erFacility Name = def aultUserFa cility ==  null ? ""  : defaultU serFacilit y.getFacil ityName();
        14       String  defaultUs erFacility Station =  defaultUse rFacility  == null ?  "" : defau ltUserFaci lity.getFa cilityStat ion();
        15       pageCo ntext.setA ttribute(" facilityFi lterToolti p", facili tyFilterTo oltip);
        16       pageCo ntext.setA ttribute(" defaultUse rFacility" , defaultU serFacilit y);
        17       pageCo ntext.setA ttribute(" defaultUse rFacilityN ame", defa ultUserFac ilityName) ;
        18       pageCo ntext.setA ttribute(" defaultUse rFacilityS tation", d efaultUser FacilitySt ation);
        19   %>
        20  
        21   <f:mainTem plate head erText="Ex piring Con sent Repor t">
        22       <scrip t type="te xt/javascr ipt">
        23           $( document). ready(func tion () {
        24                $("#star tDate").da tepicker({
        25                    date Format: 'm m/dd/yy',
        26                    onCl ose: funct ion (selec tedDate) {
        27                         $("#endDat e").datepi cker("opti on", "minD ate", sele ctedDate);
        28                    }
        29                });
        30  
        31                $("#endD ate").date picker({
        32                    date Format: 'm m/dd/yy',
        33                    onCl ose: funct ion (selec tedDate) {
        34                         $("#startD ate").date picker("op tion", "ma xDate", se lectedDate );
        35                    }
        36                });
        37  
        38                setProce ssingForDa taTable('r eportTable ');
        39  
        40                reportTa ble = $('# reportTabl e').DataTa ble({
        41                    defe rLoading:  0,
        42                    dest roy: true,
        43                    ajax :{
        44                         url: const ructUrl('d oSearch'),
        45                         dataSrc: f unction(js on){
        46                             $('#to talRows'). val(json.r owTotalFor Letters);
        47                             $('#ex piredNotif icationLet tersMaxTim e').val(js on.expired Notificati onLettersM axTime);
        48                             $('#ex piredNotif icationPer LetterTime ').val(jso n.expiredN otificatio nPerLetter Time);
        49  
        50                             //chan ge button  availabili ty based o n displaye d table
        51                             if($(' #consentTy peName').v al() === ' NwHIN Auth orization'  && $.trim (json.oneS tationRequ ested) ===  'true' &&  json.rowT otalForLet ters > 0){
        52                                 $( '#download Button').p rop('disab led', fals e);
        53                                 $( '#download Button').p rop('title ', 'Downlo ad Patient  Notificat ion Letter s');
        54                             } else  if ($('#c onsentType Name').val () !== 'Nw HIN Author ization' & & $.trim(j son.oneSta tionReques ted) === ' true'){
        55                                 $( '#download Button').p rop('disab led', true );
        56                                 $( '#download Button').p rop('title ', 'Please  filter by  only eHea lth Exchan ge Authori zations to  enable PD F generati on');
        57                             } else  {
        58                                 $( '#download Button').p rop('disab led', true );
        59                                 $( '#download Button').p rop('title ', 'Please  filter by  exactly o ne facilit y to enabl e PDF gene ration');
        60                             }
        61                             return  json.data ;
        62                         }
        63                    },
        64                    dom:  'liptipr' ,
        65                    serv erSide: tr ue,
        66                    proc essing: tr ue,
        67                    sear ching: fal se,
        68                    lang uage: {
        69                         emptyTable : "No reco rds found" ,
        70                         loadingRec ords: ""
        71                    },
        72                    leng thMenu: [  10, 25, 50 , 100, 250 , 500 ],
        73                    colu mnDefs: [
        74                         {
        75                             target s: 0,
        76                             data:  null,
        77                             render : function (data,type ,full,meta ){
        78                                 re turn '<a h ref="#/" o nclick="li nkToPatien t(\''+data [9]+'\', \ ''+data[1] +'\', \''+ data[2]+'\ ');">'+dat a[0]+'</a> ';
        79                             }
        80                         },
        81                         {className : "vap-col -min-80 dt -head-cent er", targe ts: 0},
        82                         {className : "vap-col -min-200 d t-head-cen ter", targ ets: [6,8] },
        83                         {className : "dt-head -center",  targets: [ 1,2,3,4,5, 7]}
        84                    ],
        85                    page Length: 25 ,
        86                    scro llX:true,
        87                    init Complete:  function() {
        88                         // Enable  THEAD scro ll bars
        89                         $('.dataTa bles_scrol lHead').cs s('overflo w', 'auto' );
        90  
        91                         // Sync TH EAD scroll ing with T BODY
        92                         $('.dataTa bles_scrol lHead').on ('scroll',  function  () {
        93                             $('.da taTables_s crollBody' ).scrollLe ft($(this) .scrollLef t());
        94                         });
        95                    },
        96                    orde r: [[4, "d esc"]]
        97                 });
        98  
        99                // DataT able overr ides
        100                $.fn.dat aTable.ext .errMode =  'none';
        101  
        102                reportTa ble.on('dr aw', funct ion () {
        103                    addA riaToDataT able('repo rtTable',  reportTabl e);
        104                });
        105  
        106                function  downloadL etters(){
        107                    var  url = cons tructUrl(" download") ;
        108                    //ad d extra pa rameters
        109                    url  = url + '& totalRows= ' + $('#to talRows'). val() +
        110                             '&expi redNotific ationLette rsMaxTime= ' + $('#ex piredNotif icationLet tersMaxTim e').val()  +
        111                             '&expi redNotific ationPerLe tterTime='  + $('#exp iredNotifi cationPerL etterTime' ).val();
        112                    retu rn url;
        113                }
        114  
        115                $('#down loadButton ').on('cli ck', funct ion () {
        116                    $('# download-p atient-let ters-alert ').dialog( {
        117                         resizable:  false,
        118                         height: "a uto",
        119                         width: 400 ,
        120                         modal: tru e,
        121                         open: func tion(event , ui) {
        122                             $('#do wnload-pat ient-lette rs-alert') .show();
        123                         },
        124                         buttons: {
        125                             "Downl oad": func tion() {
        126                                 wi ndow.locat ion.replac e(download Letters()) ;
        127  
        128                                 $( this).dial og("close" );
        129                             },
        130                             Cancel : function () {
        131                                 $( this).dial og("close" );
        132                             }
        133                         }
        134                    });
        135                });
        136  
        137                $('#sear chButton') .on('click ', functio n () {
        138                    var  startDate  = $('#star tDate').va l();
        139                    var  endDate =  $('#endDat e').val();
        140  
        141                    var  errorMessa ge = valid ateStartAn dEndDate(s tartDate,  endDate, t rue);
        142  
        143                    if ( errorMessa ge != '')
        144                    {
        145                         //we have  an error s o show the  error, an d then don 't send th e ajax req uest
        146                         $('#errorM essage').h tml(errorM essage);
        147                         $('#errorM essage').s how();
        148  
        149                         return fal se;
        150                    } el se {
        151                         //no error , let's ma ke the cal l to popul ate the re port
        152                         $('#result s').show() ;
        153                         reportTabl e.ajax.url (construct Url('doSea rch')).loa d();
        154                    }
        155                });
        156  
        157                $('#star tDate,#end Date').on( 'change',  function ( ) {
        158                    //if  either da te changes , hide the  error mes sage if it s not alre ady hidden
        159                    $('# errorMessa ge').hide( );
        160                });
        161  
        162                $('#resu lts').hide ();
        163           }) ;
        164  
        165           fu nction che ckDayRange (form) {
        166                // Does  not check  for invali d month or  day numbe r
        167                var star tDate = do cument.get ElementsBy Name("star tDate")[0] .value;
        168                if (!/^\ d{2}\/\d{2 }\/\d{4}/. test(start Date)) {
        169                    wind ow.alert(" Start Date  must be i n format:  mm/dd/yyyy ");
        170                    retu rn false;
        171                }
        172  
        173                var endD ate = docu ment.getEl ementsByNa me("endDat e")[0].val ue;
        174                if (!/^\ d{2}\/\d{2 }\/\d{4}/. test(endDa te)) {
        175                    wind ow.alert(" End Date m ust be in  format: mm /dd/yyyy") ;
        176                    retu rn false;
        177                } else {
        178                    retu rn doSubmi t(form);
        179                }
        180           };
        181  
        182           co nstructUrl  = functio n(methodNa me){
        183                var url  = 'Expirin gConsentRe port.do_se c?' + meth odName +'= true' +
        184                    '&st artDate='  + $('#star tDate').va l() +
        185                    '&en dDate=' +  $('#endDat e').val()  +
        186                    '&en teredBy='  + $('#ente redBy').va l() +
        187                    '&pa tientTypes =' + $('#p atientType s').val()  +
        188                    '&st ationNumbe rs=' + fac ilitiesDia log.getSel ectedStati onNumbers( ) +
        189                    '&co nsentTypeN ame=' + $( '#consentT ypeName'). val() +
        190                    '&in cludeUnkno wnVisn=' +  facilitie sDialog.ge tIncludeUn knownVisn( ) +
        191                    '&so rtBy=' + $ ('#reportT able').dat aTable().f nSettings( ).aaSortin g[0][0] +
        192                    '&so rtOrder='  + $('#repo rtTable'). dataTable( ).fnSettin gs().aaSor ting[0][1] ;
        193  
        194                if (meth odName ===  'exportTo Csv' || me thodName = == 'export ToExcel')  {
        195                    url  = url + '& totalRows= ' + report Table.page .info().re cordsTotal ;
        196                }
        197  
        198                return u rl;
        199           };
        200       </scri pt>
        201  
        202       <div c lass="well ">
        203           Fi ll in the  fields bel ow to narr ow your se arch.
        204       </div>
        205  
        206       <cpp:e rrors />
        207  
        208       <div c lass="form -container ">
        209           <f orm name=" expiringCo nsentRepor tForm" act ion="Expir ingConsent Report.do_ sec" metho d="POST" o nsubmit="r eturn chec kDayRange( this)">
        210                <fieldse t>
        211                    <leg end>Search  Details</ legend>
        212                    <div  id="error Message" c lass="bg-w arning pad -15" style ="display:  none;"></ div>
        213                    <div  class="wi dth-450 pa d-top-10"  id="dateTi p" data-to oltip="<c: out value= "${descrip tors['star tDateEndDa teField']} "/>">
        214                         <div>
        215                             <label  for="star tDate">Sta rt Date</l abel>
        216                             <input  title="En ter the st art date f or the exp iring cons ent report ." id="sta rtDate" na me="startD ate" type= "text" max length="10 " value="< c:out valu e="${start DateString }" />" siz e="10"> <i >mm/dd/yyy y</i>
        217                         </div>
        218                         <div>
        219                             <label  for="endD ate">End D ate</label >
        220                             <input  title="En ter the en d date for  the expir ing consen t report."  id="endDa te" name=" endDate" t ype="text"  maxlength ="10" valu e="<c:out  value="${e ndDateStri ng}" />" s ize="10">  <i>mm/dd/y yyy</i>
        221                         </div>
        222                    </di v>
        223                    <jsp :include p age="repor ting/commo n/faciliti esFilter.j sp">
        224                         <jsp:param  name="def aultUserFa cility" va lue="${def aultUserFa cility}" / >
        225                         <jsp:param  name="def aultUserFa cilityName " value="$ {defaultUs erFacility Name}" />
        226                         <jsp:param  name="def aultUserFa cilityStat ion" value ="${defaul tUserFacil ityStation }" />
        227                         <jsp:param  name="fac ilityFilte rTooltip"  value="${f acilityFil terTooltip }" />
        228                    </js p:include>
        229                    <div >
        230                         <label for ="consentT ypeName">C onsent Typ e<span sty le="displa y:none;">" Query base d on conse nt type fr om the dro pdown list "</span></ label>
        231                         <select id ="consentT ypeName" n ame="conse ntTypeName " data-too ltip="<c:o ut value=" ${descript ors['conse ntTypeFiel d']}"/>">
        232                             <optio n value=""  selected> ALL Author izations</ option>
        233                             <optio n value="N wHIN Autho rization"> <c:out val ue="${orga nizationNa me}" /> Au thorizatio ns</option >
        234                             <optio n value="S SA Authori zation">SS A Authoriz ations</op tion>
        235                         </select>
        236                    </di v>
        237                    <div >
        238                         <label for ="enteredB y">Entered  By<span s tyle="disp lay:none;" >"Query ba sed on who m entered  informatio n from the  dropdown  list"</spa n></label>
        239                         <select id ="enteredB y" name="e nteredBy"  data-toolt ip="<c:out  value="${ descriptor s['entered ByField']} "/>">
        240                             <optio n value=""  selected> ALL</optio n>
        241                             <optio n value="e Benefits"> eBenefits< /option>
        242                             <optio n value="e mployee">E mployee</o ption>
        243                         </select>
        244                    </di v>
        245                    <div >
        246                         <label for ="patientT ypes">Pati ent Types< span style ="display: none;">"Ch oose wheth er you wou ld like to  filter by  real pati ents only,  test pati ents only,  or both." </span></l abel>
        247                         <select id ="patientT ypes" name ="patientT ypes" data -tooltip=" <c:out val ue="${desc riptors['p atientType sField']}" />">
        248                             <optio n value="3 ">ALL</opt ion>
        249                             <optio n value="1 " selected >Real Pati ents</opti on>
        250                             <optio n value="2 ">Test Pat ients</opt ion>
        251                         </select>
        252                    </di v>
        253                </fields et>
        254           </ form>
        255           <d iv>
        256                <input n ame="searc h" title=" Search" cl ass="butto n" type="s ubmit" val ue="Search " id="sear chButton"  />
        257           </ div>
        258       </div>
        259       <div i d="results ">
        260       <div a lign="righ t" class=" pad-top-5" >
        261           <f orm style= "display:  inline-blo ck;">
        262                <input t ype="hidde n" name="t otalRows"  id="totalR ows" value ="">
        263                <input t ype="hidde n" name="e xpiredNoti ficationLe ttersMaxTi me" id="ex piredNotif icationLet tersMaxTim e" value=" ">
        264                <input t ype="hidde n" name="e xpiredNoti ficationPe rLetterTim e" id="exp iredNotifi cationPerL etterTime"  value="">
        265           </ form>
        266           <i nput id="d ownloadBut ton" name= "download"  title="Do wnload Pat ient Notif ication Le tters" cla ss="button " type="bu tton" valu e="Downloa d Patient  Notificati on Letters " disabled  />
        267           <i nput id="e xcelButton " name="ex celButton"  class="bu tton" type ="submit"  value="Exp ort To Exc el" />
        268           <i nput id="c svButton"  name="csvB utton" cla ss="button " type="su bmit" valu e="Export  To CSV" />
        269       </div>
        270       <div i d="divRepo rtContent" >
        271           <% @include f ile="patie ntLinkForm .jsp"%>
        272           <t able id="r eportTable " class="d isplay" wi dth="100%"  cellspaci ng="0" rol e="present ation">
        273                <thead>
        274                    <tr  role="row" >
        275                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['ssnColu mn']}"/>"  id="ssnHea der">SSN</ span></th>
        276                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['lastNam eColumn']} "/>" id="l astNameHea der">Patie nt Last Na me</span>< /th>
        277                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['firstNa meColumn'] }"/>" id=" firstNameH eader">Pat ient First  Name</spa n></th>
        278                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['middleN ameColumn' ]}"/>" id= "middleNam eHeader">P atient Mid dle Name</ span></th>
        279                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['optInDa teColumn'] }"/>" id=" optInDateH eader">Opt  In Date</ span></th>
        280                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['expirat ionDateCol umn']}"/>"  id="expDa teHeader"> Expiration  Date</spa n></th>
        281                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['expirin gConsentDe tailedRepo rtConsentT ypeColumn' ]}"/>" id= "consentTy peHeader"> Consent Ty pe</span>< /th>
        282                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['entered ByManualOr SystemColu mn']}"/>"  id="entere dByHeader" >Entered B y</span></ th>
        283                         <th role=" columnhead er"><span  data-toolt ip="<c:out  value="${ descriptor s['authent icatingFac ilityColum n']}"/>" d ata-toolti p-position ="left" id ="authFaci lityHeader ">Authenti cating Fac ility</spa n></th>
        284                    </tr >
        285                </thead>
        286           </ table>
        287       </div>
        288       </div>
        289       <!-- m odal div f or downloa d letter a lert -->
        290       <div i d="downloa d-patient- letters-al ert" style ="display:  none;" ti tle="Downl oad Notice ">
        291           <p >
        292                It may t ake up to  a second p er record  to generat e patient  notificati on letters . Do you w ish to con tinue?
        293           </ p>
        294       </div>
        295   </f:mainTe mplate>