14. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/18/2019 5:55:13 PM Eastern 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.

14.1 Files compared

# Location File Last Modified
1 MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_API_Core\src\tas\test fhir.js Wed Apr 3 02:27:56 2019 UTC
2 MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_API_Core\src\tas\test fhir.js Mon Apr 15 17:59:44 2019 UTC

14.2 Comparison summary

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

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

14.4 Active regular expressions

No regular expressions were active.

14.5 Comparison detail

  1   "use stric t"
  2  
  3   const expe ct = requi re('chai') .expect
  4   const asse rt = requi re('chai') .assert
  5  
  6   const debu g = requir e('debug') ('test')
  7  
  8   const $tas  = require ('..')()
  9  
  10   describe(" fhir", fun ction () {
  11       it("ge t fhir res ource summ ary", asyn c () => {
  12             const data  = { "reso urceType":  "Bundle",  "id": "2f 174746-f08 a-466b-8fd 3-1fa9ef37 edb7", "me ta": { "la stUpdated" : "2018-05 -14T14:13: 27.829-04: 00" }, "ty pe": "tran saction",  "link": [{  "relation ": "self",  "url": "h ttps:// DNS . URL /VA-FHIR-S erver/fhir /Bundle?_i d=1&locati on=001&tra nsaction=2 70" }], "e ntry": [{  "extension ": [{ "url ": "segmen t", "value String": " 270-MSH-Me ssageHeade r" }], "re source": {  "resource Type": "Me ssageHeade r", "id":  "ID", "eve nt": { "co de": "EVEN T" }, "des tination":  [{ "name" : "DESTINA TION" }],  "timestamp ": "2018-0 5-14T14:13 :27.737-04 :00", "sou rce": { "v ersion": " 2.4" }, "r eason": {  "coding":  [{ "code":  "I01" }]  } } }, { " extension" : [{ "url" : "segment ", "valueS tring": "2 70-MSH-Mes sageHeader " }], "res ource": {  "resourceT ype": "Loc ation", "i dentifier" : [{ "exte nsion": [{  "url": "s equence",  "valueStri ng": "270- MSH-4-Send ingFacilit y" }], "ty pe": { "co ding": [{  "code": "D NS" }] },  "system":  "SOFTWARE  SERVICE",  "value": " FOIA.DOMAI N.EXT" },  { "extensi on": [{ "u rl": "sequ ence", "va lueString" : "270-MSH -5-Receivi ngApplicat ion" }], " system": " IIV EC" },  { "extens ion": [{ " url": "seq uence", "v alueString ": "270-MS H-6-Receiv ingFacilit y" }], "ty pe": { "co ding": [{  "code": "D NS" }] },  "system":  "SYSTEM" } ], "addres s": { "cou ntry": "US A" } } },  { "extensi on": [{ "u rl": "segm ent", "val ueString":  "270-MSH- MessageHea der" }], " resource":  { "resour ceType": " ProcessReq uest", "id entifier":  [{ "value ": "produc tion" }] }  }, { "ext ension": [ { "url": " segment",  "valueStri ng": "270- MSH-Messag eHeader" } ], "resour ce": { "re sourceType ": "Basic" , "extensi on": [{ "u rl": "sequ ence", "va lueString" : "270-MSH -15-Accept Acknowledg ment" }] }  }, { "ext ension": [ { "url": " segment",  "valueStri ng": "270- MSH-Messag eHeader" } ], "resour ce": { "re sourceType ": "Basic" , "extensi on": [{ "u rl": "sequ ence", "va lueString" : "270-MSH -16-Applic ationAckno wledgmentT ype" }], " code": { " coding": [ { "code":  "NE" }] }  } }, { "ex tension":  [{ "url":  "segment",  "valueStr ing": "270 -PRD-Provi derData" } ], "resour ce": { "re sourceType ": "Practi tionerRole ", "identi fier": [{  "value": " N/A" }] }  }, { "exte nsion": [{  "url": "s egment", " valueStrin g": "270-P ID-Patient Identifica tion" }],  "resource" : { "resou rceType":  "Basic", " extension" : [{ "url" : "sequenc e", "value String": " 270-PID-1- SetIDPID"  }], "ident ifier": [{  "value":  "1" }] } } , { "exten sion": [{  "url": "se gment", "v alueString ": "270-PI D-PatientI dentificat ion" }], " resource":  { "resour ceType": " Basic", "e xtension":  [{ "url":  "sequence ", "valueS tring": "2 70-PID-3-P atientIden tifierList " }], "ide ntifier":  [{ "value" : "VALUE"  }], "code" : { "codin g": [{ "co de": "CODE " }] } } } , { "exten sion": [{  "url": "se gment", "v alueString ": "270-PI D-PatientI dentificat ion" }], " resource":  { "resour ceType": " Basic", "e xtension":  [{ "url":  "sequence ", "valueS tring": "2 70-PID-10- Race" }],  "code": {  "coding":  [{ "code":  "RACE" }]  } } }, {  "extension ": [{ "url ": "segmen t", "value String": " 270-PID-Pa tientIdent ification"  }], "reso urce": { " resourceTy pe": "Basi c", "creat ed": "2018 -05-14" }  }, { "exte nsion": [{  "url": "s egment", " valueStrin g": "270-G T1-Guarant or" }], "r esource":  { "resourc eType": "B asic", "cr eated": "2 018-05-14"  } }, { "e xtension":  [{ "url":  "segment" , "valueSt ring": "27 0-PID-Pati entIdentif ication" } ], "resour ce": { "re sourceType ": "Patien t", "text" : { "statu s": "gener ated", "di v": "<div  xmlns=\"ht tp://www.w 3.org/1999 /xhtml\">< div class= \"hapiHead erText\">D R SIR PATI ENT N <b>F OURTEEN </ b> PHD MS< /div><tabl e class=\" hapiProper tyTable\"> <tbody><tr ><td>Ident ifier</td> <td/></tr> <tr><td>Ad dress</td> <td><span> 23 MAIN ST  </span><b r/><span>A PT 3B </sp an><br/><s pan>BOSTON  </span><s pan>NEW YO RK </span> </td></tr> <tr><td>Da te of birt h</td><td> <span>14 M ay 2018</s pan></td>< /tr></tbod y></table> </div>" },  "identifi er": [{ "e xtension":  [{ "url":  "sequence ", "valueS tring": "2 70-PID-3-P atientIden tifierList " }], "typ e": { "cod ing": [{ " code": "NI " }] } },  { "extensi on": [{ "u rl": "sequ ence", "va lueString" : "270-PID -19-SSN" } ] }], "nam e": [{ "ex tension":  [{ "url":  "sequence" , "valueSt ring": "27 0-PID-5-Pa tientName"  }], "fami ly": "FOUR TEEN", "gi ven": ["PA TIENT", "N "], "prefi x": ["DR",  "SIR"], " suffix": [ "PHD", "MS "] }, { "e xtension":  [{ "url":  "sequence ", "valueS tring": "2 70-PID-9-P atientAlia s" }], "fa mily": "AL IAS" }], " gender": " male", "bi rthDate":  "2018-05-1 4", "addre ss": [{ "l ine": ["23  MAIN ST",  "APT 3B"] , "city":  "BOSTON",  "state": " NEW YORK"  }] } }, {  "extension ": [{ "url ": "segmen t", "value String": " 270-PID-Pa tientIdent ification"  }], "reso urce": { " resourceTy pe": "Orga nization",  "extensio n": [{ "ur l": "seque nce", "val ueString":  "270-PID- 3.4.1-Assi gningAutho rity" }],  "identifie r": [{ "va lue": "USV HA" }] } } , { "exten sion": [{  "url": "se gment", "v alueString ": "270-PI D-PatientI dentificat ion" }], " resource":  { "resour ceType": " Organizati on", "exte nsion": [{  "url": "s equence",  "valueStri ng": "270- PID-3.6.1- Identifier CodeType"  }], "ident ifier": [{  "value":  "SOFTWARE  SERVICE" } ] } }, { " extension" : [{ "url" : "segment ", "valueS tring": "2 70-GT1-Gua rantor" }] , "resourc e": { "res ourceType" : "Related Person", " identifier ": [{ "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -GT1-2.1-I D" }], "ty pe": { "co ding": [{  "code": "C ODE_ONE" } ] }, "valu e": "ID_ON E" }, { "e xtension":  [{ "url":  "sequence ", "valueS tring": "2 70-GT1-2.2 -CheckDigi t" }], "ty pe": { "co ding": [{  "code": "C ODE_ONE" } ] }, "valu e": "ID_TW O" }], "na me": [{ "f amily": "F amily", "g iven": ["G iven_1", " Given_2"],  "prefix":  ["DR", "S IR"], "suf fix": ["PH D", "MS"]  }], "gende r": "femal e", "birth Date": "20 18-05-14",  "address" : [{ "line ": ["1425  Main Stree t", "Suite  123"], "c ity": "Riv erview", " state": "F L", "posta lCode": "3 3578", "co untry": "U SA" }] } } ] }
  13  
  14           le t names =  $tas.fhir. summarize( data)
  15           de bug(names)
  16           ex pect(names .length).t o.eq(8)
  17       })
  18  
  19       it("gr oup fhir r esources",  async ()  => {
  20           co nst data =  { "resour ceType": " Bundle", " id": "2f17 4746-f08a- 466b-8fd3- 1fa9ef37ed b7", "meta ": { "last Updated":  "2018-05-1 4T14:13:27 .829-04:00 " }, "type ": "transa ction", "l ink": [{ " relation":  "self", " url": "htt p://aws-ap p.mccf.hal fakerlabs. com:8080/V A-FHIR-Ser ver/fhir/B undle?_id= 1&location =001&trans action=270 " }], "ent ry": [{ "e xtension":  [{ "url":  "segment" , "valueSt ring": "27 0-MSH-Mess ageHeader"  }], "reso urce": { " resourceTy pe": "Mess ageHeader" , "id": "I D", "event ": { "code ": "EVENT"  }, "desti nation": [ { "name":  "DESTINATI ON" }], "t imestamp":  "2018-05- 14T14:13:2 7.737-04:0 0", "sourc e": { "ver sion": "2. 4" }, "rea son": { "c oding": [{  "code": " I01" }] }  } }, { "ex tension":  [{ "url":  "segment",  "valueStr ing": "270 -MSH-Messa geHeader"  }], "resou rce": { "r esourceTyp e": "Locat ion", "ide ntifier":  [{ "extens ion": [{ " url": "seq uence", "v alueString ": "270-MS H-4-Sendin gFacility"  }], "type ": { "codi ng": [{ "c ode": "DNS " }] }, "s ystem": "S OFTWARE SE RVICE", "v alue": "FO IA.DOMAIN. EXT" }, {  "extension ": [{ "url ": "sequen ce", "valu eString":  "270-MSH-5 -Receiving Applicatio n" }], "sy stem": "II V EC" }, {  "extensio n": [{ "ur l": "seque nce", "val ueString":  "270-MSH- 6-Receivin gFacility"  }], "type ": { "codi ng": [{ "c ode": "DNS " }] }, "s ystem": "S YSTEM" }],  "address" : { "count ry": "USA"  } } }, {  "extension ": [{ "url ": "segmen t", "value String": " 270-MSH-Me ssageHeade r" }], "re source": {  "resource Type": "Pr ocessReque st", "iden tifier": [ { "value":  "producti on" }] } } , { "exten sion": [{  "url": "se gment", "v alueString ": "270-MS H-MessageH eader" }],  "resource ": { "reso urceType":  "Basic",  "extension ": [{ "url ": "sequen ce", "valu eString":  "270-MSH-1 5-AcceptAc knowledgme nt" }] } } , { "exten sion": [{  "url": "se gment", "v alueString ": "270-MS H-MessageH eader" }],  "resource ": { "reso urceType":  "Basic",  "extension ": [{ "url ": "sequen ce", "valu eString":  "270-MSH-1 6-Applicat ionAcknowl edgmentTyp e" }], "co de": { "co ding": [{  "code": "N E" }] } }  }, { "exte nsion": [{  "url": "s egment", " valueStrin g": "270-P RD-Provide rData" }],  "resource ": { "reso urceType":  "Practiti onerRole",  "identifi er": [{ "v alue": "N/ A" }] } },  { "extens ion": [{ " url": "seg ment", "va lueString" : "270-PID -PatientId entificati on" }], "r esource":  { "resourc eType": "B asic", "ex tension":  [{ "url":  "sequence" , "valueSt ring": "27 0-PID-1-Se tIDPID" }] , "identif ier": [{ " value": "1 " }] } },  { "extensi on": [{ "u rl": "segm ent", "val ueString":  "270-PID- PatientIde ntificatio n" }], "re source": {  "resource Type": "Ba sic", "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -PID-3-Pat ientIdenti fierList"  }], "ident ifier": [{  "value":  "VALUE" }] , "code":  { "coding" : [{ "code ": "CODE"  }] } } },  { "extensi on": [{ "u rl": "segm ent", "val ueString":  "270-PID- PatientIde ntificatio n" }], "re source": {  "resource Type": "Ba sic", "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -PID-10-Ra ce" }], "c ode": { "c oding": [{  "code": " RACE" }] }  } }, { "e xtension":  [{ "url":  "segment" , "valueSt ring": "27 0-PID-Pati entIdentif ication" } ], "resour ce": { "re sourceType ": "Basic" , "created ": "2018-0 5-14" } },  { "extens ion": [{ " url": "seg ment", "va lueString" : "270-GT1 -Guarantor " }], "res ource": {  "resourceT ype": "Bas ic", "crea ted": "201 8-05-14" }  }, { "ext ension": [ { "url": " segment",  "valueStri ng": "270- PID-Patien tIdentific ation" }],  "resource ": { "reso urceType":  "Patient" , "text":  { "status" : "generat ed", "div" : "<div xm lns=\"http ://www.w3. org/1999/x html\"><di v class=\" hapiHeader Text\">DR  SIR PATIEN T N <b>FOU RTEEN </b>  PHD MS</d iv><table  class=\"ha piProperty Table\"><t body><tr>< td>Identif ier</td><t d/></tr><t r><td>Addr ess</td><t d><span>23  MAIN ST < /span><br/ ><span>APT  3B </span ><br/><spa n>BOSTON < /span><spa n>NEW YORK  </span></ td></tr><t r><td>Date  of birth< /td><td><s pan>14 May  2018</spa n></td></t r></tbody> </table></ div>" }, " identifier ": [{ "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -PID-3-Pat ientIdenti fierList"  }], "type" : { "codin g": [{ "co de": "NI"  }] } }, {  "extension ": [{ "url ": "sequen ce", "valu eString":  "270-PID-1 9-SSN" }]  }], "name" : [{ "exte nsion": [{  "url": "s equence",  "valueStri ng": "270- PID-5-Pati entName" } ], "family ": "FOURTE EN", "give n": ["PATI ENT", "N"] , "prefix" : ["DR", " SIR"], "su ffix": ["P HD", "MS"]  }, { "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -PID-9-Pat ientAlias"  }], "fami ly": "ALIA S" }], "ge nder": "ma le", "birt hDate": "2 018-05-14" , "address ": [{ "lin e": ["23 M AIN ST", " APT 3B"],  "city": "B OSTON", "s tate": "NE W YORK" }]  } }, { "e xtension":  [{ "url":  "segment" , "valueSt ring": "27 0-PID-Pati entIdentif ication" } ], "resour ce": { "re sourceType ": "Organi zation", " extension" : [{ "url" : "sequenc e", "value String": " 270-PID-3. 4.1-Assign ingAuthori ty" }], "i dentifier" : [{ "valu e": "USVHA " }] } },  { "extensi on": [{ "u rl": "segm ent", "val ueString":  "270-PID- PatientIde ntificatio n" }], "re source": {  "resource Type": "Or ganization ", "extens ion": [{ " url": "seq uence", "v alueString ": "270-PI D-3.6.1-Id entifierCo deType" }] , "identif ier": [{ " value": "S OFTWARE SE RVICE" }]  } }, { "ex tension":  [{ "url":  "segment",  "valueStr ing": "270 -GT1-Guara ntor" }],  "resource" : { "resou rceType":  "RelatedPe rson", "id entifier":  [{ "exten sion": [{  "url": "se quence", " valueStrin g": "270-G T1-2.1-ID"  }], "type ": { "codi ng": [{ "c ode": "COD E_ONE" }]  }, "value" : "ID_ONE"  }, { "ext ension": [ { "url": " sequence",  "valueStr ing": "270 -GT1-2.2-C heckDigit"  }], "type ": { "codi ng": [{ "c ode": "COD E_ONE" }]  }, "value" : "ID_TWO"  }], "name ": [{ "fam ily": "Fam ily", "giv en": ["Giv en_1", "Gi ven_2"], " prefix": [ "DR", "SIR "], "suffi x": ["PHD" , "MS"] }] , "gender" : "female" , "birthDa te": "2018 -05-14", " address":  [{ "line":  ["1425 Ma in Street" , "Suite 1 23"], "cit y": "River view", "st ate": "FL" , "postalC ode": "335 78", "coun try": "USA " }] } }]  }
  21           le t groups =  $tas.fhir .groupByRe sourceType (data)
  22           de bug(groups )
  23           ex pect(Objec t.keys(gro ups).lengt h).to.eq(8 )
  24       })
  25  
  26       // it( "load exte nsion data ", async ( ) => {
  27       //      const cla imResponse Data = { " resourceTy pe": "Bund le", "id":  "cf6da442 -2169-4dfe -832d-17df 0c88f6d9",  "meta": {  "lastUpda ted": "201 8-05-15T13 :59:43.633 -04:00" },  "type": " searchset" , "total":  1, "link" : [{ "rela tion": "se lf", "url" : "http:// aws-app.mc cf.halfake rlabs.com: 8080/VA-FH IR-Server/ fhir/Claim Response?_ format=jso n&_id=1&lo cation=001 " }], "ent ry": [{ "f ullUrl": " http://aws -app.mccf. halfakerla bs.com:808 0/VA-FHIR- Server/fhi r/ClaimRes ponse/1",  "resource" : { "resou rceType":  "ClaimResp onse", "id ": "1", "e xtension":  [{ "url":  "PAPER_EO B_ENTRY",  "valueBool ean": fals e }, { "ur l": "PAYER _ID", "val ueReferenc e": { "ref erence": " Organizati on/1" } },  { "url":  "INDIVIDUA L_EOB_COUN T", "value String": " 4" }, { "u rl": "DATE _TIME_PROC ESSED", "v alueDate":  "2017-12- 18" }, { " url": "DAT E_EDITED",  "valueDat e": "2017- 10-11" },  { "url": " OLD_STATUS ", "valueS tring": "P ARTIAL" },  { "url":  "NEW_STATU S", "value String": " PARTIAL" } , { "url":  "dateRang e2", "valu eDate": "2 017-04-17"  }, { "url ": "dateRa nge3", "va lueDate":  "2017-10-1 1" }], "id entifier":  [{ "syste m": "urn:v a:vista:cl aimrespons e", "value ": "1" },  { "system" : "urn:va: vista:trac enumber",  "value": " 123" }, {  "system":  "urn:va:vi sta:tracen umber2", " value": "1 23" }, { " system": " urn:va:vis ta:eranumb er", "valu e": "1" },  { "system ": "urn:va :vista:tra cenumber",  "value":  "1" }], "c reated": " 2017-04-17 T13:59:43- 04:00", "r equest": {  "referenc e": "Claim /3" }, "di sposition" : "UNMATCH ED", "item ": [{ "seq uenceLinkI d": 1, "ad judication ": [{ "cat egory": {  "coding":  [{ "code":  "EXAMPLE"  }] }, "re ason": { " coding": [ { "code":  "ALL IN TH E FAMILY",  "display" : "THIS IS  THE REAL  REASON" }]  }, "amoun t": { "val ue": 1212. 0, "unit":  "USD", "s ystem": "u rn:iso:std :iso:4217" , "code":  "USD" }, " value": 3. 0 }] }], " payment":  { "extensi on": [{ "u rl": "amou nt2", "val ueMoney":  { "value":  50.0, "un it": "USD" , "system" : "urn:iso :std:iso:4 217", "cod e": "USD"  } }, { "ur l": "amoun t3", "valu eMoney": {  "value":  50.0, "uni t": "USD",  "system":  "urn:iso: std:iso:42 17", "code ": "USD" }  }, { "url ": "dateRe ceived", " valueDate" : "2017-04 -17" }, {  "url": "da tePosted",  "valueDat e": "2017- 04-17" },  { "url": " PaymentIEN ", "valueI dentifier" : { "syste m": "urn:v a:vista:ie n", "value ": "1" } } , { "url":  "ReceiptN o2", "valu eIdentifie r": { "sys tem": "urn :va:vista: receipt",  "value": " B222222" }  }], "amou nt": { "va lue": 50.0 , "unit":  "USD", "sy stem": "ur n:iso:std: iso:4217",  "code": " USD" }, "i dentifier" : { "syste m": "urn:v a:vista:ef ttransacti on", "valu e": "1" }  }, "proces sNote": [{  "text": " oldstatusc hnged" }]  } }] }
  28  
  29       //      const _ex tensions =  $tas.help ers.jmespa th.search( claimRespo nseData, " entry[*].r esource[]. extension[ ]")
  30       //      const ext ensions =  $tas.fhir. createExte nsionObjec t(_extensi ons)
  31       //      debug(ext ensions)
  32       //      expect(Ob ject.keys( extensions ).length). to.eq(_ext ensions.le ngth)
  33       //      expect(ex tensions[" dateTimePr ocessed"]) .to.eq("20 17-12-18")
  34       // })
  35  
  36       // it( "load iden tifier dat a", async  () => {
  37       //      const cla imResponse Data = { " resourceTy pe": "Bund le", "id":  "cf6da442 -2169-4dfe -832d-17df 0c88f6d9",  "meta": {  "lastUpda ted": "201 8-05-15T13 :59:43.633 -04:00" },  "type": " searchset" , "total":  1, "link" : [{ "rela tion": "se lf", "url" : "http:// aws-app.mc cf.halfake rlabs.com: 8080/VA-FH IR-Server/ fhir/Claim Response?_ format=jso n&_id=1&lo cation=001 " }], "ent ry": [{ "f ullUrl": " http://aws -app.mccf. halfakerla bs.com:808 0/VA-FHIR- Server/fhi r/ClaimRes ponse/1",  "resource" : { "resou rceType":  "ClaimResp onse", "id ": "1", "e xtension":  [{ "url":  "PAPER_EO B_ENTRY",  "valueBool ean": fals e }, { "ur l": "PAYER _ID", "val ueReferenc e": { "ref erence": " Organizati on/1" } },  { "url":  "INDIVIDUA L_EOB_COUN T", "value String": " 4" }, { "u rl": "DATE _TIME_PROC ESSED", "v alueDate":  "2017-12- 18" }, { " url": "DAT E_EDITED",  "valueDat e": "2017- 10-11" },  { "url": " OLD_STATUS ", "valueS tring": "P ARTIAL" },  { "url":  "NEW_STATU S", "value String": " PARTIAL" } , { "url":  "dateRang e2", "valu eDate": "2 017-04-17"  }, { "url ": "dateRa nge3", "va lueDate":  "2017-10-1 1" }], "id entifier":  [{ "syste m": "urn:v a:vista:cl aimrespons e", "value ": "1" },  { "system" : "urn:va: vista:trac enumber",  "value": " 123" }, {  "system":  "urn:va:vi sta:tracen umber2", " value": "1 23" }, { " system": " urn:va:vis ta:eranumb er", "valu e": "1" },  { "system ": "urn:va :vista:tra cenumber",  "value":  "1" }], "c reated": " 2017-04-17 T13:59:43- 04:00", "r equest": {  "referenc e": "Claim /3" }, "di sposition" : "UNMATCH ED", "item ": [{ "seq uenceLinkI d": 1, "ad judication ": [{ "cat egory": {  "coding":  [{ "code":  "EXAMPLE"  }] }, "re ason": { " coding": [ { "code":  "ALL IN TH E FAMILY",  "display" : "THIS IS  THE REAL  REASON" }]  }, "amoun t": { "val ue": 1212. 0, "unit":  "USD", "s ystem": "u rn:iso:std :iso:4217" , "code":  "USD" }, " value": 3. 0 }] }], " payment":  { "extensi on": [{ "u rl": "amou nt2", "val ueMoney":  { "value":  50.0, "un it": "USD" , "system" : "urn:iso :std:iso:4 217", "cod e": "USD"  } }, { "ur l": "amoun t3", "valu eMoney": {  "value":  50.0, "uni t": "USD",  "system":  "urn:iso: std:iso:42 17", "code ": "USD" }  }, { "url ": "dateRe ceived", " valueDate" : "2017-04 -17" }, {  "url": "da tePosted",  "valueDat e": "2017- 04-17" },  { "url": " PaymentIEN ", "valueI dentifier" : { "syste m": "urn:v a:vista:ie n", "value ": "1" } } , { "url":  "ReceiptN o2", "valu eIdentifie r": { "sys tem": "urn :va:vista: receipt",  "value": " B222222" }  }], "amou nt": { "va lue": 50.0 , "unit":  "USD", "sy stem": "ur n:iso:std: iso:4217",  "code": " USD" }, "i dentifier" : { "syste m": "urn:v a:vista:ef ttransacti on", "valu e": "1" }  }, "proces sNote": [{  "text": " oldstatusc hnged" }]  } }] }
  38  
  39       //      const _id entifiers  = $tas.hel pers.jmesp ath.search (claimResp onseData,  "entry[*]. resource[] .identifie r[]")
  40       //      const ide ntifiers =  $tas.fhir .createIde ntifierObj ect(_ident ifiers)
  41       //      debug(ide ntifiers)
  42       //      expect(Ob ject.keys( identifier s).length) .to.eq(4)
  43       //      expect(id entifiers[ "tracenumb er2"]).to. eq("123")
  44       // })
  45  
  46       // it( "load paym ent data",  async ()  => {
  47       //      const cla imResponse Data = { " resourceTy pe": "Bund le", "id":  "cf6da442 -2169-4dfe -832d-17df 0c88f6d9",  "meta": {  "lastUpda ted": "201 8-05-15T13 :59:43.633 -04:00" },  "type": " searchset" , "total":  1, "link" : [{ "rela tion": "se lf", "url" : "http:// aws-app.mc cf.halfake rlabs.com: 8080/VA-FH IR-Server/ fhir/Claim Response?_ format=jso n&_id=1&lo cation=001 " }], "ent ry": [{ "f ullUrl": " http://aws -app.mccf. halfakerla bs.com:808 0/VA-FHIR- Server/fhi r/ClaimRes ponse/1",  "resource" : { "resou rceType":  "ClaimResp onse", "id ": "1", "e xtension":  [{ "url":  "PAPER_EO B_ENTRY",  "valueBool ean": fals e }, { "ur l": "PAYER _ID", "val ueReferenc e": { "ref erence": " Organizati on/1" } },  { "url":  "INDIVIDUA L_EOB_COUN T", "value String": " 4" }, { "u rl": "DATE _TIME_PROC ESSED", "v alueDate":  "2017-12- 18" }, { " url": "DAT E_EDITED",  "valueDat e": "2017- 10-11" },  { "url": " OLD_STATUS ", "valueS tring": "P ARTIAL" },  { "url":  "NEW_STATU S", "value String": " PARTIAL" } , { "url":  "dateRang e2", "valu eDate": "2 017-04-17"  }, { "url ": "dateRa nge3", "va lueDate":  "2017-10-1 1" }], "id entifier":  [{ "syste m": "urn:v a:vista:cl aimrespons e", "value ": "1" },  { "system" : "urn:va: vista:trac enumber",  "value": " 123" }, {  "system":  "urn:va:vi sta:tracen umber2", " value": "1 23" }, { " system": " urn:va:vis ta:eranumb er", "valu e": "1" },  { "system ": "urn:va :vista:tra cenumber",  "value":  "1" }], "c reated": " 2017-04-17 T13:59:43- 04:00", "r equest": {  "referenc e": "Claim /3" }, "di sposition" : "UNMATCH ED", "item ": [{ "seq uenceLinkI d": 1, "ad judication ": [{ "cat egory": {  "coding":  [{ "code":  "EXAMPLE"  }] }, "re ason": { " coding": [ { "code":  "ALL IN TH E FAMILY",  "display" : "THIS IS  THE REAL  REASON" }]  }, "amoun t": { "val ue": 1212. 0, "unit":  "USD", "s ystem": "u rn:iso:std :iso:4217" , "code":  "USD" }, " value": 3. 0 }] }], " payment":  { "extensi on": [{ "u rl": "amou nt2", "val ueMoney":  { "value":  50.0, "un it": "USD" , "system" : "urn:iso :std:iso:4 217", "cod e": "USD"  } }, { "ur l": "amoun t3", "valu eMoney": {  "value":  50.0, "uni t": "USD",  "system":  "urn:iso: std:iso:42 17", "code ": "USD" }  }, { "url ": "dateRe ceived", " valueDate" : "2017-04 -17" }, {  "url": "da tePosted",  "valueDat e": "2017- 04-17" },  { "url": " PaymentIEN ", "valueI dentifier" : { "syste m": "urn:v a:vista:ie n", "value ": "1" } } , { "url":  "ReceiptN o2", "valu eIdentifie r": { "sys tem": "urn :va:vista: receipt",  "value": " B222222" }  }], "amou nt": { "va lue": 50.0 , "unit":  "USD", "sy stem": "ur n:iso:std: iso:4217",  "code": " USD" }, "i dentifier" : { "syste m": "urn:v a:vista:ef ttransacti on", "valu e": "1" }  }, "proces sNote": [{  "text": " oldstatusc hnged" }]  } }] }
  48  
  49       //      const _ex tensions =  $tas.help ers.jmespa th.search( claimRespo nseData, " entry[*].r esource[]. payment.ex tension[]" )
  50       //      const ext ensions =  $tas.fhir. createPaym entObject( _extension s)
  51       //      debug(ext ensions)
  52       //      expect(Ob ject.keys( extensions ).length). to.eq(_ext ensions.le ngth)
  53       //      expect(ex tensions[" ReceiptNo2 "]).to.eq( "B222222")
  54       // })
  55   })