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

847.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\record-enrichment-request record-enrichment-request-handler-itest-spec.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\record-enrichment-request record-enrichment-request-handler-itest-spec.js Tue Oct 3 12:52:14 2017 UTC

847.2 Comparison summary

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

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

847.4 Active regular expressions

No regular expressions were active.

847.5 Comparison detail

  1   'use stric t';
  2  
  3   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  4   // This is  an integr ation test  for the R ecord Enri chment.  I t verifies  that it c an
  5   // process  a job and  create th e correct  outgoing j obs based  on it.
  6   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
  7   require('. ./../../.. /env-setup ');
  8  
  9   var logger  = require (global.VX _DUMMIES +  'dummy-lo gger');
  10   // logger  = require( 'bunyan'). createLogg er({
  11   //     nam e: 'record -enrichmen t-request- handler-it est-spec',
  12   //     lev el: 'debug '
  13   // });
  14  
  15   var jobUti l = requir e(global.V X_UTILS +  'job-utils ');
  16   var testHa ndler = re quire(glob al.VX_INTT ESTS + 'fr amework/ha ndler-test -framework ').testHan dler;
  17   var patien tIdUtil =  require(gl obal.VX_UT ILS + 'pat ient-ident ifier-util s');
  18   var handle r = requir e(global.V X_HANDLERS  + 'record -enrichmen t-request/ record-enr ichment-re quest-hand ler');
  19  
  20   var testCo nfig = req uire(globa l.VX_INTTE STS + 'tes t-config') ;
  21   var vx_syn c_ip = tes tConfig.vx syncIP;
  22  
  23   describe(' record-enr ichment-re quest-hand ler.js', f unction()  {
  24       var jp id = '0000 0000-0000- 0000-0000- 0000000000 00';
  25       var ro otJobId =  1;
  26       var ro otJob = {
  27           jp id: jpid,
  28           jo bId: rootJ obId,
  29           ro otJobId: r ootJobId
  30       };
  31       var pa tientIdent ifier = pa tientIdUti l.create(' pid', '9E7 A;3');
  32       var al lergyRecor d = {
  33           'd rugClasses ': [{
  34                'code':  'AM114',
  35                'name':  'PENICILLI NS AND BET A-LACTAM A NTIMICROBI ALS'
  36           }] ,
  37           'e ntered': 2 0050317200 9,
  38           'f acilityCod e': 500,
  39           'f acilityNam e': 'CAMP  MASTER',
  40           'h istorical' : true,
  41           'k ind': 'All ergy / Adv erse React ion',
  42           'l astUpdateT ime': 2005 0317200936 ,
  43           'l ocalId': 7 51,
  44           'm echanism':  'PHARMACO LOGIC',
  45           'o riginatorN ame': 'VEH U,EIGHT',
  46           'p id': '9E7A ;3',
  47           'p roducts':  [{
  48                'name':  'PENICILLI N',
  49                'vuid':  'urn:va:vu id:'
  50           }] ,
  51           'r eactions':  [{
  52                'name':  'ITCHING,W ATERING EY ES',
  53                'vuid':  'urn:va:vu id:'
  54           }] ,
  55           'r eference':  '125;GMRD (120.82,',
  56           's tampTime':  200503172 00936,
  57           's ummary': ' PENICILLIN ',
  58           't ypeName':  'DRUG',
  59           'u id': 'urn: va:allergy :9E7A:3:75 1',
  60           'v erified':  2005031720 0936,
  61           'v erifierNam e': '<auto -verified> '
  62       };
  63       var jo b = jobUti l.createRe cordEnrich ment(patie ntIdentifi er, 'aller gy', aller gyRecord,  rootJob);
  64  
  65       var co nfig = {
  66       };
  67  
  68       var en vironment  = {
  69           me trics: log ger
  70       };
  71       // env ironment.j obStatusUp dater = ne w JobStatu sUpdater(l ogger, con fig, envir onment.jds );
  72       // env ironment.p ublisherRo uter = new  Publisher Router(log ger, confi g, environ ment.jobSt atusUpdate r);
  73  
  74       var ho st = vx_sy nc_ip;
  75         var port = PORT ;
  76       var tu bename = ' vx-sync-te st';
  77  
  78       var ma tchingJobT ypes = [
  79           jo bUtil.stor eRecordTyp e()
  80       ];
  81  
  82       testHa ndler(hand ler, logge r, config,  environme nt, host,  port, tube name, job,  matchingJ obTypes);
  83  
  84   });