3142. EPMO Open Source Coordination Office Redaction File Detail Report

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

3142.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:49 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-client\src\main\java\gov\va\nvap\svc\consenteval\common PatientIdUtil.java Fri Apr 21 20:15:58 2017 UTC

3142.2 Comparison summary

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

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

3142.4 Active regular expressions

No regular expressions were active.

3142.5 Comparison detail

        1   package go v.va.nvap. svc.consen teval.comm on;
        2  
        3   import jav a.util.log ging.Level ;
        4   import jav a.util.log ging.Logge r;
        5  
        6   public cla ss Patient IdUtil {
        7  
        8           pr ivate stat ic final L ogger logg er = Logge r.getLogge r(PatientI dUtil.clas s
        9                             .getNa me());
        10  
        11           /* *
        12            *  Parse an  optionally  HL7 V2 CX  encoded p atient ide ntifier. I f the pati ent
        13            *  identifie r is not H L7 CX enco ded, the o riginal id  will be r eturned. T he
        14            *  format of  an HL7 CX  encoded p atient id  is
        15            *  "<id>^^^& <home coum munity id> &ISO"
        16            *  
        17            *  @param re ceivedPati entId
        18            *              Optional ly HL7 enc oded patie nt identif ier
        19            *  @return P arsed pati ent id
        20            * /
        21           pu blic stati c String p arsePatien tIdFromHL7 CXType(
        22                             final  String rec eivedPatie ntId) {
        23                    if ( PatientIdU til.logger .isLoggabl e(Level.FI NEST)) {
        24                             Patien tIdUtil.lo gger.logp( Level.FINE ST, "Patie ntIdUtil",
        25                                               "parsePati entIdFromH L7V2CXType ", "Parsin g patient  id: ["
        26                                                                + re ceivedPati entId + "] ");
        27                    }
        28  
        29                    Stri ng patient Id = recei vedPatient Id;
        30                    if ( (patientId  != null)  && (patien tId.length () > 0)) {
        31                             // In  some cases  we see a  quote - in  others we  do not. S o lets str ip
        32                             // the m off if w e see them .
        33                             // --- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        34                             if ((p atientId.s tartsWith( "'")) && ( patientId. length() >  1)) {
        35                                      final St ringBuffer  sbPatient Id = new S tringBuffe r(patientI d);
        36                                      if (pati entId.ends With("'"))  {
        37                                               sbPatientI d.deleteCh arAt(sbPat ientId.len gth() - 1) ; // strip
        38                                                                                                                                                                 // off
        39                                                                                                                                                                 // the
        40                                                                                                                                                                 // end ing
        41                                                                                                                                                                 // quo te
        42                                      }
        43                                      sbPatien tId.delete CharAt(0);  // strip  off the fi rst char q uote
        44  
        45                                      patientI d = sbPati entId.toSt ring();
        46                             }
        47  
        48                             final  int compon entIndex =  patientId .indexOf(" ^");
        49  
        50                             if (co mponentInd ex != -1)  {
        51                                      patientI d = patien tId.substr ing(0, com ponentInde x);
        52                             }
        53  
        54                             if (Pa tientIdUti l.logger.i sLoggable( Level.FINE ST)) {
        55                                      PatientI dUtil.logg er.logp(Le vel.FINEST , "Patient IdUtil",
        56                                                       "p arsePatien tIdFromHL7 V2CXType",  "Parsed p atient id:  ["
        57                                                                         + rece ivedPatien tId + "]") ;
        58                             }
        59  
        60                    }
        61                    retu rn patient Id;
        62           }
        63   }