Produced by Araxis Merge on 10/3/2017 11:16:03 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 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\unittests\handlers\jmeadows-xform-domain-vpr\v2_3_1 | jmeadows-demographics-xformer-spec.js | Mon Jul 10 17:46:22 2017 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\unittests\handlers\jmeadows-xform-domain-vpr\v2_3_1 | jmeadows-demographics-xformer-spec.js | Mon Oct 2 20:05:52 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 264 |
| Changed | 2 | 6 |
| 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 | require('. ./../../.. /../env-se tup'); | |
| 4 | var xforme r = requir e(global.V X_HANDLERS + 'jmeado ws-xform-d omain-vpr/ v2_3_1/jme adows-demo graphics-x former'); | |
| 5 | var log = require(gl obal.VX_DU MMIES + 'd ummy-logge r'); | |
| 6 | // Be sure next line s are comm ented out before pus hing | |
| 7 | // log = r equire('bu nyan').cre ateLogger( { | |
| 8 | // nam e: 'jmeado ws-xform-d omain-vpr- handler-sp ec', | |
| 9 | // lev el: 'debug ' | |
| 10 | // }); | |
| 11 | ||
| 12 | var mockEd ipi = '000 01'; | |
| 13 | ||
| 14 | var sample DodDemogra phics = { | |
| 15 | 'addre ss1': 'Any Street', | |
| 16 | 'addre ss2': '', | |
| 17 | 'admis sionDate': null, | |
| 18 | 'admis sionId': n ull, | |
| 19 | 'cdrEv entId': nu ll, | |
| 20 | 'city' : 'Any Tow n', | |
| 21 | 'clini c': null, | |
| 22 | 'codeG reen': '0' , | |
| 23 | 'eligi bility': n ull, | |
| 24 | 'eligi bilityStat us': null, | |
| 25 | 'emerg encyContac t': null, | |
| 26 | 'ethni city': nul l, | |
| 27 | 'flags ': null, | |
| 28 | 'labId ': null, | |
| 29 | 'langu ages': nul l, | |
| 30 | 'marit ialStatus' : null, | |
| 31 | 'nextO fKin': nul l, | |
| 32 | 'pcAss igned': nu ll, | |
| 33 | 'pcPro vider': nu ll, | |
| 34 | 'pcTea m': null, | |
| 35 | 'pcmCl inic': nul l, | |
| 36 | 'pcmDa tes': null , | |
| 37 | 'pcmPh one': null , | |
| 38 | 'perce ntServiceC onnected': null, | |
| 39 | 'phone 1': '(555) 505-9776', | |
| 40 | 'phone 2': null, | |
| 41 | 'prima ryProvider ': null, | |
| 42 | 'race' : null, | |
| 43 | 'rank' : 'Special ist', | |
| 44 | 'relig ion': null , | |
| 45 | 'site' : { | |
| 46 | 'a gency': 'D OD', | |
| 47 | 'c ontainer': null, | |
| 48 | 'd misId': nu ll, | |
| 49 | 'e ndpoints': null, | |
| 50 | 'i d': null, | |
| 51 | 'm oniker': ' PDWS', | |
| 52 | 'n ame': 'PDW S', | |
| 53 | 'p ermissions ': null, | |
| 54 | 'r egion': nu ll, | |
| 55 | 's iteCode': '', | |
| 56 | 's tatus': nu ll | |
| 57 | }, | |
| 58 | 'sourc eProtocol' : 'DODADAP TER', | |
| 59 | 'spons orName': ' EIGHT,PATI ENT', | |
| 60 | 'state ': 'LA', | |
| 61 | 'ward' : null, | |
| 62 | 'wardI d': null, | |
| 63 | 'zipCo de': '7013 1', | |
| 64 | 'age': null, | |
| 65 | 'ahlta UnitNumber ': null, | |
| 66 | 'dob': '19450309 ', | |
| 67 | 'edipi ': '000000 0003', | |
| 68 | 'fmp': '', | |
| 69 | 'gende r': 'M', | |
| 70 | 'icn': null, | |
| 71 | 'name' : 'EIGHT,P ATIENT', | |
| 72 | 'patie ntIens': n ull, | |
| 73 | 'ssn': '66600080 8', | |
| 74 | 'sensi tive': fal se, | |
| 75 | 'spons orSSN': '6 66000808', | |
| 76 | 'vista Sites': nu ll | |
| 77 | ||
| 78 | }; | |
| 79 | ||
| 80 | var sample VprDemogra phics = { | |
| 81 | fullNa me: 'EIGHT ,PATIENT', | |
| 82 | displa yName: 'EI GHT,PATIEN T', | |
| 83 | ssn: ' 666000808' , | |
| 84 | gender Name: 'Mal e', | |
| 85 | gender Code: 'urn :va:pat-ge nder:M', | |
| 86 | birthD ate: '1945 0309', | |
| 87 | addres s: [{ | |
| 88 | ci ty: 'Any T own', | |
| 89 | li ne1: 'Any Street', | |
| 90 | li ne2: '', | |
| 91 | zi p: '70131' , | |
| 92 | st ate: 'LA', | |
| 93 | us e: 'H', | |
| 94 | su mmary: 'Ad dress{uid= \' \'}' | |
| 95 | }], | |
| 96 | teleco m: [{ | |
| 97 | va lue: '(555 )505-9776' , | |
| 98 | us e: 'H', | |
| 99 | su mmary: 'Te lecom{uid= \' \'}' | |
| 100 | }], | |
| 101 | uid: ' urn:va:pat ient:DOD:0 0001:00001 ', | |
| 102 | pid: ' DOD;00001' | |
| 103 | }; | |
| 104 | ||
| 105 | describe(' dodDemogra phicsToVPR ()', funct ion(){ | |
| 106 | it('ve rify trans form sampl e dod demo graphics t o vpr', fu nction(){ | |
| 107 | va r result = xformer(l og, sample DodDemogra phics, moc kEdipi); | |
| 108 | // console.l og(result. address, s ampleVprDe mographics .address); | |
| 109 | ||
| 110 | ex pect(resul t.fullName ).toEqual( sampleVprD emographic s.fullName ); | |
| 111 | ex pect(resul t.displayN ame).toEqu al(sampleV prDemograp hics.displ ayName); | |
| 112 | ex pect(resul t.ssn).toE qual(sampl eVprDemogr aphics.ssn ); | |
| 113 | ex pect(resul t.genderNa me).toEqua l(sampleVp rDemograph ics.gender Name); | |
| 114 | ex pect(resul t.birthDat e).toEqual (sampleVpr Demographi cs.birthDa te); | |
| 115 | ex pect(resul t.address) .toEqual(s ampleVprDe mographics .address); | |
| 116 | ex pect(resul t.uid).toE qual(sampl eVprDemogr aphics.uid ); | |
| 117 | ex pect(resul t.pid).toE qual(sampl eVprDemogr aphics.pid ); | |
| 118 | }); | |
| 119 | }); | |
| 120 | ||
| 121 | /* | |
| 122 | 19:44:44.2 08Z DEBUG jmeadows-x form-demog raphics-vp r: jmeadow s-xform-do main-vpr-h andler.han dle: Trans forming da ta for dom ain: demog raphics to VPR | |
| 123 | 19:44:44.2 08Z DEBUG jmeadows-x form-demog raphics-vp r: jmeadow s-xform-do main-vpr-h andler.han dle: Trans formed VPR records: {"data":{" items":[]} } | |
| 124 | 19:44:44.2 08Z DEBUG jmeadows-x form-demog raphics-vp r: jmeadow s-xform-do main-vpr-h andler.han dle: metas tamp creat ed: {"stam pTime":"20 1501301444 03","sourc eMetaStamp ":{},"icn" :null} | |
| 125 | 19:44:44.2 08Z DEBUG subscriber Host.jds-c lient: Jds Client.sav eSyncStatu s() | |
| 126 | 19:44:44.2 08Z DEBUG subscriber Host.jds-c lient: { s tampTime: '201501301 44403', so urceMetaSt amp: {}, i cn: null } | |
| 127 | 19:44:44.2 08Z DEBUG subscriber Host.jds-c lient: /st atus/DOD;0 000000003 | |
| 128 | 19:44:44.2 08Z DEBUG subscriber Host.jds-c lient: { s tampTime: '201501301 44403', so urceMetaSt amp: {}, i cn: null } | |
| 129 | 19:44:44.2 14Z ERROR subscriber Host.jds-c lient: Una ble to acc ess JDS en dpoint: PO ST http:// IP /status/DO D;00000000 03 | |
| 130 | 19:44:44.2 15Z ERROR subscriber Host.jds-c lient: nul l {"apiVer sion":"1.0 ","error": {"code":50 0,"errors" :[{"domain ":"Log ID: 93","messa ge":"M exe cution err or","reaso n":501}]," message":" Internal S erver Erro r","reques t":"POST / status/DOD ;000000000 3 "}} | |
| 131 | 19:44:44.2 15Z DEBUG jmeadows-x form-demog raphics-vp r: jmeadow s-xform-do main-vpr-h andler.han dle: saveS yncStatus returned. error: [ob ject Objec t]; respon se: {"stat usCode":50 0,"body":{ "apiVersio n":"1.0"," error":{"c ode":500," errors":[{ "domain":" Log ID:93" ,"message" :"M execut ion error" ,"reason": 501}],"mes sage":"Int ernal Serv er Error", "request": "POST /sta tus/DOD;00 00000003 " }},"header s":{"date" :"Fri, 30 Jan 2015 1 9:44:46 GM T","conten t-type":"a pplication /json","co ntent-leng th":"195"} ,"request" :{"uri":{" protocol": "http:","s lashes":tr ue,"auth": null,"host ":" IP ","port":" 9080","hos tname":" IP ","hash":n ull,"searc h":null,"q uery":null ,"pathname ":"/status /DOD;00000 00003","pa th":"/stat us/DOD;000 0000003"," href":"htt p:// IP /status/DO D;00000000 03"},"meth od":"POST" ,"headers" :{"accept" :"applicat ion/json", "content-t ype":"appl ication/js on","conte nt-length" :62}}} | |
| 132 | 19:44:44.2 15Z ERROR jmeadows-x form-demog raphics-vp r: jmeadow s-xform-do main-vpr-h andler.han dle: Recei ved error while atte mpting to store meta Stamp for pid: DOD;0 000000003. Error: [ob ject Objec t]; Response: {"statusCo de":500,"b ody":{"api Version":" 1.0","erro r":{"code" :500,"erro rs":[{"dom ain":"Log ID:93","me ssage":"M execution error","re ason":501} ],"message ":"Interna l Server E rror","req uest":"POS T /status/ DOD;000000 0003 "}}," headers":{ "date":"Fr i, 30 Jan 2015 19:44 :46 GMT"," content-ty pe":"appli cation/jso n","conten t-length": "195"},"re quest":{"u ri":{"prot ocol":"htt p:","slash es":true," auth":null ,"host":" IP ","port":" 9080","hos tname":" IP ","hash":n ull,"searc h":null,"q uery":null ,"pathname ":"/status /DOD;00000 00003","pa th":"/stat us/DOD;000 0000003"," href":"htt p:// IP /status/DO D;00000000 03"},"meth od":"POST" ,"headers" :{"accept" :"applicat ion/json", "content-t ype":"appl ication/js on","conte nt-length" :62}}}; me taStamp:[{ "stampTime ":"2015013 0144403"," sourceMeta Stamp":{}, "icn":null }] | |
| 133 | 19:44:44.2 15Z DEBUG worker.wor ker-1: Des troy job: 727 (jmead ows-xform- demographi cs-vpr) | |
| 134 | 19:44:44.2 15Z DEBUG worker.wor ker-1: Wor ker._destr oy() jobId : 727 | |
| 135 | */ |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.