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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | ehealth_xchange_cif.zip\NHIN_adapter\SpecProcessor\src\test\java\vler\exchange\va\gov\data\generation | Generators.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 | Generators.java | Tue Feb 27 14:46:29 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 908 |
| 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.util.Arr ayList; | |
| 4 | import jav a.util.Col lections; | |
| 5 | import jav a.util.Lis t; | |
| 6 | ||
| 7 | import org .apache.co mmons.coll ections.Co llectionUt ils; | |
| 8 | import org .apache.co mmons.lang 3.StringUt ils; | |
| 9 | import org .openhealt htools.mdh t.uml.cda. Act; | |
| 10 | import org .openhealt htools.mdh t.uml.cda. AssignedAu thor; | |
| 11 | import org .openhealt htools.mdh t.uml.cda. Author; | |
| 12 | import org .openhealt htools.mdh t.uml.cda. CDAFactory ; | |
| 13 | import org .openhealt htools.mdh t.uml.cda. ClinicalDo cument; | |
| 14 | import org .openhealt htools.mdh t.uml.cda. Component1 ; | |
| 15 | import org .openhealt htools.mdh t.uml.cda. Consumable ; | |
| 16 | import org .openhealt htools.mdh t.uml.cda. Encompassi ngEncounte r; | |
| 17 | import org .openhealt htools.mdh t.uml.cda. Encounter; | |
| 18 | import org .openhealt htools.mdh t.uml.cda. EntryRelat ionship; | |
| 19 | import org .openhealt htools.mdh t.uml.cda. HealthCare Facility; | |
| 20 | import org .openhealt htools.mdh t.uml.cda. Location; | |
| 21 | import org .openhealt htools.mdh t.uml.cda. Manufactur edProduct; | |
| 22 | import org .openhealt htools.mdh t.uml.cda. Material; | |
| 23 | import org .openhealt htools.mdh t.uml.cda. Observatio n; | |
| 24 | import org .openhealt htools.mdh t.uml.cda. Organizati on; | |
| 25 | import org .openhealt htools.mdh t.uml.cda. Participan t2; | |
| 26 | import org .openhealt htools.mdh t.uml.cda. Participan tRole; | |
| 27 | import org .openhealt htools.mdh t.uml.cda. Person; | |
| 28 | import org .openhealt htools.mdh t.uml.cda. Place; | |
| 29 | import org .openhealt htools.mdh t.uml.cda. PlayingEnt ity; | |
| 30 | import org .openhealt htools.mdh t.uml.cda. Procedure; | |
| 31 | import org .openhealt htools.mdh t.uml.cda. Product; | |
| 32 | import org .openhealt htools.mdh t.uml.cda. SubstanceA dministrat ion; | |
| 33 | import org .openhealt htools.mdh t.uml.cda. Supply; | |
| 34 | import org .openhealt htools.mdh t.uml.cda. ccd.AgeObs ervation; | |
| 35 | import org .openhealt htools.mdh t.uml.cda. ccd.CCDFac tory; | |
| 36 | import org .openhealt htools.mdh t.uml.cda. ccd.Encoun terLocatio n; | |
| 37 | import org .openhealt htools.mdh t.uml.cda. ccd.Proble mAct; | |
| 38 | import org .openhealt htools.mdh t.uml.cda. ccd.Proble mObservati on; | |
| 39 | import org .openhealt htools.mdh t.uml.cda. ccd.Proble mSection; | |
| 40 | import org .openhealt htools.mdh t.uml.cda. ccd.Supply Activity; | |
| 41 | import org .openhealt htools.mdh t.uml.hl7. datatypes. AD; | |
| 42 | import org .openhealt htools.mdh t.uml.hl7. datatypes. CD; | |
| 43 | import org .openhealt htools.mdh t.uml.hl7. datatypes. CE; | |
| 44 | import org .openhealt htools.mdh t.uml.hl7. datatypes. CS; | |
| 45 | import org .openhealt htools.mdh t.uml.hl7. datatypes. DatatypesF actory; | |
| 46 | import org .openhealt htools.mdh t.uml.hl7. datatypes. ED; | |
| 47 | import org .openhealt htools.mdh t.uml.hl7. datatypes. EN; | |
| 48 | import org .openhealt htools.mdh t.uml.hl7. datatypes. II; | |
| 49 | import org .openhealt htools.mdh t.uml.hl7. datatypes. IVL_TS; | |
| 50 | import org .openhealt htools.mdh t.uml.hl7. datatypes. IVXB_TS; | |
| 51 | import org .openhealt htools.mdh t.uml.hl7. datatypes. ON; | |
| 52 | import org .openhealt htools.mdh t.uml.hl7. datatypes. PN; | |
| 53 | import org .openhealt htools.mdh t.uml.hl7. datatypes. SXCM_TS; | |
| 54 | import org .openhealt htools.mdh t.uml.hl7. datatypes. TEL; | |
| 55 | import org .openhealt htools.mdh t.uml.hl7. datatypes. TS; | |
| 56 | import org .openhealt htools.mdh t.uml.hl7. vocab.Null Flavor; | |
| 57 | import org .openhealt htools.mdh t.uml.hl7. vocab.Part icipationT argetLocat ion; | |
| 58 | import org .openhealt htools.mdh t.uml.hl7. vocab.Part icipationT ype; | |
| 59 | import org .openhealt htools.mdh t.uml.hl7. vocab.Role ClassRoot; | |
| 60 | import org .openhealt htools.mdh t.uml.hl7. vocab.x_Ac tRelations hipEntryRe lationship ; | |
| 61 | ||
| 62 | public cla ss Generat ors { | |
| 63 | pr ivate stat ic String[ ] rootTIds = { "1.3. 6.1.4.1.19 376.1.5.3. 1.1.1", "2 .16.840.1. 113883.10. 20.3", | |
| 64 | "2.16. 840.1.1138 83.3.88.11 .32.1", "2 .16.840.1. 113883.3.8 8.11.83.1" }; | |
| 65 | ||
| 66 | pr ivate stat ic GetWord s word = n ew GetWord s(); | |
| 67 | ||
| 68 | pu blic stati c Clinical Document c reateCCDDo cument() { | |
| 69 | Clin icalDocume nt cda = C CDFactory. eINSTANCE. createCont inuityOfCa reDocument ().init(); | |
| 70 | cda. getTemplat eIds().add All(create RootTIds() ); | |
| 71 | ||
| 72 | retu rn cda; | |
| 73 | } | |
| 74 | ||
| 75 | pu blic stati c IVL_TS c reateTime( final Stri ng value, final Stri ng low, fi nal String high) { | |
| 76 | IVL_ TS ts = Da tatypesFac tory.eINST ANCE.creat eIVL_TS(); | |
| 77 | if ( StringUtil s.isNotBla nk(value)) { | |
| 78 | ts.set Value(valu e); | |
| 79 | } | |
| 80 | ||
| 81 | if ( StringUtil s.isNotBla nk(low)) { | |
| 82 | ts.set Low(create Time(low, null)); | |
| 83 | } | |
| 84 | ||
| 85 | if ( StringUtil s.isNotBla nk(high)) { | |
| 86 | ts.set High(creat eTime(high , null)); | |
| 87 | } | |
| 88 | ||
| 89 | retu rn ts; | |
| 90 | } | |
| 91 | ||
| 92 | pu blic stati c IVXB_TS createTime (final Str ing value, final Nul lFlavor nu llFlavor) { | |
| 93 | IVXB _TS ts = D atatypesFa ctory.eINS TANCE.crea teIVXB_TS( ); | |
| 94 | ||
| 95 | if ( StringUtil s.isNotBla nk(value)) { | |
| 96 | ts.set Value(valu e); | |
| 97 | } | |
| 98 | ||
| 99 | if ( nullFlavor != null) { | |
| 100 | ts.set NullFlavor (nullFlavo r); | |
| 101 | } | |
| 102 | retu rn ts; | |
| 103 | } | |
| 104 | ||
| 105 | pu blic stati c TS creat eTimeValue (final Str ing time) { | |
| 106 | TS t s = Dataty pesFactory .eINSTANCE .createTS( time); | |
| 107 | retu rn ts; | |
| 108 | } | |
| 109 | ||
| 110 | pu blic stati c SXCM_TS createRoot Time(final String va lue) { | |
| 111 | SXCM _TS time = Datatypes Factory.eI NSTANCE.cr eateSXCM_T S(); | |
| 112 | time .setValue( value); | |
| 113 | retu rn time; | |
| 114 | } | |
| 115 | ||
| 116 | pu blic stati c Observat ion create Observatio n(final IV L_TS time, final CD code, fina l Author a uthor, fin al ED text ) { | |
| 117 | Obse rvation ob s = CCDFac tory.eINST ANCE.creat eAlertObse rvation(). init(); | |
| 118 | obs. setEffecti veTime(tim e); | |
| 119 | obs. setCode(co de); | |
| 120 | obs. getAuthors ().add(aut hor); | |
| 121 | obs. setStatusC ode(create Code(word. next())); | |
| 122 | obs. setText(te xt); | |
| 123 | retu rn obs; | |
| 124 | } | |
| 125 | ||
| 126 | pu blic stati c II creat eII(final String roo t, final S tring exte nsion) { | |
| 127 | II i i = Dataty pesFactory .eINSTANCE .createII( ); | |
| 128 | if ( StringUtil s.isNotBla nk(root)) { | |
| 129 | ii.set Root(root) ; | |
| 130 | } | |
| 131 | ||
| 132 | if ( StringUtil s.isNotBla nk(extensi on)) { | |
| 133 | ii.set Extension( extension) ; | |
| 134 | } | |
| 135 | ||
| 136 | retu rn ii; | |
| 137 | } | |
| 138 | ||
| 139 | pu blic stati c List<II> createRoo tTIds() { | |
| 140 | List <II> ret = new Array List<II>() ; | |
| 141 | for (String id : rootTId s) { | |
| 142 | II new Id = Datat ypesFactor y.eINSTANC E.createII (); | |
| 143 | newId. setRoot(id ); | |
| 144 | ret.ad d(newId); | |
| 145 | } | |
| 146 | if ( Collection Utils.isNo tEmpty(ret )) { | |
| 147 | return ret; | |
| 148 | } | |
| 149 | ||
| 150 | retu rn Collect ions.empty List(); | |
| 151 | } | |
| 152 | ||
| 153 | pu blic stati c EN creat eEN(final String nam e) { | |
| 154 | EN e n = Dataty pesFactory .eINSTANCE .createEN( ); | |
| 155 | ||
| 156 | en.a ddText(nam e); | |
| 157 | ||
| 158 | retu rn en; | |
| 159 | } | |
| 160 | ||
| 161 | pu blic stati c PN creat ePN(final String nam e) { | |
| 162 | PN p n = Dataty pesFactory .eINSTANCE .createPN( ); | |
| 163 | ||
| 164 | pn.a ddText(nam e); | |
| 165 | ||
| 166 | retu rn pn; | |
| 167 | } | |
| 168 | ||
| 169 | pu blic stati c Material createMat erial() { | |
| 170 | Mate rial mat = CDAFactor y.eINSTANC E.createMa terial(); | |
| 171 | mat. setCode(cr eateCode(w ord.next() )); | |
| 172 | mat. setName(cr eateEN(wor d.next())) ; | |
| 173 | retu rn mat; | |
| 174 | } | |
| 175 | ||
| 176 | pu blic stati c Manufact uredProduc t createMa nProduct() { | |
| 177 | Manu facturedPr oduct manP rod = CDAF actory.eIN STANCE.cre ateManufac turedProdu ct(); | |
| 178 | manP rod.setMan ufacturedM aterial(cr eateMateri al()); | |
| 179 | manP rod.setMan ufacturerO rganizatio n(createRe pOrg(word. next())); | |
| 180 | retu rn manProd ; | |
| 181 | } | |
| 182 | ||
| 183 | pu blic stati c Product createProd uct() { | |
| 184 | Prod uct produc t = CDAFac tory.eINST ANCE.creat eProduct() ; | |
| 185 | prod uct.setMan ufacturedP roduct(cre ateManProd uct()); | |
| 186 | retu rn product ; | |
| 187 | } | |
| 188 | ||
| 189 | pu blic stati c Consumab le createC onsumable( ) { | |
| 190 | Cons umable con s = CDAFac tory.eINST ANCE.creat eConsumabl e(); | |
| 191 | cons .setManufa cturedProd uct(create ManProduct ()); | |
| 192 | retu rn cons; | |
| 193 | } | |
| 194 | ||
| 195 | pu blic stati c CD creat eCode(fina l String c odeVal, fi nal String codeSyste m, final S tring code SystemName , | |
| 196 | final String dis playName, final ED o riginalTex t, final L ist<? exte nds CD> tr ans) { | |
| 197 | CD c ode = Data typesFacto ry.eINSTAN CE.createC D(); | |
| 198 | code .setCode(c odeVal); | |
| 199 | code .setCodeSy stem(codeS ystem); | |
| 200 | code .setCodeSy stemName(c odeSystemN ame); | |
| 201 | code .setDispla yName(disp layName); | |
| 202 | code .setOrigin alText(ori ginalText) ; | |
| 203 | if ( Collection Utils.isNo tEmpty(tra ns)) { | |
| 204 | code.g etTranslat ions().add All(trans) ; | |
| 205 | } | |
| 206 | retu rn code; | |
| 207 | } | |
| 208 | ||
| 209 | pu blic stati c ED creat eOriginalT ext(final String tex t, final T EL ref) { | |
| 210 | ED o Text = Dat atypesFact ory.eINSTA NCE.create ED(); | |
| 211 | if ( StringUtil s.isNotBla nk(text)) { | |
| 212 | oText. addText(te xt); | |
| 213 | } | |
| 214 | if ( ref != nul l) { | |
| 215 | oText. setReferen ce(ref); | |
| 216 | } | |
| 217 | retu rn oText; | |
| 218 | } | |
| 219 | ||
| 220 | pu blic stati c TEL crea teRef(fina l String r eference) { | |
| 221 | TEL ref = Data typesFacto ry.eINSTAN CE.createT EL(); | |
| 222 | ref. setValue(r eference); | |
| 223 | retu rn ref; | |
| 224 | } | |
| 225 | ||
| 226 | pu blic stati c Organiza tion creat eRepOrg(fi nal String name) { | |
| 227 | Orga nization o rg = CDAFa ctory.eINS TANCE.crea teOrganiza tion(); | |
| 228 | ON o Name = Dat atypesFact ory.eINSTA NCE.create ON(); | |
| 229 | oNam e.addText( name); | |
| 230 | org. getNames() .add(oName ); | |
| 231 | retu rn org; | |
| 232 | } | |
| 233 | ||
| 234 | pu blic stati c Person c reatePerso n(final St ring name) { | |
| 235 | Pers on person = CDAFacto ry.eINSTAN CE.createP erson(); | |
| 236 | PN p n = Dataty pesFactory .eINSTANCE .createPN( ); | |
| 237 | pn.a ddText(nam e); | |
| 238 | pers on.getName s().add(pn ); | |
| 239 | retu rn person; | |
| 240 | } | |
| 241 | ||
| 242 | pu blic stati c Assigned Author cre ateAssigne dAuthor(fi nal String name) { | |
| 243 | Assi gnedAuthor aAuthor = CDAFactor y.eINSTANC E.createAs signedAuth or(); | |
| 244 | aAut hor.setAss ignedPerso n(createPe rson(name) ); | |
| 245 | aAut hor.setRep resentedOr ganization (createRep Org(word.n ext())); | |
| 246 | ||
| 247 | retu rn aAuthor ; | |
| 248 | } | |
| 249 | ||
| 250 | pu blic stati c Author c reateAutho r(final St ring name) { | |
| 251 | Auth or author = CDAFacto ry.eINSTAN CE.createA uthor(); | |
| 252 | auth or.setTime (createTim eValue(wor d.next())) ; | |
| 253 | auth or.setAssi gnedAuthor (createAss ignedAutho r(name)); | |
| 254 | ||
| 255 | retu rn author; | |
| 256 | } | |
| 257 | ||
| 258 | pu blic stati c EntryRel ationship createReas on(final S tring reas on) { | |
| 259 | Entr yRelations hip entry = CDAFacto ry.eINSTAN CE.createE ntryRelati onship(); | |
| 260 | entr y.setTypeC ode(x_ActR elationshi pEntryRela tionship.R SON); | |
| 261 | ||
| 262 | Enco unter enco unter = CD AFactory.e INSTANCE.c reateEncou nter(); | |
| 263 | enco unter.setT ext(create OriginalTe xt(reason, null)); | |
| 264 | entr y.setEncou nter(encou nter); | |
| 265 | ||
| 266 | retu rn entry; | |
| 267 | } | |
| 268 | ||
| 269 | pu blic stati c CE creat eCECode(fi nal String codeVal, final Stri ng codeSys tem, final String co deSystemNa me, | |
| 270 | final String dis playName, final ED o riginalTex t, final L ist<? exte nds CD> tr ans) { | |
| 271 | CE c ode = Data typesFacto ry.eINSTAN CE.createC E(); | |
| 272 | code .setCode(c odeVal); | |
| 273 | code .setCodeSy stem(codeS ystem); | |
| 274 | code .setCodeSy stemName(c odeSystemN ame); | |
| 275 | code .setDispla yName(disp layName); | |
| 276 | code .setOrigin alText(ori ginalText) ; | |
| 277 | if ( Collection Utils.isNo tEmpty(tra ns)) { | |
| 278 | code.g etTranslat ions().add All(trans) ; | |
| 279 | } | |
| 280 | retu rn code; | |
| 281 | } | |
| 282 | ||
| 283 | pu blic stati c CS creat eCode(fina l String c ode) { | |
| 284 | CS c s = Dataty pesFactory .eINSTANCE .createCS( ); | |
| 285 | cs.s etCode(cod e); | |
| 286 | ||
| 287 | retu rn cs; | |
| 288 | } | |
| 289 | ||
| 290 | pu blic stati c PlayingE ntity crea tePlayingE ntity() { | |
| 291 | Play ingEntity entity = C DAFactory. eINSTANCE. createPlay ingEntity( ); | |
| 292 | enti ty.setCode (createCod e(word.nex t())); | |
| 293 | enti ty.getName s().add(cr eatePN(wor d.next() + ", " + wo rd.next()) ); | |
| 294 | retu rn entity; | |
| 295 | } | |
| 296 | ||
| 297 | pu blic stati c Particip antRole cr eateRole(f inal RoleC lassRoot c lassCode) { | |
| 298 | Part icipantRol e role = C DAFactory. eINSTANCE. createPart icipantRol e(); | |
| 299 | if ( classCode != null) { | |
| 300 | role.s etClassCod e(RoleClas sRoot.SDLO C); | |
| 301 | } | |
| 302 | role .setPlayin gEntity(cr eatePlayin gEntity()) ; | |
| 303 | retu rn role; | |
| 304 | } | |
| 305 | ||
| 306 | pu blic stati c Particip ant2 creat eParticipa nt(final P articipati onType typ e, final R oleClassRo ot classCo de) { | |
| 307 | Part icipant2 p art = CDAF actory.eIN STANCE.cre atePartici pant2(); | |
| 308 | if ( type != nu ll) { | |
| 309 | part.s etTypeCode (type); | |
| 310 | } | |
| 311 | part .setTime(c reateTime( word.next( ), null, n ull)); | |
| 312 | ||
| 313 | part .setPartic ipantRole( createRole (classCode )); | |
| 314 | retu rn part; | |
| 315 | } | |
| 316 | ||
| 317 | pu blic stati c Act crea teAct() { | |
| 318 | Act act = CDAF actory.eIN STANCE.cre ateAct(); | |
| 319 | act. getIds().a dd(createI I(null, wo rd.next()) ); | |
| 320 | act. setCode(cr eateCode(n ull, null, null, wor d.next(), null, null )); | |
| 321 | act. setText(cr eateOrigin alText(wor d.next(), null)); | |
| 322 | act. setStatusC ode(create Code(word. next())); | |
| 323 | act. setEffecti veTime(cre ateTime(wo rd.next(), null, nul l)); | |
| 324 | act. getAuthors ().add(cre ateAuthor( word.next( ))); | |
| 325 | act. getEntryRe lationship s().add(cr eateReason (word.next ())); | |
| 326 | // C reate faci lity locat ion | |
| 327 | act. getPartici pants().ad d(createPa rticipant( Participat ionType.LO C, RoleCla ssRoot.SDL OC)); | |
| 328 | // C reate Admi ssion Sour ce | |
| 329 | act. getPartici pants().ad d(createPa rticipant( Participat ionType.OR G, null)); | |
| 330 | ||
| 331 | retu rn act; | |
| 332 | } | |
| 333 | ||
| 334 | pu blic stati c AD creat eAddress() { | |
| 335 | AD a d = Dataty pesFactory .eINSTANCE .createAD( ); | |
| 336 | ||
| 337 | ad.a ddCountry( word.next( )); | |
| 338 | ad.a ddStreetAd dressLine( word.next( )); | |
| 339 | ad.a ddState(wo rd.next()) ; | |
| 340 | ||
| 341 | retu rn ad; | |
| 342 | } | |
| 343 | ||
| 344 | pu blic stati c Clinical Document c reateEncom passing() { | |
| 345 | Clin icalDocume nt ccd = G enerators. createCCDD ocument(); | |
| 346 | ||
| 347 | Comp onent1 c1 = CDAFacto ry.eINSTAN CE.createC omponent1( ); | |
| 348 | ccd. setCompone ntOf(c1); | |
| 349 | ||
| 350 | Enco mpassingEn counter en counter = CDAFactory .eINSTANCE .createEnc ompassingE ncounter() ; | |
| 351 | c1.s etEncompas singEncoun ter(encoun ter); | |
| 352 | ||
| 353 | enco unter.getI ds().add(c reateII(nu ll, word.n ext())); | |
| 354 | enco unter.setC ode(create CECode(nul l, null, n ull, "Some rando", n ull, null) ); | |
| 355 | enco unter.setD ischargeDi spositionC ode(create CECode(nul l, null, n ull, "Clea n Bill of Health", n ull, null) ); | |
| 356 | enco unter.setE ffectiveTi me(createT ime(word.n ext(), nul l, null)); | |
| 357 | ||
| 358 | Loca tion loc = CDAFactor y.eINSTANC E.createLo cation(); | |
| 359 | enco unter.setL ocation(lo c); | |
| 360 | ||
| 361 | loc. setTypeCod e(Particip ationTarge tLocation. LOC); | |
| 362 | ||
| 363 | Heal thCareFaci lity hcf = CDAFactor y.eINSTANC E.createHe althCareFa cility(); | |
| 364 | loc. setHealthC areFacilit y(hcf); | |
| 365 | ||
| 366 | hcf. getIds().a dd(createI I(word.nex t(), word. next())); | |
| 367 | hcf. setCode(cr eateCECode (null, nul l, null, " Some Facil ity Type", null, nul l)); | |
| 368 | ||
| 369 | Plac e place = CDAFactory .eINSTANCE .createPla ce(); | |
| 370 | hcf. setLocatio n(place); | |
| 371 | ||
| 372 | plac e.setAddr( createAddr ess()); | |
| 373 | plac e.setName( createEN(w ord.next() )); | |
| 374 | ||
| 375 | retu rn ccd; | |
| 376 | } | |
| 377 | ||
| 378 | pu blic stati c Encounte r createEn counter() { | |
| 379 | Enco unter enco unter = CC DFactory.e INSTANCE.c reateEncou ntersActiv ity().init (); | |
| 380 | enco unter.getI ds().add(c reateII(nu ll, word.n ext())); | |
| 381 | enco unter.setC ode(create Code(null, null, nul l, word.ne xt(), null , null)); | |
| 382 | enco unter.setT ext(create OriginalTe xt(word.ne xt(), null )); | |
| 383 | enco unter.setE ffectiveTi me(createT ime(word.n ext(), nul l, null)); | |
| 384 | enco unter.setP riorityCod e(createCo de(word.ne xt())); | |
| 385 | enco unter.getA uthors().a dd(createA uthor(word .next())); | |
| 386 | enco unter.getE ntryRelati onships(). add(create Reason(wor d.next())) ; | |
| 387 | Enco unterLocat ion loc = CCDFactory .eINSTANCE .createEnc ounterLoca tion().ini t(); | |
| 388 | loc. setTime(cr eateTime(n ull, word. next(), wo rd.next()) ); | |
| 389 | loc. setPartici pantRole(c reateRole( RoleClassR oot.ROL)); | |
| 390 | enco unter.getP articipant s().add(lo c); | |
| 391 | retu rn encount er; | |
| 392 | } | |
| 393 | ||
| 394 | pu blic stati c Observat ion create Observatio n() { | |
| 395 | Obse rvation ob s = CCDFac tory.eINST ANCE.creat eAlertObse rvation(). init(); | |
| 396 | obs. getIds().a dd(createI I(null, wo rd.next()) ); | |
| 397 | obs. setCode(cr eateCode(n ull, null, null, wor d.next(), createOrig inalText(w ord.next() , null), n ull)); | |
| 398 | obs. setText(cr eateOrigin alText(wor d.next(), null)); | |
| 399 | obs. setStatusC ode(create Code(word. next())); | |
| 400 | obs. setEffecti veTime(cre ateTime("T oday", nul l, null)); | |
| 401 | obs. getAuthors ().add(cre ateAuthor( word.next( ))); | |
| 402 | obs. getEntryRe lationship s().add(cr eateReason (word.next ())); | |
| 403 | retu rn obs; | |
| 404 | } | |
| 405 | ||
| 406 | pu blic stati c Supply c reateSuppl y() { | |
| 407 | Supp lyActivity supply = CCDFactory .eINSTANCE .createSup plyActivit y().init() ; | |
| 408 | supp ly.getIds( ).add(crea teII(null, word.next ())); | |
| 409 | supp ly.setCode (createCod e("334443" , "System" , null, wo rd.next(), null, nul l)); | |
| 410 | supp ly.setText (createOri ginalText( word.next( ), null)); | |
| 411 | supp ly.getEffe ctiveTimes ().add(cre ateRootTim e(word.nex t())); | |
| 412 | supp ly.getAuth ors().add( createAuth or(word.ne xt())); | |
| 413 | supp ly.setProd uct(create Product()) ; | |
| 414 | supp ly.getEntr yRelations hips().add (createRea son(word.n ext())); | |
| 415 | ||
| 416 | retu rn supply; | |
| 417 | } | |
| 418 | ||
| 419 | pu blic stati c Procedur e createPr ocedure() { | |
| 420 | Proc edure proc = CCDFact ory.eINSTA NCE.create ProcedureA ctivityPro cedure().i nit(); | |
| 421 | proc .getIds(). add(create II(null, w ord.next() )); | |
| 422 | proc .setCode(c reateCode( null, null , null, wo rd.next(), createOri ginalText( word.next( ), null), null)); | |
| 423 | proc .setText(c reateOrigi nalText(wo rd.next(), null)); | |
| 424 | proc .setStatus Code(creat eCode(word .next())); | |
| 425 | proc .setEffect iveTime(cr eateTime(" Today", nu ll, null)) ; | |
| 426 | proc .getAuthor s().add(cr eateAuthor (word.next ())); | |
| 427 | proc .getEntryR elationshi ps().add(c reateReaso n(word.nex t())); | |
| 428 | proc .getApproa chSiteCode s().add(cr eateCode(n ull, null, null, wor d.next(), null, null )); | |
| 429 | proc .getTarget SiteCodes( ).add(crea teCode(nul l, null, n ull, word. next(), nu ll, null)) ; | |
| 430 | proc .setPriori tyCode(cre ateCode(wo rd.next()) ); | |
| 431 | ||
| 432 | retu rn proc; | |
| 433 | } | |
| 434 | ||
| 435 | pu blic stati c Substanc eAdministr ation crea teSubstanc e() { | |
| 436 | Subs tanceAdmin istration sub = CDAF actory.eIN STANCE.cre ateSubstan ceAdminist ration(); | |
| 437 | sub. getIds().a dd(createI I(null, wo rd.next()) ); | |
| 438 | sub. setCode(cr eateCode(" 334443", " System", n ull, word. next(), nu ll, null)) ; | |
| 439 | sub. setText(cr eateOrigin alText(wor d.next(), null)); | |
| 440 | sub. getEffecti veTimes(). add(create RootTime(w ord.next() )); | |
| 441 | sub. getAuthors ().add(cre ateAuthor( word.next( ))); | |
| 442 | sub. setConsuma ble(create Consumable ()); | |
| 443 | sub. getEntryRe lationship s().add(cr eateReason (word.next ())); | |
| 444 | ||
| 445 | retu rn sub; | |
| 446 | } | |
| 447 | ||
| 448 | pu blic stati c void cre ateProblem () { | |
| 449 | Prob lemSection ps = CCDF actory.eIN STANCE.cre ateProblem Section(). init(); | |
| 450 | Prob lemAct pa = CCDFacto ry.eINSTAN CE.createP roblemAct( ).init(); | |
| 451 | Prob lemObserva tion po = CCDFactory .eINSTANCE .createPro blemObserv ation().in it(); | |
| 452 | AgeO bservation ao = CCDF actory.eIN STANCE.cre ateAgeObse rvation(). init(); | |
| 453 | ||
| 454 | } | |
| 455 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.