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

3804.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\vista MockVistAExtendedViewEndpoint.java Fri Apr 21 20:03:28 2017 UTC

3804.2 Comparison summary

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

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

3804.4 Active regular expressions

No regular expressions were active.

3804.5 Comparison detail

        1   package go v.va.nvap. mock.endpo int.vista;
        2  
        3   import gov .va.nvap.c ommon.endp oint.Endpo intExcepti on;
        4   import gov .va.nvap.c ommon.file .FileUtil;
        5   import gov .va.nvap.c ommon.vali dation.Ass ert;
        6   import gov .va.nvap.m ock.dao.Pa tientProfi leDAO;
        7   import gov .va.nvap.m ock.endpoi nt.mvi.Pat ientProfil e;
        8   import jav a.text.Sim pleDateFor mat;
        9   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        10   import org .springfra mework.con text.Appli cationCont ext;
        11   import org .springfra mework.cor e.io.Resou rce;
        12  
        13   public cla ss MockVis tAExtended ViewEndpoi nt impleme nts
        14                    gov. va.nvap.co mmon.endpo int.Endpoi nt<Object,  String> {
        15  
        16           @A utowired
        17           Ap plicationC ontext app licationCo ntext;
        18  
        19           @O verride
        20           pu blic Strin g invoke(f inal Objec t obj) thr ows Endpoi ntExceptio n {
        21                    try  {
        22                                 As sert.asser tNotEmpty( obj, "ICN  is require d!");
        23  
        24                                 //  CHDRONE
        25                                 if  ("1012581 676V377802 ".contains ((String)  obj)) {
        26                                          fina l Resource  resource  = this.app licationCo ntext
        27                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA. txt");
        28                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        29                                          retu rn extende dViewData;
        30                                 }  else if (" 123456".eq uals(obj))  {
        31                                          fina l Resource  resource  = this.app licationCo ntext
        32                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        33                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        34                                          retu rn extende dViewData;
        35                                 }  else if (" 123457".eq uals(obj))  {
        36                                          fina l Resource  resource  = this.app licationCo ntext
        37                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        38                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        39                                          retu rn extende dViewData;
        40                                 }  else if (" 123458".eq uals(obj))  {
        41                                          fina l Resource  resource  = this.app licationCo ntext
        42                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        43                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        44                                          retu rn extende dViewData;
        45                                 }  else if (" 123460".eq uals(obj))  {
        46                                          fina l Resource  resource  = this.app licationCo ntext
        47                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        48                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        49                                          retu rn extende dViewData;
        50                                 }  else if (" 123459".eq uals(obj))  {
        51                                          fina l Resource  resource  = this.app licationCo ntext
        52                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        53                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        54                                          retu rn extende dViewData;
        55                                 }  else if (" 1111111111 V111111".e quals(obj) ) {
        56                                          fina l Resource  resource  = this.app licationCo ntext
        57                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        58                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        59                                          retu rn extende dViewData;
        60                                 }  else if (" 2222222222 V222222".e quals(obj) ) {
        61                                          fina l Resource  resource  = this.app licationCo ntext
        62                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE_2.txt ");
        63                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        64                                          retu rn extende dViewData;
        65                                 }  else if (" 3333333333 V333333".e quals(obj) ) {
        66                                          fina l Resource  resource  = this.app licationCo ntext
        67                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        68                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        69                                          retu rn extende dViewData;
        70                                 }  else if (" 4444444444 V444444".e quals(obj) ) {
        71                                          fina l Resource  resource  = this.app licationCo ntext
        72                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI RETU RN CORRELA TION DATA_ MPIPATIENT _ONE.txt") ;
        73                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        74                                          retu rn extende dViewData;
        75                                 }  else {
        76                                      // get t he demogra phic data  from the d atabase fo r this use r by ien
        77                                      PatientP rofileDAO  dao = appl icationCon text.getBe an(Patient ProfileDAO .class);
        78                                      PatientP rofile p =  dao.getBy IEN(obj.to String());
        79                                      SimpleDa teFormat i nputFormat  = new Sim pleDateFor mat("yyyy- MM-dd");
        80                                      SimpleDa teFormat o utputForma t = new Si mpleDateFo rmat("MMM  dd, yyyy") ;
        81  
        82                                      Resource  resource  = this.app licationCo ntext.getR esource("c lasspath:g ov/va/nvap /mock/endp oint/vista /mvi/MPI R ETURN CORR ELATION DA TA MACROS. txt");
        83                                      String c orrData =  FileUtil.g etResource (resource) ;
        84  
        85                                      //do the  replaces
        86                                      corrData  = corrDat a.replace( "[ien]", p .getIEN()) ;
        87                                      corrData  = corrDat a.replace( "[ssn]", p .getSSN()) ;
        88                                      corrData  = corrDat a.replace( "[lastname ]", p.getL astName()) ;
        89                                      corrData  = corrDat a.replace( "[firstnam e]", p.get FirstName( ));
        90                                      corrData  = corrDat a.replace( "[middlein itial]", p .getMiddle Initial()) ;
        91                                      corrData  = corrDat a.replace( "[gender]" , p.getGen der().toUp perCase()) ;
        92                                      corrData  = corrDat a.replace( "[dob]", o utputForma t.format(i nputFormat .parse(p.g etDateOfBi rth())).to UpperCase( ));
        93  
        94                                      return c orrData;
        95                                 }
        96                             } catc h (Excepti on ex) {
        97                             throw  new Runtim eException (ex);
        98                    }
        99           }
        100   }