142. EPMO Open Source Coordination Office Redaction File Detail Report

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

142.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\java\vler\exchange\va\gov\unit\tests CreateSamples.java Thu Feb 22 14:22:02 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\java\vler\exchange\va\gov\unit\tests CreateSamples.java Tue Feb 27 14:46:31 2018 UTC

142.2 Comparison summary

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

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

142.4 Active regular expressions

No regular expressions were active.

142.5 Comparison detail

  1   package vl er.exchang e. DNS     .unit.test s;
  2  
  3   import gov .va.ccd.co mponents.i mpl.Encoun terCompone nt;
  4   import gov .va.ccd.co mponents.i mpl.PlanOf Care;
  5  
  6   import jav a.io.File;
  7   import jav a.io.FileO utputStrea m;
  8   import jav a.io.Outpu tStreamWri ter;
  9  
  10   import org .junit.Tes t;
  11   import org .openhealt htools.mdh t.uml.cda. Supply;
  12   import org .openhealt htools.mdh t.uml.cda. ccd.CCDFac tory;
  13   import org .openhealt htools.mdh t.uml.cda. ccd.Contin uityOfCare Document;
  14   import org .openhealt htools.mdh t.uml.cda. ccd.Encoun tersSectio n;
  15   import org .openhealt htools.mdh t.uml.cda. ccd.PlanOf CareSectio n;
  16   import org .openhealt htools.mdh t.uml.cda. util.CDAUt il;
  17  
  18   import vle r.exchange . DNS     .data.gene ration.Gen erators;
  19   import vle r. DNS     .unit.test s.Abstract TestRunner ;
  20  
  21   public cla ss CreateS amples ext ends Abstr actTestRun ner {
  22           pr ivate void  writeIt(f inal Strin g fname, C ontinuityO fCareDocum ent ccd) t hrows Exce ption {
  23                    File  outfile =  new File( fname);
  24                    File OutputStre am outs =  new FileOu tputStream (outfile);
  25                    Outp utStreamWr iter ows =  new Outpu tStreamWri ter(outs,  "UTF8");
  26                    CDAU til.save(c cd, ows);
  27                    ows. flush();
  28                    outs .flush();
  29                    ows. close();
  30                    outs .close();
  31           }
  32  
  33           @T est
  34           pu blic void  testCreate Supplies()  throws Ex ception {
  35                    Cont inuityOfCa reDocument  ccd = (Co ntinuityOf CareDocume nt) Genera tors.creat eCCDDocume nt();
  36                    Supp ly supply  = Generato rs.createS upply();
  37  
  38                    Plan OfCareSect ion pcs =  CCDFactory .eINSTANCE .createPla nOfCareSec tion().ini t();
  39                    pcs. addSupply( supply);
  40                    ccd. addSection (pcs);
  41                    writ eIt("c:/te st/testsup ply.xml",  ccd);
  42           }
  43  
  44           @T est
  45           pu blic void  testCreate Observatio ns() throw s Exceptio n {
  46                    Cont inuityOfCa reDocument  ccd = (Co ntinuityOf CareDocume nt) Genera tors.creat eCCDDocume nt();
  47                    Plan OfCareSect ion pcs =  CCDFactory .eINSTANCE .createPla nOfCareSec tion().ini t();
  48  
  49                    pcs. addObserva tion(Gener ators.crea teObservat ion());
  50                    ccd. addSection (pcs);
  51                    writ eIt("c:/te st/testobs ervation.x ml", ccd);
  52           }
  53  
  54           @T est
  55           pu blic void  testEncomp assingEnco unter() th rows Excep tion {
  56                    Cont inuityOfCa reDocument  ccd = (Co ntinuityOf CareDocume nt) Genera tors.creat eEncompass ing();
  57  
  58                    Enco untersSect ion sectio n = CCDFac tory.eINST ANCE.creat eEncounter sSection() .init();
  59                    ccd. addSection (section);
  60  
  61                    sect ion.addEnc ounter(Gen erators.cr eateEncoun ter());
  62  
  63                    fina l Encounte rComponent  encounter  = new Enc ounterComp onent(ccd) ;
  64                    enco unter.exec ute();
  65                    writ eIt("c:/te st/testEnc ompassingE ncounter.x ml", ccd);
  66           }
  67  
  68           @T est
  69           pu blic void  testCreate PlanofCare Doc() thro ws Excepti on {
  70                    Cont inuityOfCa reDocument  ccd = (Co ntinuityOf CareDocume nt) Genera tors.creat eCCDDocume nt();
  71                    Plan OfCareSect ion pcs =  CCDFactory .eINSTANCE .createPla nOfCareSec tion().ini t();
  72                    ccd. setId(Gene rators.cre ateII("2.1 6.840.1.11 3883.4.349 ", "SAMPLE DOC"));
  73                    pcs. addObserva tion(Gener ators.crea teObservat ion());
  74                    pcs. addSupply( Generators .createSup ply());
  75                    pcs. addObserva tion(Gener ators.crea teObservat ion());
  76                    pcs. addSupply( Generators .createSup ply());
  77                    pcs. addObserva tion(Gener ators.crea teObservat ion());
  78                    pcs. addSupply( Generators .createSup ply());
  79                    pcs. addAct(Gen erators.cr eateAct()) ;
  80                    pcs. addEncount er(Generat ors.create Encounter( ));
  81                    pcs. addProcedu re(Generat ors.create Procedure( ));
  82                    pcs. addSubstan ceAdminist ration(Gen erators.cr eateSubsta nce());
  83                    ccd. addSection (pcs);
  84  
  85                    fina l PlanOfCa re plansCo mponent =  new PlanOf Care(ccd);
  86                    plan sComponent .execute() ;
  87                    writ eIt("c:/te st/testpla nofcare.xm l", ccd);
  88           }
  89   }