3800. EPMO Open Source Coordination Office Redaction File Detail Report

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

3800.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:50:36 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-mock\src\main\java\gov\va\nvap\mock\endpoint\mvi MockSocketTransceiver.java Fri Apr 21 20:03:28 2017 UTC

3800.2 Comparison summary

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

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

3800.4 Active regular expressions

No regular expressions were active.

3800.5 Comparison detail

        1   package go v.va.nvap. mock.endpo int.mvi;
        2  
        3   import gov .va.nvap.c ommon.file .FileUtil;
        4   import gov .va.nvap.c ommon.tran sceiver.cl ient.Trans ceiver;
        5   import gov .va.nvap.m ock.dao.Pa tientProfi leDAO;
        6   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        7   import org .springfra mework.con text.Appli cationCont ext;
        8  
        9   public cla ss MockSoc ketTransce iver imple ments Tran sceiver<St ring> {
        10  
        11           @A utowired
        12           Ap plicationC ontext app licationCo ntext;
        13           
        14           @O verride
        15           pu blic Strin g transcei ve(final S tring payl oad) {
        16                    try  {
        17                             if (pa yload.cont ains("QBP~ Q22")
        18                                               && payload .toLowerCa se().conta ins("chdro ne")) {
        19                                 
        20                                 fi nal org.sp ringframew ork.core.i o.Resource  resource  = this.app licationCo ntext
        21                                                   .getRe source("cl asspath:go v/va/nvap/ mock/endpo int/mvi/RS P_K22_Sing leMatch.er 7");
        22                                 fi nal String  rspK22ER7  = FileUti l.getResou rce(resour ce);
        23                                 re turn rspK2 2ER7;
        24                             }
        25                             if (pa yload.cont ains("QBP~ Q22")
        26                                               && payload .toLowerCa se().conta ins("mpipa tient")
        27                                               && payload .contains( "ONE")) {
        28                                      final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext
        29                                                       .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ MultipleMa tches.er7" );
        30                                      final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source);
        31                                      return r spK22ER7;
        32                             } else  if (paylo ad.contain s("QBP~Q22 ")
        33                                               && payload .toLowerCa se().conta ins("chdrt wo")) {
        34                                      final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext
        35                                                       .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ MultipleMa tches.er7" );
        36                                      final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source);
        37                                      return r spK22ER7;
        38                             } else  if (paylo ad.contain s("QBP~Q22 ")
        39                                               && payload .toLowerCa se().conta ins("error ")) {
        40                                      final or g.springfr amework.co re.io.Reso urce resou rce = this .applicati onContext
        41                                                       .g etResource ("classpat h:gov/va/n vap/mock/e ndpoint/mv i/RSP_K22_ Failure.er 7");
        42                                      final St ring rspK2 2ER7 = Fil eUtil.getR esource(re source);
        43                                      return r spK22ER7;
        44                             } else  {
        45                                 Pa tientProfi leDAO dao  = applicat ionContext .getBean(P atientProf ileDAO.cla ss);
        46                             
        47                                 //  get the s sn, firstn ame, and l astname fr om the pay load
        48                                 St ring list[ ] = payloa d.split("~ ");
        49                                 St ring ssn =  list[19];
        50                                 St ring lastN ame = list [5];
        51                                 St ring first Name = lis t[6];
        52  
        53                                 // get the pa yload from  the datab ase based  on the par ams passed
        54                                 St ring load  = dao.getP ayload(ssn , lastName , firstNam e);
        55  
        56                                 re turn load;
        57                             }
        58                    } ca tch (final  Exception  ex) {
        59                             throw  new Runtim eException (ex);
        60                    }
        61           }
        62  
        63   }