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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\test\java\vler\exchange\va\gov\data\generation | AbstractDataGenerator.java | Thu Feb 22 14:22:04 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\test\java\vler\exchange\va\gov\data\generation | AbstractDataGenerator.java | Tue Feb 27 14:47:01 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 168 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 Docu ment | |
| 14 | * @author MesserleB | |
| 15 | * | |
| 16 | */ | |
| 17 | public cla ss Abstrac tDataGener ator { | |
| 18 | ||
| 19 | /* * MDHT CCD **/ | |
| 20 | pr ivate Cont inuityOfCa reDocument document; | |
| 21 | ||
| 22 | /* * File nam e of the x ml file ** / | |
| 23 | pr ivate Stri ng outputF ileName; | |
| 24 | ||
| 25 | ||
| 26 | /* * | |
| 27 | * @return t he documen t | |
| 28 | * / | |
| 29 | pu blic final Continuit yOfCareDoc ument getD ocument() { | |
| 30 | retu rn documen t; | |
| 31 | } | |
| 32 | ||
| 33 | /* * | |
| 34 | * @param do cument the document to set | |
| 35 | * / | |
| 36 | pu blic final void setD ocument(Co ntinuityOf CareDocume nt documen t) { | |
| 37 | this .document = document ; | |
| 38 | } | |
| 39 | ||
| 40 | ||
| 41 | /* * | |
| 42 | * @return t he outputF ileName | |
| 43 | * / | |
| 44 | pu blic final String ge tOutputFil eName() { | |
| 45 | retu rn outputF ileName; | |
| 46 | } | |
| 47 | ||
| 48 | /* * | |
| 49 | * @param ou tputFileNa me the out putFileNam e to set | |
| 50 | * / | |
| 51 | pu blic final void setO utputFileN ame(String outputFil eName) { | |
| 52 | this .outputFil eName = ou tputFileNa me; | |
| 53 | } | |
| 54 | ||
| 55 | pu blic void generateXm l() throws Exception { | |
| 56 | ||
| 57 | fina l SimpleDa teFormat d ateformatM MDDYYYY = new Simple DateFormat ("MMddyyyy HHmmss"); | |
| 58 | fina l String s = datefor matMMDDYYY Y.format(n ew Date()) ; | |
| 59 | ||
| 60 | fina l File out file = new File(this .getOutput FileName() ); | |
| 61 | Syst em.out.pri ntln("outp utfile: " + outfile) ; | |
| 62 | ||
| 63 | // / / if file doesnt exi sts, then create it | |
| 64 | // i f (!outfil e.exists() ) { | |
| 65 | // o utfile.cre ateNewFile (); | |
| 66 | // } | |
| 67 | // | |
| 68 | File Writer fw = new File Writer(out file.getAb soluteFile ()); | |
| 69 | CDAU til.save(t his.getDoc ument(), f w); | |
| 70 | fw.f lush(); | |
| 71 | fw.c lose(); | |
| 72 | ||
| 73 | ||
| 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 | ||
| 85 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.