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

3805.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 MockVistAPrimaryViewEndpoint.java Fri Apr 21 20:03:28 2017 UTC

3805.2 Comparison summary

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

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

3805.4 Active regular expressions

No regular expressions were active.

3805.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 tAPrimaryV iewEndpoin t implemen ts
        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_PRIMARY _VIEW_DATA .txt");
        28                                          fina l String p rimaryView Data = Fil eUtil.getR esource(re source);
        29                                          retu rn primary ViewData;
        30                                 }  else if (" 1111111111 V111111".e quals(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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        33                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        34                                          retu rn extende dViewData;
        35                                 }  else if (" 123456".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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        38                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        39                                          retu rn extende dViewData;
        40                                 }  else if (" 123457".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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        43                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        44                                          retu rn extende dViewData;
        45                                 }  else if (" 123458".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_PRIMARY _VIEW_DATA _MPIPATIEN T_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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        53                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        54                                          retu rn extende dViewData;
        55                                 }  else if (" 123460".eq uals(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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        58                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        59                                          retu rn extende dViewData;
        60                                 }  else if (" 123461".eq uals(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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        63                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        64                                          retu rn extende dViewData;
        65                                 }  else if (" 2222222222 V222222".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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE_2.tx t");
        68                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        69                                          retu rn extende dViewData;
        70                                 }  else if (" 3333333333 V333333".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_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        73                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        74                                          retu rn extende dViewData;
        75                                 }  else if (" 4444444444 V444444".e quals(obj) ) {
        76                                          fina l Resource  resource  = this.app licationCo ntext
        77                                                            .getReso urce("clas spath:gov/ va/nvap/mo ck/endpoin t/vista/mv i/MPI_RETU RN_PRIMARY _VIEW_DATA _MPIPATIEN T_ONE.txt" );
        78                                          fina l String e xtendedVie wData = Fi leUtil.get Resource(r esource);
        79                                          retu rn extende dViewData;
        80                                 }  else {
        81                                      // get t he demogra phic data  from the d atabase fo r this use r by ien
        82                                      PatientP rofileDAO  dao = appl icationCon text.getBe an(Patient ProfileDAO .class);
        83                                      PatientP rofile p =  dao.getBy IEN(obj.to String());
        84                                      SimpleDa teFormat i nputFormat  = new Sim pleDateFor mat("yyyy- MM-dd");
        85                                      SimpleDa teFormat o utputForma t = new Si mpleDateFo rmat("MMM  dd, yyyy") ;
        86  
        87                                      Resource  resource  = this.app licationCo ntext.getR esource("c lasspath:g ov/va/nvap /mock/endp oint/vista /mvi/MPI_R ETURN_PRIM ARY_VIEW_D ATA_MACROS .txt");
        88                                      String p rimaryData  = FileUti l.getResou rce(resour ce);
        89  
        90                                      //do the  replaces
        91                                      primaryD ata = prim aryData.re place("[ie n]", p.get IEN());
        92                                      primaryD ata = prim aryData.re place("[ss n]", p.get SSN());
        93                                      primaryD ata = prim aryData.re place("[la stname]",  p.getLastN ame());
        94                                      primaryD ata = prim aryData.re place("[fi rstname]",  p.getFirs tName());
        95                                      primaryD ata = prim aryData.re place("[mi ddleinitia l]", p.get MiddleInit ial());
        96                                      primaryD ata = prim aryData.re place("[ge nder]", p. getGender( ).toUpperC ase());
        97                                      primaryD ata = prim aryData.re place("[do b]", outpu tFormat.fo rmat(input Format.par se(p.getDa teOfBirth( ))).toUppe rCase());
        98  
        99                                      return p rimaryData ;
        100                                 }
        101                             } catc h (final E xception e x) {
        102                             throw  new Runtim eException (ex);
        103                    }
        104           }
        105   }