20125. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 9:48:11 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.

20125.1 Files compared

# Location File Last Modified
1 JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLV\grails-app\assets\javascripts\view\widgets InterfaceStatusDialog.js Wed Mar 20 21:44:22 2019 UTC
2 JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLV\grails-app\assets\javascripts\view\widgets InterfaceStatusDialog.js Mon Apr 1 18:20:24 2019 UTC

20125.2 Comparison summary

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

20125.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

20125.4 Active regular expressions

No regular expressions were active.

20125.5 Comparison detail

  1   //= requir e lib/AppK it.js
  2  
  3  
  4  
  5   JLV.Interf aceStatusD ialog = Ap pKit.Dialo g.extend({
  6       initia lize: func tion (opti ons) {
  7  
  8           th is._super( options);
  9  
  10           JL V.Notifica tionCenter .addObserv erForNotif ication({
  11                name: 'c loseNotifi cation',
  12                observer : this,
  13                action:  'close'
  14           }) ;
  15  
  16  
  17       },
  18       render : function  (data, er rorList) {
  19  
  20           if  (!errorLi st) {
  21                errorLis t = [];
  22           }
  23  
  24           th is.$el.emp ty();
  25  
  26  
  27           // parse inte rface stat us by stat us value
  28           va r errorCon nection =  [],
  29                activeCo nnection =  [];
  30           _. each(data,  function  (item) {
  31                if (item  && item.s tatus && i tem.status .toUpperCa se().index Of('SUCCES S') < 0 &&  item.stat us.toUpper Case().ind exOf('AVAI LABLE') !=  0) {
  32                    erro rConnectio n.push(ite m);
  33                }
  34                else {
  35                    acti veConnecti on.push(it em);
  36                }
  37           }) ;
  38  
  39           // sort by su bstatus
  40           er rorConnect ion = _.so rtBy(error Connection , function  (o) {
  41                return - 1 * o.stat us.length;
  42           }) ;
  43  
  44           ac tiveConnec tion = _.s ortBy(acti veConnecti on, functi on (o) {
  45                return - 1 * o.stat us.length;
  46           }) ;
  47  
  48  
  49           if (JLV.Sessi on.dasVLER ){
  50                this.$el .append($( this._inte rfacePartn erMsg()));
  51           }
  52  
  53           // draw the e rrors
  54           if  (errorCon nection.le ngth > 0)  {
  55                this.$el .append($( this._inte rfaceError sMsg()));
  56                this.$el .append($( this._inte rfaceTable (errorConn ection, er rorList.le ngth > 0)) .addClass( 'error'));
  57  
  58  
  59                var self  = this;
  60                $('<a hr ef="#" cla ss="showIn terfacesBt n" >< Hide  All Activ e Interfac es</a>').o n('click',  function  () {
  61  
  62                    var  show = $(t his).data( 'show');
  63  
  64                    if ( !show) {
  65                         self.$el.f ind('.acti ve-interfa ces').remo ve();
  66                         $(this).ht ml("> Show  All Activ e Interfac es");
  67                         $(this).da ta('show',  true);
  68                    }
  69                    else  {
  70                         $(this).ht ml("< Hide  All Activ e Interfac es");
  71                         $(this).da ta('show',  false);
  72  
  73                         var active  = $('<div  class="ac tive-inter faces">');
  74                         // $(self. _interface DataSource s()).appen dTo(active );
  75                         $(self._in terfaceAct iveMsg()). appendTo(a ctive);
  76  
  77                         $(self._in terfaceTab le(activeC onnection,  false)).a ppendTo(ac tive);
  78  
  79                         self.$el.a ppend(acti ve);
  80  
  81                         self._init 508Readabl e();
  82                    }
  83  
  84                }).appen dTo(this.$ el);
  85  
  86                var acti ve = $('<d iv class=" active-int erfaces">' );
  87  
  88                // $(sel f._interfa ceDataSour ces()).app endTo(acti ve);
  89                $(self._ interfaceA ctiveMsg() ).appendTo (active);
  90                $(self._ interfaceT able(activ eConnectio n, false)) .appendTo( active);
  91  
  92                self.$el .append(ac tive);
  93           }
  94           el se {
  95                // this. $el.append ($(this._i nterfaceDa taSources( )));
  96                this.$el .append($( this._inte rfaceActiv eMsg()));
  97                this.$el .append($( this._inte rfaceTable (activeCon nection, f alse)));
  98           }
  99  
  100  
  101           th is.center( );
  102           th is.open();
  103  
  104           se tTimeout(_ .bind(func tion () {
  105  
  106                this.$el .find('.VA VLER-link  a').on('cl ick', func tion (e) {
  107  
  108                    e.st opPropagat ion();
  109  
  110                    var  html = '';
  111  
  112                    html  += "<div  aria-live= 'assertive '><p class ='jlv-scre enreader-t ext'>" +
  113                         "JLV was u nable to r etrieve co mmunity pa rtner docu ments for  this patie nt, from o ne or more  community  partners,  for one o r more of  the follow ing reason s:" +
  114                         "</p>" +
  115                         "<ul>" +
  116                         "<li class ='jlv-scre enreader-t ext'>The p artner req uires pati ent consen t to relea se their d ata and th e patient  has not ye t consente d on the p artner sid e</li>" +
  117                         "<li class ='jlv-scre enreader-t ext'>The p atient was  seen outs ide of the  dates tha t the part ner can pr ovide reco rds for</l i>" +
  118                         "<li class ='jlv-scre enreader-t ext'>VA ha s not yet  establishe d an ident ity correl ation for  the patien t with the  partner</ li>" +
  119                         "<li class ='jlv-scre enreader-t ext'>A sys tem issue  occurred w hich preve nted retri eval of do cuments fr om the par tner (coul d " +
  120                         "be techni cal issues  with the  partner, t he exchang e gateway,  network o r other fa ctors)</li >" +
  121                         "</ul>" +
  122                         "<p class= 'jlv-scree nreader-te xt'>For fu rther info rmation pl ease conta ct your lo cal VHIE C oordinator . If you n eed assist ance " +
  123                          "identifyi ng your lo cal contac t please e -mail <a  P I                                            ' class='j lv-VLER-em ail-link j lv-clickab le-link'> P I                              </a>" +
  124                         "</p></div >";
  125  
  126                    JLV. InterfaceS tatusDialo g.detailsP opover.htm l(html);
  127  
  128                    JLV. InterfaceS tatusDialo g.detailsP opover.css ({
  129                         width: 600 ,
  130                         maxWidth:  600,
  131                         left: ($(t his).offse t().left -
  132                             $(this ).outerWid th() / 2 +  12),
  133                         top: $(thi s).offset( ).top + 24
  134                    }).s how();
  135                });
  136  
  137                if (erro rList.leng th > 0) {
  138  
  139                    this .$el.find( '.dod-link  a').on('c lick', fun ction (e)  {
  140  
  141                         e.stopProp agation();
  142  
  143                         var html =  '<div cla ss="jlv-sc reenreader -text" ari a-live="as sertive">< b>Addition al Error D etails</b> ' +
  144                             '<ul c lass="erro rList jlv- screenread er-text">' ;
  145  
  146                         for (var e rr in erro rList) {
  147                             html + = "<li cla ss=\"jlv-s creenreade r-text\">< p class=\" jlv-screen reader-tex t\">" + er rorList[er r] + "</p> </li>";
  148                         }
  149  
  150                         html += "< /ul></div> ";
  151  
  152                         JLV.Interf aceStatusD ialog.deta ilsPopover .html(html );
  153  
  154                         JLV.Interf aceStatusD ialog.deta ilsPopover .css({
  155                             left:  ($(this).o ffset().le ft -
  156                                 $( this).oute rWidth() /  2 + 12),
  157                             top: $ (this).off set().top  + 24
  158                         }).show();
  159                    });
  160                }
  161  
  162           },  this), 0) ;
  163  
  164           th is._init50 8Readable( );
  165  
  166       },
  167  
  168       _inter faceActive Msg: funct ion () {
  169           re turn [
  170                '<div cl ass="jlv-i nterface-a ctive jlv- screenread er-text">' ,
  171                '<div><b >All Activ e Connecti ons</b></d iv>',
  172                '<p>Conn ections to  the sourc e systems  are succes sful. Succ essful sta tus',
  173                ' connec tions are  not an ind icator tha t clinical  data is b eing retur ned to the  widget fr om the sou rce system .</p>'
  174           ]. join('');
  175       },
  176  
  177       _inter faceErrors Msg: funct ion () {
  178           re turn [
  179                '<div cl ass="jlv-i nterface-e rrors jlv- screenread er-text">' ,
  180                '<div><i mg src="as sets/sysSt atusWarnin g.png" alt ="warning"  /><b>Conn ection Err ors</b></d iv>',
  181                '<p>Conn ections fr om the fol lowing sou rces are c urrently u navailable . Most ',
  182                'connect ion errors  resolve t hemselves  within a f ew hours.< /p>'
  183           ]. join('');
  184       },
  185       _inter facePartne rMsg: func tion () {
  186           re turn [
  187                '<div cl ass="jlv-i nterface-p artnerMsg  jlv-screen reader-tex t">',
  188                '<div>No t all Comm unity Data  may be av ailable, p lease refe r to the C ommunity H ealth Summ aries ',
  189                'and Doc uments wid get for fu ll source  documents. </div>'
  190           ]. join('');
  191       },
  192       _inter faceTable:  function  (connectio ns, isErro rTable) {
  193  
  194  
  195           va r html = [
  196                '<div cl ass="inter faces-tabl e">',
  197                '<table  class="jlv -screenrea der-text"> ',
  198                '<tr></t r><th>Sour ce</th><th >Name</th> <th>Status </th><th>D ata Domain </th></tr> ',
  199  
  200           ]. join('');
  201  
  202           fo r (var sou rce in con nections)  {
  203                var err  = connecti ons[source ];
  204                var sour ceText = " ";
  205  
  206                if(isErr orTable &&  err.sourc e === 'DOD '){
  207                    sour ceText = ' <div class ="dod-link "><a href= "#" class= "jlv-click able-link" >DOD</a></ div>';
  208                } else i f(err.sour ce === 'VA  Partner'  && err.sta tus !='SUC CESS'){
  209                    sour ceText = ' <div class ="VAVLER-l ink"><a hr ef="#" cla ss="jlv-cl ickable-li nk">VA Par tner</a></ div>';
  210                } else {
  211                    sour ceText = e rr.source;
  212                }
  213  
  214                html +=  [
  215                    '<tr >',
  216                    '<td >',
  217                    sour ceText,
  218                    '</t d>',
  219                    '<td >',
  220                    err. name.toUpp erCase(),
  221                    '</t d>',
  222                    '<td >',
  223                    err. status,
  224                    '</t d>',
  225                    '<td >',
  226                    err. domain,
  227                    '</t d>',
  228                    '</t r>'
  229                ].join(' ');
  230  
  231           }
  232  
  233  
  234           ht ml += '</t able></div >';
  235  
  236           re turn html;
  237       },
  238  
  239       _init5 08Readable : function  () {
  240           se tTimeout(f unction ()  {
  241  
  242                $('.jlv- screenread er-text'). each(funct ion (idx,  el) {
  243                    $(el ).attr({
  244                         'aria-labe l': $(el). text(),
  245                         'tabindex' : 0
  246                    });
  247                });
  248  
  249           },  0);
  250       }
  251  
  252   });
  253  
  254   AppKit.lau nch(functi on () {
  255  
  256       var po pover = $( '<div>').a ddClass('u i-tooltip  bottom arr ow dod-err ors').hide ().appendT o('body');
  257  
  258       $(docu ment).on(' click.inte rfacePopov er, keydow n.interfac ePopover',  function  () {
  259           po pover.hide ();
  260       });
  261  
  262       JLV.In terfaceSta tusDialog. detailsPop over = pop over;
  263  
  264   });
  265