Produced by Araxis Merge on 10/4/2017 8:04:36 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-check-vista-writer-itest-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-check-vista-writer-itest-spec.js | Tue Oct 3 18:57:36 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 4 | 170 |
| Changed | 3 | 16 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | 'use stric t'; | |
| 2 | ||
| 3 | var saveVi staWriter = require( '../lab/or ders-lab-v ista-write r'); | |
| 4 | var checkV istaWriter = require ('./orders -common-ch eck-vista- writer'); | |
| 5 | var rpcCli entFactory = require ('./../../ core/rpc-c lient-fact ory'); | |
| 6 | ||
| 7 | var saveWr itebackCon text = { | |
| 8 | interc eptorResul ts: { | |
| 9 | pa tientIdent ifiers: { | |
| 10 | 'dfn': ' 100615', | |
| 11 | 'siteDfn': ' R E D A CTED ;100615', | |
| 12 | 'site': ' R E D A CTED ' | |
| 13 | } | |
| 14 | }, | |
| 15 | vistaC onfig: { | |
| 16 | host: ' IP ', | |
| 17 | port: PORT , | |
| 18 | accessCode : ' PL ', | |
| 19 | verifyCode : ' PL !!', | |
| 20 | localIP: ' IP ', | |
| 21 | lo calAddress : 'localho st', | |
| 22 | no Reconnect: true | |
| 23 | }, | |
| 24 | model: { | |
| 25 | 'p rovider': '100000002 38', | |
| 26 | 'l ocation': '129', | |
| 27 | 'o rderDialog ': 'LR OTH ER LAB TES TS', | |
| 28 | 'd isplayGrou p': '5', | |
| 29 | 'q uickOrderD ialog': '2 ', | |
| 30 | 'i nputList': [{ | |
| 31 | 'inputKe y': '4', | |
| 32 | 'inputVa lue': '350 ' | |
| 33 | }, { | |
| 34 | 'inputKe y': '126', | |
| 35 | 'inputVa lue': '1' | |
| 36 | }, { | |
| 37 | 'inputKe y': '127', | |
| 38 | 'inputVa lue': '72' | |
| 39 | }, { | |
| 40 | 'inputKe y': '180', | |
| 41 | 'inputVa lue': '9' | |
| 42 | }, { | |
| 43 | 'inputKe y': '28', | |
| 44 | 'inputVa lue': 'SP' | |
| 45 | }, { | |
| 46 | 'inputKe y': '6', | |
| 47 | 'inputVa lue': 'TOD AY' | |
| 48 | }, { | |
| 49 | 'inputKe y': '29', | |
| 50 | 'inputVa lue': '28' | |
| 51 | }] , | |
| 52 | 'l ocalId': ' 12519', | |
| 53 | 'uid': 'ur n:va:order : R E D A CTED :100615:12 519', | |
| 54 | 'k ind': 'Lab oratory' | |
| 55 | }, | |
| 56 | logger : sinon.st ub(require ('bunyan') .createLog ger({ | |
| 57 | na me: 'check -vista-wri ter' | |
| 58 | })) | |
| 59 | }; | |
| 60 | ||
| 61 | describe(' write-back orders co mmon check vista wri ter integr ation test s', functi on() { | |
| 62 | ||
| 63 | afterE ach(functi on() { | |
| 64 | rp cClientFac tory.close RpcClient( saveWriteb ackContext ); | |
| 65 | }); | |
| 66 | ||
| 67 | //Test w/o requi red dfn | |
| 68 | it('te sts that c heck order returns e rror', fun ction(done ) { | |
| 69 | th is.timeout (50000); | |
| 70 | ch eckVistaWr iter.check (saveWrite backContex t, functio n(err, res ult) { | |
| 71 | expect(e rr).to.be. truthy(); | |
| 72 | done(); | |
| 73 | }) ; | |
| 74 | }); | |
| 75 | ||
| 76 | // This test will creat e new lab orders in Vista. Un comment to test loca lly | |
| 77 | it .skip('tes ts that ch eck order returns su ccessful v prResponse ', functio n(done) { | |
| 78 | this.tim eout(10000 ); | |
| 79 | saveWrit ebackConte xt.interce ptorResult s.patientI dentifiers .dfn = '3' ; | |
| 80 | saveVist aWriter.cr eate(saveW ritebackCo ntext, fun ction(err, result) { | |
| 81 | expe ct(err).to .be.falsy( ); | |
| 82 | expe ct(saveWri tebackCont ext.vprRes ponse).to. be.truthy( ); | |
| 83 | save VistaWrite r.create(s aveWriteba ckContext, function( err, resul t) { | |
| 84 | expect(err ).to.be.fa lsy(); | |
| 85 | expect(sav eWriteback Context.vp rResponse) .to.be.tru thy(); | |
| 86 | var respon se = JSON. parse(save WritebackC ontext.vpr Response); | |
| 87 | expect(res ponse.orde rCheckList ).to.exist (); | |
| 88 | expect(res ponse.orde rCheckList [0].orderC heck).to.e xist(); | |
| 89 | done(); | |
| 90 | }); | |
| 91 | }); | |
| 92 | }) ; | |
| 93 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.