74. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:35 AM Central 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.

74.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\resources\service-connected service-connected-resource-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\resources\service-connected service-connected-resource-spec.js Tue Oct 3 18:23:15 2017 UTC

74.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 17 332
Changed 16 48
Inserted 0 0
Removed 0 0

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

74.4 Active regular expressions

No regular expressions were active.

74.5 Comparison detail

  1   'use stric t';
  2  
  3   var scReso urce = req uire('./se rvice-conn ected-reso urce');
  4   var scdis  = require( './get-ser vice-conne cted-and-r ated-disab ilities');
  5   var scsel  = require( './get-ser vice-conne cted-and-s ervice-exp osure-list ');
  6   var rdk =  require('. ./../core/ rdk');
  7   var httpUt il = rdk.u tils.http;
  8  
  9   describe(' Service Co nnected Re source', f unction(){
  10       it('sh ould be se t up corre ctly for u sing getSe rviceConne ctedAndRat edDisabili ties', fun ction() {
  11           va r resource s = scReso urce.getRe sourceConf ig();
  12           ex pect(resou rces.lengt h).to.equa l(2);
  13  
  14           ex pect(resou rces[0].na me).to.eql ('patient- service-co nnected-se rviceConne cted');
  15           ex pect(resou rces[0].pa th).to.eql ('/service connectedr ateddisabi lities');
  16           ex pect(resou rces[0].in terceptors ).to.eql({
  17                //pep: t rue, ***PE P no longe r appears  in service -connecte- resource.j s***
  18                operatio nalDataChe ck: false,
  19                synchron ize: true,
  20                convertP id: true
  21           }) ;
  22           ex pect(resou rces[0].su bsystems). not.to.be. undefined( );
  23           ex pect(resou rces[0].ge t).not.to. be.undefin ed();
  24       });
  25  
  26       it('sh ould be se t up corre ctly for u sing getSe rviceConne ctedAndSer viceExposu re', funct ion() {
  27           va r resource s = scReso urce.getRe sourceConf ig();
  28           ex pect(resou rces.lengt h).to.equa l(2);
  29  
  30           ex pect(resou rces[1].na me).to.eql ('patient- service-co nnected-sc ButtonSele ction');
  31           ex pect(resou rces[1].pa th).to.eql ('/service connecteds erviceexpo surelist') ;
  32           ex pect(resou rces[1].in terceptors ).to.eql({
  33                //pep: t rue, ***PE P no longe r appears  in service -connecte- resource.j s***
  34                operatio nalDataChe ck: false,
  35                synchron ize: true,
  36                convertP id: true
  37           }) ;
  38           ex pect(resou rces[1].su bsystems). not.to.be. undefined( );
  39           ex pect(resou rces[1].ge t).not.to. be.undefin ed();
  40       });
  41  
  42  
  43       descri be('getSer viceConnec tedAndRate dDisabilit ies', func tion(){
  44  
  45           be foreEach(f unction()  {
  46                sinon.st ub(httpUti l, 'get');
  47           }) ;
  48  
  49           it ('should c all httpUt il', funct ion(){
  50                var req  = {
  51                    inte rceptorRes ults: {
  52                         patientIde ntifiers:  {
  53                               siteDfn: ' R E D A CTED ;3'
  54                         }
  55                    },
  56                    logg er: {
  57                         info: func tion(log)  {
  58                             return  log;
  59                         },
  60                         debug: fun ction(debu g) {
  61                             return  debug;
  62                         }
  63                    },
  64                    sess ion: {
  65                         user: {
  66                               site: ' R E D A CTED '
  67                         }
  68                    },
  69                    para m: functio n(name){
  70                         if(name == = 'pid'){
  71                             return  '10108V42 0871';
  72                         }
  73                    },
  74                    app:  {
  75                         config: {
  76                             rpcCon fig: {
  77                                 co ntext: 'HM P UI CONTE XT',
  78                                   siteHash:  ' R E D A CTED '
  79                             },
  80                             vistaS ites: {
  81                                   ' R E D A CTED ': {
  82                                      name: 'P ANORAMA',
  83                                      division : '500',
  84                                        host: ' IP          ',
  85                                        port:  PORT ,
  86                                      producti on: false,
  87                                        accessCode : ' REDACT ',
  88                                        verifyCode : ' REDACTED '
  89                                 },
  90                                 'C 877': {
  91                                      name: 'K ODAK',
  92                                      division : '500',
  93                                        host: ' IP          ',
  94                                        port:  PORT ,
  95                                      producti on: false,
  96                                        accessCode : ' REDACT ',
  97                                        verifyCode : ' REDACTED '
  98                                 }
  99                             }
  100                         }
  101                    },
  102                    audi t: {}
  103                };
  104  
  105                var res  = {
  106                    send : function (message,  error) {
  107                         return;
  108                    }
  109                };
  110  
  111                scdis._g etServiceC onnectedAn dRatedDisa bilities(r eq, res);
  112                expect(h ttpUtil.ge t.called). to.be.true ();
  113           }) ;
  114  
  115       });
  116  
  117       descri be('getSer viceConnec tedAndServ iceExposur eList', fu nction(){
  118  
  119           be foreEach(f unction()  {
  120                sinon.st ub(httpUti l, 'get');
  121           }) ;
  122  
  123           it ('should c all httpUt il', funct ion(){
  124                var req  = {
  125                    inte rceptorRes ults: {
  126                         patientIde ntifiers:  {
  127                               siteDfn: ' R E D A CTED ;3'
  128                         }
  129                    },
  130                    logg er: {
  131                         info: func tion(log)  {
  132                             return  log;
  133                         },
  134                         debug: fun ction(debu g) {
  135                             return  debug;
  136                         }
  137                    },
  138                    sess ion: {
  139                         user: {
  140                               site: ' R E D A CTED '
  141                         }
  142                    },
  143                    para m: functio n(name){
  144                         if(name == = 'pid'){
  145                             return  '10108V42 0871';
  146                         }
  147                    },
  148                    app:  {
  149                         config: {
  150                             rpcCon fig: {
  151                                 co ntext: 'HM P UI CONTE XT',
  152                                   siteHash:  ' R E D A CTED '
  153                             },
  154                             vistaS ites: {
  155                                   ' R E D A CTED ': {
  156                                      name: 'P ANORAMA',
  157                                      division : '500',
  158                                        host: ' IP          ',
  159                                        port:  PORT ,
  160                                      producti on: false,
  161                                        accessCode : ' REDACT ',
  162                                        verifyCode : ' REDACTED '
  163                                 },
  164                                 'C 877': {
  165                                      name: 'K ODAK',
  166                                      division : '500',
  167                                        host: ' IP          ',
  168                                        port:  PORT ,
  169                                      producti on: false,
  170                                        accessCode : ' REDACT ',
  171                                        verifyCode : ' REDACTED '
  172                                 }
  173                             }
  174                         }
  175                    },
  176                    audi t: {}
  177                };
  178  
  179                var res  = {
  180                    send : function (message,  error) {
  181                         return;
  182                    }
  183                };
  184  
  185                scsel._g etServiceC onnectedAn dServiceEx posureList (req, res) ;
  186                expect(h ttpUtil.ge t.called). to.be.true ();
  187           }) ;
  188  
  189       });
  190   });