4016. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:14 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.

4016.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:14 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\test\java\gov\va\nvap\server\test\endpoint\pdq TestPatientDemographicsSchema.java Fri Apr 21 20:03:28 2017 UTC

4016.2 Comparison summary

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

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

4016.4 Active regular expressions

No regular expressions were active.

4016.5 Comparison detail

        1   package go v.va.nvap. server.tes t.endpoint .pdq;
        2  
        3   import gov .va.nvap.c ommon.jaxb .JaxbUtil;
        4   import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception;
        5   import gov .va.nvap.s erver.test .common.Ab stractTest Case;
        6   import gov .va.nvap.s ervice.pdq .PatientDe mographics ;
        7   import gov .va.nvap.s ervice.pdq .PatientDe mographics Response;
        8   import gov .va.nvap.s ervice.pdq .PatientMa tchQuery;
        9   import gov .va.nvap.s ervice.pdq .PatientMa tchRespons e;
        10   import gov .va.nvap.s ervice.pdq .PatientPr ofile;
        11   import gov .va.nvap.s ervice.pdq .PatientMa tchRespons e.Patients ;
        12  
        13   import jav a.util.Dat e;
        14  
        15   import jav ax.annotat ion.Resour ce;
        16   import jav ax.xml.bin d.JAXBExce ption;
        17  
        18   import jun it.framewo rk.Assert;
        19  
        20   import org .junit.Tes t;
        21   import org .w3c.dom.D ocument;
        22  
        23   public cla ss TestPat ientDemogr aphicsSche ma extends  AbstractT estCase {
        24  
        25           @R esource(na me = "pdqJ axbHelper" )
        26           pr ivate Jaxb Util jaxbH elper;
        27  
        28           @T est
        29           pu blic void  testPatien tDemograph icsRespons e() throws  JAXBExcep tion,
        30                             Transf ormerExcep tion {
        31  
        32                    fina l PatientD emographic s patientD emographic s = new Pa tientDemog raphics();
        33                    pati entDemogra phics.setF irstName(" CHDRONE");
        34                    pati entDemogra phics.setL astName("C HDRZZZTEST PATIENT");
        35                    pati entDemogra phics.setS sn("666000 01");
        36                    pati entDemogra phics.setD ob(new Dat e());
        37                    pati entDemogra phics.setM iddleName( "C");
        38                    pati entDemogra phics.setG ender("F") ;
        39  
        40                    fina l PatientD emographic sResponse  response =  new Patie ntDemograp hicsRespon se();
        41                    resp onse.setPa tientDemog raphics(pa tientDemog raphics);
        42  
        43                    fina l Document  doc = thi s.jaxbHelp er.marshal (response) ;
        44  
        45                    fina l PatientD emographic sResponse  patientDem ographicsR esponseUma rshalled =  (PatientD emographic sResponse)  this.jaxb Helper
        46                                      .unmarsh al(doc);
        47                    Asse rt.assertE quals("CHD RONE", pat ientDemogr aphicsResp onseUmarsh alled
        48                                      .getPati entDemogra phics().ge tFirstName ());
        49           }
        50  
        51           @T est
        52           pu blic void  testPatien tMatchResp onse() thr ows JAXBEx ception,
        53                             Transf ormerExcep tion {
        54                    fina l PatientP rofile pat ientA = ne w PatientP rofile();
        55                    pati entA.setFi rstName("C HDRONE");
        56                    pati entA.setLa stName("CH DRZZZTESTP ATIENT");
        57                    pati entA.setSs n("6660000 01");
        58                    pati entA.setDo b(new Date (System.cu rrentTimeM illis()));
        59                    pati entA.setMi ddleInitia l("C");
        60                    pati entA.setGe nder("F");
        61  
        62                    fina l PatientP rofile pat ientB = ne w PatientP rofile();
        63                    pati entB.setFi rstName("C HDRTWO");
        64                    pati entB.setLa stName("CH DRZZZTESTP ATIENT");
        65                    pati entB.setSs n("6660000 02");
        66  
        67                    fina l PatientM atchRespon se patient MatchRespo nse = new  PatientMat chResponse ();
        68                    fina l Patients  patients  = new Pati ents();
        69                    pati ents.getPa tientProfi le().add(p atientA);
        70                    pati ents.getPa tientProfi le().add(p atientB);
        71                    pati entMatchRe sponse.set Patients(p atients);
        72  
        73                    fina l Document  doc = thi s.jaxbHelp er.marshal (patientMa tchRespons e);
        74  
        75                    fina l PatientM atchRespon se patient MatchRespo nseUnMarsh alled = (P atientMatc hResponse)  this.jaxb Helper
        76                                      .unmarsh al(doc);
        77                    Asse rt.assertE quals(pati entMatchRe sponseUnMa rshalled.g etPatients ()
        78                                      .getPati entProfile ().get(0). getSsn(),  patientA.g etSsn());
        79           }
        80  
        81           @T est
        82           pu blic void  testPatien tSearchReq uest() thr ows JAXBEx ception,
        83                             Transf ormerExcep tion {
        84                    fina l PatientP rofile pat ient = new  PatientPr ofile();
        85                    pati ent.setFir stName("CH DRONE");
        86                    pati ent.setLas tName("CHD RZZZTESTPA TIENT");
        87                    pati ent.setSsn ("66600000 1");
        88                    fina l PatientM atchQuery  patientMat chRequest  = new Pati entMatchQu ery();
        89                    pati entMatchRe quest.setP atientProf ile(patien t);
        90  
        91                    fina l Document  doc = thi s.jaxbHelp er.marshal (patientMa tchRequest );
        92                    fina l PatientM atchQuery  patientMat chRequestU nMarshalle d = (Patie ntMatchQue ry) this.j axbHelper
        93                                      .unmarsh al(doc);
        94                    Asse rt.assertE quals(pati entMatchRe questUnMar shalled.ge tPatientPr ofile()
        95                                      .getSsn( ), patient .getSsn()) ;
        96           }
        97   }