137. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:18 PM Central Standard 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.

137.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\java\vler\exchange\va\gov\data\generation AbstractDataGenerator.java Thu Feb 22 14:22:02 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\java\vler\exchange\va\gov\data\generation AbstractDataGenerator.java Tue Feb 27 14:46:28 2018 UTC

137.2 Comparison summary

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

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

137.4 Active regular expressions

No regular expressions were active.

137.5 Comparison detail

  1   package vl er.exchang e. DNS     .data.gene ration;
  2  
  3   import jav a.io.File;
  4   import jav a.io.FileW riter;
  5   import jav a.text.Sim pleDateFor mat;
  6   import jav a.util.Dat e;
  7  
  8   import org .openhealt htools.mdh t.uml.cda. ccd.CCDFac tory;
  9   import org .openhealt htools.mdh t.uml.cda. ccd.Contin uityOfCare Document;
  10   import org .openhealt htools.mdh t.uml.cda. util.CDAUt il;
  11  
  12   /**
  13    * Abstrac t data gen erator Pri mary respo nsibility  is to crea te the Bas e CCD
  14    * Documen t
  15    * 
  16    * @author  MesserleB
  17    * 
  18    */
  19   public cla ss Abstrac tDataGener ator {
  20  
  21           /* * MDHT CCD  **/
  22           pr ivate Cont inuityOfCa reDocument  document;
  23  
  24           /* * File nam e of the x ml file ** /
  25           pr ivate Stri ng outputF ileName;
  26  
  27           /* *
  28            *  @return t he documen t
  29            * /
  30           pu blic final  Continuit yOfCareDoc ument getD ocument()  {
  31                    retu rn documen t;
  32           }
  33  
  34           /* *
  35            *  @param do cument
  36            *              the docu ment to se t
  37            * /
  38           pu blic final  void setD ocument(Co ntinuityOf CareDocume nt documen t) {
  39                    this .document  = document ;
  40           }
  41  
  42           /* *
  43            *  @return t he outputF ileName
  44            * /
  45           pu blic final  String ge tOutputFil eName() {
  46                    retu rn outputF ileName;
  47           }
  48  
  49           /* *
  50            *  @param ou tputFileNa me
  51            *              the outp utFileName  to set
  52            * /
  53           pu blic final  void setO utputFileN ame(String  outputFil eName) {
  54                    this .outputFil eName = ou tputFileNa me;
  55           }
  56  
  57           pu blic void  generateXm l() throws  Exception  {
  58  
  59                    fina l SimpleDa teFormat d ateformatM MDDYYYY =  new Simple DateFormat ("MMddyyyy HHmmss");
  60                    fina l String s  = datefor matMMDDYYY Y.format(n ew Date()) ;
  61  
  62                    fina l File out file = new  File(this .getOutput FileName()  + s);
  63                    Syst em.out.pri ntln("outp utfile: "  + outfile  + s);
  64  
  65                    // / / if file  doesnt exi sts, then  create it
  66                    // i f (!outfil e.exists() ) {
  67                    // o utfile.cre ateNewFile ();
  68                    // }
  69                    //
  70                    File Writer fw  = new File Writer(out file.getAb soluteFile ());
  71                    CDAU til.save(t his.getDoc ument(), f w);
  72                    fw.f lush();
  73                    fw.c lose();
  74  
  75           }
  76  
  77           /* *
  78            *  Create th e CCD Docu ment
  79            * /
  80           pu blic void  createDocu ment() {
  81                    this .setDocume nt(CCDFact ory.eINSTA NCE.create Continuity OfCareDocu ment().ini t());
  82           }
  83  
  84   }