841. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/3/2017 11:16:01 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.

841.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\jmeadows-xform-domain-vpr jmeadows-xform-domain-vpr-handler-itest-spec.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\jmeadows-xform-domain-vpr jmeadows-xform-domain-vpr-handler-itest-spec.js Tue Oct 3 12:49:41 2017 UTC

841.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 566
Changed 2 6
Inserted 0 0
Removed 0 0

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

841.4 Active regular expressions

No regular expressions were active.

841.5 Comparison detail

  1   'use stric t';
  2  
  3   require('. ./../../.. /env-setup ');
  4  
  5   var _ = re quire('und erscore');
  6   var uuid =  require(' node-uuid' );
  7   var logger  = require (global.VX _DUMMIES +  'dummy-lo gger');
  8   // logger  = require( 'bunyan'). createLogg er({
  9   //     nam e: 'jmeado ws-xform-d omain-vpr- handler-it est-spec',
  10   //     lev el: 'debug '
  11   // });
  12  
  13   var val =  require(gl obal.VX_UT ILS + 'obj ect-utils' ).getPrope rty;
  14   var jobUti l = requir e(global.V X_UTILS +  'job-utils ');
  15   var testHa ndler = re quire(glob al.VX_INTT ESTS + 'fr amework/ha ndler-test -framework ').testHan dler;
  16   var patien tIdUtil =  require(gl obal.VX_UT ILS + 'pat ient-ident ifier-util s');
  17   var handle r = requir e(global.V X_HANDLERS  + 'jmeado ws-xform-d omain-vpr/ jmeadows-x form-domai n-vpr-hand ler');
  18   var JdsCli entDummy =  require(g lobal.VX_D UMMIES + ' jds-client -dummy');
  19   var JdsCli ent = requ ire(global .VX_SUBSYS TEMS + 'jd s/jds-clie nt');
  20   var wConfi g = requir e(global.V X_ROOT + ' worker-con fig');
  21   var realCo nfig = JSO N.parse(JS ON.stringi fy(wConfig ));             // Ma ke sure we  are not u sing a sha red copy o f this so  we can mak e changes  later and  not side e ffect some  other tes t.
  22  
  23  
  24   var config  = {
  25       jds: _ .defaults( realConfig .jds, {
  26           pr otocol: 'h ttp',
  27             host: ' IP          ',
  28             port:  PORT
  29       })
  30   };
  31  
  32   var testCo nfig = req uire(globa l.VX_INTTE STS + 'tes t-config') ;
  33   var vx_syn c_ip = tes tConfig.vx syncIP;
  34  
  35   var host =  vx_sync_i p;
  36   var port =   PORT ;
  37   var tubena me = 'vx-s ync-test';
  38   var jmeado wsVersion  = "2.3.1";
  39   var jmeado wsSoapPath  = "jmeado ws_v2_3_1" ;
  40  
  41   describe(' jmeadows-x fom-domain -vpr-handl er integra tion test' , function () {
  42       var te stPatientI dentifier  = patientI dUtil.crea te('pid',  'DOD;' + 0 xD0D);
  43  
  44       before Each(funct ion() {
  45           //  Underlyin g JDS call s to monit or and mak e sure tha t they are  made.
  46           // ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  47           //  spyOn(jds ClientDumm y, 'saveSy ncStatus') .andCallTh rough();
  48       });
  49  
  50       descri be('record  enrichmen t pathway' , function () {
  51           va r jdsClien tDummy = n ew JdsClie ntDummy(lo gger, conf ig);
  52           va r environm ent = {
  53                jds: jds ClientDumm y,
  54                metrics: logger
  55           };
  56           va r expected JdsRespons e = {
  57                statusCo de: 200
  58           };
  59           jd sClientDum my._setRes ponseData( null, expe ctedJdsRes ponse, und efined);
  60  
  61           va r dodAller gyItems =  require('. ./../../da ta/seconda ry/'+jmead owsSoapPat h+'/allerg ySoap');
  62  
  63           va r job = {} ;
  64           jo b.type = ' jmeadows-x form-aller gy-vpr';
  65           jo b.dataDoma in = 'alle rgy';
  66           jo b.record =  dodAllerg yItems;
  67           jo b.jpid = u uid.v4();
  68           jo b.icn = '1 0108V42087 1';
  69           jo b.patientI dentifier  = patientI dUtil.crea te('pid',  'DOD;00000 0003');
  70           jo b.requestS tampTime =  '20140102 120059';
  71  
  72           va r localCon fig = _.cl one(config );
  73           lo calConfig. jmeadows =  {
  74                version:  jmeadowsV ersion,
  75                domains:  ['allergy ']
  76           };
  77  
  78           va r matching JobTypes =  [jobUtil. eventPrior itizationR equestType (), jobUti l.eventPri oritizatio nRequestTy pe(), jobU til.eventP rioritizat ionRequest Type()];
  79           te stHandler( handler, l ogger, loc alConfig,  environmen t, host, p ort, tuben ame, job,  matchingJo bTypes);
  80       });
  81  
  82       xdescr ibe('docum ent retrie val pathwa y: consult  that cont ains link  to pdf doc ument', fu nction() {
  83           va r jdsClien tDummy = n ew JdsClie ntDummy(lo gger, conf ig);
  84           va r environm ent = {
  85                jds: jds ClientDumm y,
  86                metrics: logger
  87           };
  88           va r expected JdsRespons e = {
  89                statusCo de: 200
  90           };
  91           jd sClientDum my._setRes ponseData( null, expe ctedJdsRes ponse, und efined);
  92  
  93           va r dodConsu ltItems =  require('. ./../../da ta/seconda ry/'+jmead owsSoapPat h+'/consul tSoap');
  94  
  95           va r job = {} ;
  96           jo b.type = ' jmeadows-x form-consu lt-vpr';
  97           jo b.dataDoma in = 'cons ult';
  98           jo b.record =  dodConsul tItems;
  99           jo b.jpid = u uid.v4();
  100           jo b.icn = '1 0108V42087 1';
  101           jo b.patientI dentifier  = patientI dUtil.crea te('pid',  'DOD;00000 0003');
  102           jo b.requestS tampTime =  '20140102 120059.000 ';
  103  
  104           va r localCon fig = _.cl one(config );
  105           lo calConfig. jmeadows =  {
  106                version:  jmeadowsV ersion,
  107                domains:  ['consult ']
  108           };
  109  
  110           va r matching JobTypes =  [jobUtil. jmeadowsDo cRetrieval Type(), jo bUtil.jmea dowsDocRet rievalType (), jobUti l.jmeadows DocRetriev alType()];
  111           te stHandler( handler, l ogger, loc alConfig,  environmen t, host, p ort, tuben ame, job,  matchingJo bTypes);
  112       });
  113  
  114       xdescr ibe('docum ent retrie val pathwa y: progres sNote that  contains  link to pd f document ', functio n() {
  115           va r localLog ger = requ ire('bunya n').create Logger({
  116                name: 'j meadows-xf orm-domain -vpr-handl er-itest-s pec: ',
  117                level: ' debug'
  118           }) ;
  119           lo calLogger. debug('*** * start of  document  retrieval  patheway:. .. test ** ****');
  120           va r jdsClien tDummy = n ew JdsClie ntDummy(lo calLogger,  config);
  121           va r environm ent = {
  122                jds: jds ClientDumm y,
  123                metrics: localLogge r
  124           };
  125           va r expected JdsRespons e = {
  126                statusCo de: 200
  127           };
  128           jd sClientDum my._setRes ponseData( null, expe ctedJdsRes ponse, und efined);
  129  
  130           va r dodProgr essNoteIte ms = requi re('../../ ../data/se condary/'+ jmeadowsSo apPath+'/p rogressNot eSoap');
  131  
  132           va r job = {} ;
  133           jo b.type = ' jmeadows-x form-progr essNote-vp r';
  134           jo b.dataDoma in = 'prog ressNote';
  135           jo b.record =  dodProgre ssNoteItem s;
  136           jo b.jpid = u uid.v4();
  137           jo b.icn = '1 0108V42087 1';
  138           jo b.patientI dentifier  = patientI dUtil.crea te('pid',  'DOD;00000 0003');
  139           jo b.requestS tampTime =  '20140102 120059.000 ';
  140  
  141           va r localCon fig = _.cl one(config );
  142           lo calConfig. jmeadows =  {
  143                version:  jmeadowsV ersion,
  144                domains:  ['progres sNote']
  145           };
  146  
  147           va r matching JobTypes =  [jobUtil. jmeadowsDo cRetrieval Type(), jo bUtil.jmea dowsDocRet rievalType (), jobUti l.jmeadows DocRetriev alType(),
  148                jobUtil. jmeadowsDo cRetrieval Type(), jo bUtil.jmea dowsDocRet rievalType (), jobUti l.jmeadows DocRetriev alType(),
  149                jobUtil. jmeadowsDo cRetrieval Type(), jo bUtil.jmea dowsDocRet rievalType (), jobUti l.jmeadows DocRetriev alType(),
  150                jobUtil. jmeadowsDo cRetrieval Type(), jo bUtil.jmea dowsDocRet rievalType (), jobUti l.jmeadows DocRetriev alType(),  jobUtil.jm eadowsDocR etrievalTy pe()
  151           ];
  152  
  153           //  Note:  Be cause of a ll the thi ngs that t his is doi ng - we ar e seein on  the build  server -  this test  taking as  long as 42  seconds t o complete .
  154           //  so need t o set the  time out h igh enough  so that i t does not  fail prem aturely.
  155           // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
  156           te stHandler( handler, l ocalLogger , localCon fig, envir onment, ho st, port,  tubename,  job, match ingJobType s, 60000);
  157           lo calLogger. debug('*** * end of d ocument re trieval pa theway:...  test **** **');
  158       });
  159  
  160       descri be('record  enrichmen t pathway:  discharge Summary th at does no t link to  pdf docume nt', funct ion() {
  161           va r jdsClien tDummy = n ew JdsClie ntDummy(lo gger, conf ig);
  162           va r environm ent = {
  163                jds: jds ClientDumm y,
  164                metrics: logger
  165           };
  166           va r expected JdsRespons e = {
  167                statusCo de: 200
  168           };
  169           jd sClientDum my._setRes ponseData( null, expe ctedJdsRes ponse, und efined);
  170  
  171           va r dodDisch argeSummar yItems = r equire('.. /../../dat a/secondar y/'+jmeado wsSoapPath +'/dischar geSummaryS oap');
  172  
  173           va r job = {} ;
  174           jo b.type = ' jmeadows-x form-disch argeSummar y-vpr';
  175           jo b.dataDoma in = 'disc hargeSumma ry';
  176           jo b.record =  dodDischa rgeSummary Items;
  177           jo b.jpid = u uid.v4();
  178           jo b.icn = '1 0108V42087 1';
  179           jo b.patientI dentifier  = patientI dUtil.crea te('pid',  'DOD;00000 0003');
  180           jo b.requestS tampTime =  '20140102 120059.000 ';
  181  
  182           va r localCon fig = _.cl one(config );
  183           lo calConfig. jmeadows =  {
  184                version:  jmeadowsV ersion,
  185                domains:  ['dischar geSummary' ]
  186           };
  187  
  188           va r matching JobTypes =  [jobUtil. jmeadowsCd aDocumentC onversionT ype()];
  189  
  190           te stHandler( handler, l ogger, loc alConfig,  environmen t, host, p ort, tuben ame, job,  matchingJo bTypes);
  191       });
  192  
  193       descri be('test J DS communi cations',  function()  {
  194           va r jdsClien t = new Jd sClient(lo gger, logg er, config );
  195           va r environm ent = {
  196                jds: jds Client,
  197                publishe rRouter: {
  198                    publ ish: funct ion(job, c allback) {
  199                         callback() ;
  200                    }
  201                },
  202                metrics: logger
  203           };
  204           //  var expec tedJdsResp onse = {
  205           //      statu sCode: 200
  206           //  };
  207           //  //jdsClie ntDummy._s etResponse Data(null,  expectedJ dsResponse , undefine d);
  208  
  209           va r dodAller gyItems =  require('. ./../../da ta/seconda ry/'+jmead owsSoapPat h+'/allerg ySoap');
  210  
  211           va r job = {} ;
  212           jo b.type = ' jmeadows-x form-aller gy-vpr';
  213           jo b.dataDoma in = 'alle rgy';
  214           jo b.record =  dodAllerg yItems;
  215           jo b.jpid = u uid.v4();
  216           jo b.icn = '1 0108V42087 1';
  217           jo b.patientI dentifier  = testPati entIdentif ier;
  218           jo b.requestS tampTime =  '20140102 120059';
  219  
  220           va r localCon fig = _.cl one(config );
  221           lo calConfig. jmeadows =  {
  222                version:  jmeadowsV ersion,
  223                domains:  ['allergy ']
  224           };
  225  
  226           it ('verify m etastamp i s stored i n JDS', fu nction() {
  227                var clea nUpDone =  true;
  228                runs(fun ction() {
  229                    envi ronment.jd s.deletePa tientByPid (testPatie ntIdentifi er.value,  function()  {
  230                         cleanUpDon e = true;
  231                    });
  232                });
  233  
  234                waitsFor (function( ){
  235                    retu rn cleanUp Done;
  236                });
  237  
  238                var setU pDone = fa lse;
  239                runs(fun ction() {
  240                    envi ronment.jd s.storePat ientIdenti fier({
  241                         'patientId entifiers' : [testPat ientIdenti fier.value ]
  242                    }, f unction()  {
  243                         setUpDone  = true;
  244                    });
  245                });
  246  
  247                waitsFor (function( ) {
  248                    retu rn setUpDo ne;
  249                });
  250  
  251                var hand leDone = f alse;
  252                runs(fun ction() {
  253                    hand ler(logger , localCon fig, envir onment, jo b, functio n() {
  254                         handleDone  = true;
  255                    });
  256                });
  257  
  258                waitsFor (function( ) {
  259                    retu rn handleD one;
  260                });
  261  
  262                var done  = false;
  263                runs(fun ction() {
  264                    envi ronment.jd s.getSyncS tatus(test PatientIde ntifier, f unction(er ror, respo nse) {
  265                         expect(err or).toBeFa lsy();
  266                         expect(val (response,  'statusCo de')).toBe (200);
  267                         done = tru e;
  268                    });
  269                });
  270                waitsFor (function( ) {
  271                    retu rn done;
  272                });
  273  
  274                var clea nUpDone =  false;
  275                runs(fun ction() {
  276                    envi ronment.jd s.deletePa tientByPid (testPatie ntIdentifi er.value,  function()  {
  277                         cleanUpDon e = true;
  278                    });
  279                });
  280                waitsFor (function( ) {
  281                    retu rn cleanUp Done;
  282                });
  283           }) ;
  284  
  285       });
  286   });