Produced by Araxis Merge on 7/10/2017 1:01:46 PM Central 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\MIXDataSource\main\test\java\gov\va\med\imaging\url\mix\test | MixTranslatorTest.java | Thu Jun 29 17:23:05 2017 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\MIXDataSource\main\test\java\gov\va\med\imaging\url\mix\test | MixTranslatorTest.java | Thu Jul 6 15:04:39 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 788 |
| Changed | 2 | 4 |
| 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 | /** | |
| 2 | * | |
| 3 | Package: MAG - Vis tA Imaging | |
| 4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
| 5 | Date Cre ated: Jan 11, 2008 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | ||
| 25 | */ | |
| 26 | package go v.va.med.i maging.url .mix.test; | |
| 27 | ||
| 28 | import jav a.util.Arr ayList; | |
| 29 | import jav a.util.Lis t; | |
| 30 | ||
| 31 | import org .apache.lo g4j.Level; | |
| 32 | import org .apache.lo g4j.Logger ; | |
| 33 | ||
| 34 | import gov .va.med.UR NFactory; | |
| 35 | import gov .va.med.im aging.Stud yURN; | |
| 36 | import gov .va.med.im aging.exce ptions.URN FormatExce ption; | |
| 37 | import gov .va.med.im aging.exch ange.busin ess.Image; | |
| 38 | import gov .va.med.im aging.exch ange.busin ess.Series ; | |
| 39 | import gov .va.med.im aging.exch ange.busin ess.SiteIm pl; | |
| 40 | import gov .va.med.im aging.exch ange.busin ess.Study; | |
| 41 | import gov .va.med.im aging.exch ange.enums .ObjectOri gin; | |
| 42 | import gov .va.med.im aging.exch ange.busin ess.Site; | |
| 43 | import gov .va.med.im aging.mix. translator .MixTransl ator; | |
| 44 | import gov .va.med.im aging.mix. webservice s.rest.typ es.v1.Moda litiesType ; | |
| 45 | ||
| 46 | /** | |
| 47 | * @author
|
|
| 48 | * | |
| 49 | */ | |
| 50 | public cla ss MixTran slatorTest | |
| 51 | extends Ab stractMixT est | |
| 52 | { | |
| 53 | pr ivate MixT ranslator mixTransla tor = new MixTransla tor(); | |
| 54 | pr ivate List <String> e mptyStudyM odalities = new Arra yList<Stri ng>(); | |
| 55 | ||
| 56 | pr ivate Site site = nu ll; | |
| 57 | ||
| 58 | pu blic MixTr anslatorTe st() | |
| 59 | { | |
| 60 | supe r(MixTrans latorTest. class.toSt ring()); | |
| 61 | } | |
| 62 | ||
| 63 | @O verride | |
| 64 | pr otected vo id setUp() | |
| 65 | th rows Excep tion | |
| 66 | { | |
| 67 | supe r.setUp(); | |
| 68 | Logg er.getRoot Logger().s etLevel(Le vel.ALL); | |
| 69 | site = new Sit eImpl("200 ", "DOD", "DOD", "", 0, "", 0, ""); | |
| 70 | } | |
| 71 | ||
| 72 | pu blic void testTransf ormImage() | |
| 73 | { | |
| 74 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType in stance = c reateInsta nceType(); | |
| 75 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType seri esType = c reateSerie sType(); | |
| 76 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(); | |
| 77 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 78 | Seri es series = mixTrans lator.tran sformSerie s(site, st udy, serie sType); | |
| 79 | ||
| 80 | Imag e image = mixTransla tor.transf ormImage(s ite, study , series, instance); | |
| 81 | asse rtNotNull( image); | |
| 82 | comp areImage(i nstance, s eriesType, studyType , image); | |
| 83 | } | |
| 84 | ||
| 85 | pu blic void testTransf ormNullIma ge() | |
| 86 | { | |
| 87 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType in stance = c reateInsta nceType(tr ue); | |
| 88 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType seri esType = c reateSerie sType(true ); | |
| 89 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(true); | |
| 90 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 91 | Seri es series = mixTrans lator.tran sformSerie s(site, st udy, serie sType); | |
| 92 | ||
| 93 | ||
| 94 | Imag e image = mixTransla tor.transf ormImage(s ite, study , series, instance); | |
| 95 | asse rtNotNull( image); | |
| 96 | comp areImage(i nstance, s eriesType, studyType , image); | |
| 97 | } | |
| 98 | ||
| 99 | pu blic void testTransf ormSeries( ) | |
| 100 | { | |
| 101 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType seri esType = c reateSerie sType(); | |
| 102 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(); | |
| 103 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 104 | Seri es series = mixTrans lator.tran sformSerie s(site, st udy, serie sType); | |
| 105 | asse rtNotNull( series); | |
| 106 | comp areSeries( seriesType , studyTyp e, series) ; | |
| 107 | } | |
| 108 | ||
| 109 | pu blic void testTransf ormNullSer ies() | |
| 110 | { | |
| 111 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType seri esType = c reateSerie sType(true ); | |
| 112 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(true); | |
| 113 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 114 | Seri es series = mixTrans lator.tran sformSerie s(site, st udy, serie sType); | |
| 115 | asse rtNotNull( series); | |
| 116 | comp areSeries( seriesType , studyTyp e, series) ; | |
| 117 | } | |
| 118 | ||
| 119 | pu blic void testTransf ormStudy() | |
| 120 | { | |
| 121 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(); | |
| 122 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 123 | asse rtNotNull( study); | |
| 124 | comp areStudy(s tudyType, study); | |
| 125 | } | |
| 126 | ||
| 127 | pu blic void testTransf ormNullStu dy() | |
| 128 | { | |
| 129 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study Type = cre ateStudyTy pe(true); | |
| 130 | Stud y study = mixTransla tor.transf ormStudy(s ite, study Type, empt yStudyModa lities); | |
| 131 | asse rtNotNull( study); | |
| 132 | comp areStudy(s tudyType, study); | |
| 133 | } | |
| 134 | ||
| 135 | pr ivate void compareSt udy(gov.va .med.imagi ng.mix.web services.r est.types. v1.StudyTy pe studyTy pe, | |
| 136 | Stud y study) | |
| 137 | { | |
| 138 | // C TB 29Nov20 09 | |
| 139 | //St ring decod edStudyId = Base32Co nversionUt ility.base 32Decode(s tudy.getSt udyIen()); | |
| 140 | Stri ng decoded StudyId = study.getG lobalArtif actIdentif ier().toSt ring(); | |
| 141 | //as sertEquals (studyType .getStudyI d(), decod edStudyId) ; | |
| 142 | if(s tudyType.g etDescript ion() == n ull) | |
| 143 | assert Equals("", study.get Descriptio n()); | |
| 144 | else | |
| 145 | assert Equals(stu dyType.get Descriptio n(), study .getDescri ption()); | |
| 146 | asse rtEquals(s tudyType.g etDicomUid (), study. getStudyUi d()); | |
| 147 | asse rtEquals(s tudyType.g etImageCou nt(), stud y.getImage Count()); | |
| 148 | asse rtEquals(s tudyType.g etPatientI d(), study .getPatien tId()); | |
| 149 | if(s tudyType.g etProcedur eDescripti on() == nu ll) | |
| 150 | assert Equals("", study.get Procedure( )); | |
| 151 | else | |
| 152 | assert Equals(stu dyType.get ProcedureD escription (), study. getProcedu re()); | |
| 153 | asse rtEquals(s ite.getSit eAbbr(), s tudy.getSi teAbbr()); | |
| 154 | if(s tudyType.g etSiteName () == null ) | |
| 155 | assert Equals("", study.get SiteName() ); | |
| 156 | else | |
| 157 | assert Equals(stu dyType.get SiteName() , study.ge tSiteName( )); | |
| 158 | if(s tudyType.g etSpecialt yDescripti on() == nu ll) | |
| 159 | assert Equals("", study.get Specialty( )); | |
| 160 | else | |
| 161 | assert Equals(stu dyType.get SpecialtyD escription (), study. getSpecial ty()); | |
| 162 | Stri ng studyRe port = stu dy.getRadi ologyRepor t(); | |
| 163 | int loc = stud yReport.in dexOf("\n" ); | |
| 164 | if(l oc >= 0) | |
| 165 | { | |
| 166 | studyR eport = st udyReport. substring( loc + 1); | |
| 167 | } | |
| 168 | // if(s tudyType.g etRadiolog yReport() == null) | |
| 169 | // assert Equals("", studyRepo rt); | |
| 170 | // else | |
| 171 | // assert Equals(stu dyType.get RadiologyR eport(), s tudyReport ); | |
| 172 | ||
| 173 | Stri ng[] modal ities = st udy.getMod alities(). toArray(ne w String[s tudy.getMo dalities() .size()]); | |
| 174 | for( int i = 0; i < modal ities.leng th; i++) | |
| 175 | { | |
| 176 | assert Equals(stu dyType.get Modalities ().getModa lity(i), m odalities[ i]); | |
| 177 | } | |
| 178 | Seri es[] serie s = study. getSeries( ).toArray( new Series [study.get Series().s ize()]); | |
| 179 | for( int i = 0; i < serie s.length; i++) | |
| 180 | { | |
| 181 | compar eSeries(st udyType.ge tComponent Series().g etSeries(i ), studyTy pe, series [i]); | |
| 182 | } | |
| 183 | } | |
| 184 | ||
| 185 | pr ivate void compareSe ries(gov.v a.med.imag ing.mix.we bservices. rest.types .v1.Series Type serie sType, | |
| 186 | gov.va .med.imagi ng.mix.web services.r est.types. v1.StudyTy pe studyTy pe, | |
| 187 | Series series) | |
| 188 | { | |
| 189 | asse rtEquals(s eriesType. getSeriesI d(), serie s.getSerie sIen()); | |
| 190 | asse rtEquals(s eriesType. getDicomSe riesNumber () == null ? "" : se riesType.g etDicomSer iesNumber( ).toString (), series .getSeries Number()); | |
| 191 | if(s eriesType. getDicomUi d() == nul l) | |
| 192 | assert Equals("", series.ge tSeriesUid ()); | |
| 193 | else | |
| 194 | assert Equals(ser iesType.ge tDicomUid( ), series. getSeriesU id()); | |
| 195 | asse rtEquals(s eriesType. getModalit y(), serie s.getModal ity()); | |
| 196 | asse rtEquals(O bjectOrigi n.DOD, ser ies.getObj ectOrigin( )); | |
| 197 | int expectedIn dex = 0; | |
| 198 | for( Image imag e : series ) | |
| 199 | { | |
| 200 | compar eImage( | |
| 201 | seriesTy pe.getComp onentInsta nces().get Instance(e xpectedInd ex), | |
| 202 | seriesTy pe, studyT ype, image ); | |
| 203 | expect edIndex++; | |
| 204 | } | |
| 205 | } | |
| 206 | ||
| 207 | pr ivate void compareIm age(gov.va .med.imagi ng.mix.web services.r est.types. v1.Instanc eType inst ance, | |
| 208 | gov.va .med.imagi ng.mix.web services.r est.types. v1.SeriesT ype series , | |
| 209 | gov.va .med.imagi ng.mix.web services.r est.types. v1.StudyTy pe study, | |
| 210 | Image image) | |
| 211 | { | |
| 212 | asse rtNotNull( instance); | |
| 213 | asse rtNotNull( image); | |
| 214 | asse rtEquals(i nstance.ge tDicomInst anceNumber () + "", i mage.getIm ageNumber( )); | |
| 215 | ||
| 216 | // Stri ng decoded ImageUrn = Base32Con versionUti lity.base3 2Decode(im age.getIen ()); | |
| 217 | // asse rtEquals(i nstance.ge tImageUrn( ), decoded ImageUrn); | |
| 218 | // if(i nstance.ge tDicomUid( ) == null) | |
| 219 | // assert Equals("", image.get ImageUid() ); | |
| 220 | // else | |
| 221 | // assert Equals(ins tance.getD icomUid(), image.get ImageUid() ); | |
| 222 | ||
| 223 | asse rtEquals(( instance.g etDicomIns tanceNumbe r() == nul l ? "" : instance.g etDicomIns tanceNumbe r().toStri ng()), ima ge.getDico mImageNumb erForDispl ay()); | |
| 224 | if(s eries.getM odality() == null) | |
| 225 | assert Equals("", image.get ImageModal ity()); | |
| 226 | else | |
| 227 | assert Equals(ser ies.getMod ality(), i mage.getIm ageModalit y()); | |
| 228 | asse rtEquals(s eries.getD icomSeries Number() = = null ? " " : series .getDicomS eriesNumbe r().toStri ng(), imag e.getDicom SequenceNu mberForDis play()); | |
| 229 | if(s tudy.getDe scription( ) == null) | |
| 230 | assert Equals("", image.get Descriptio n()); | |
| 231 | else | |
| 232 | assert Equals(stu dy.getDesc ription(), image.get Descriptio n()); | |
| 233 | asse rtEquals(s tudy.getPa tientId(), image.get PatientId( )); | |
| 234 | if(s tudy.getPa tientName( ) == null) | |
| 235 | assert Equals("", image.get PatientNam e()); | |
| 236 | else | |
| 237 | assert Equals(stu dy.getPati entName(), image.get PatientNam e()); | |
| 238 | if(s tudy.getPr ocedureDat e() == nul l) | |
| 239 | assert Equals("", image.get ProcedureD ate()); | |
| 240 | else | |
| 241 | assert Equals(mix Translator .convertDI COMDateToD ate(study. getProcedu reDate()), image.get ProcedureD ate()); | |
| 242 | if(s tudy.getPr ocedureDes cription() == null) | |
| 243 | assert Equals("", image.get Procedure( )); | |
| 244 | else | |
| 245 | assert Equals(stu dy.getProc edureDescr iption(), image.getP rocedure() ); | |
| 246 | asse rtEquals(s ite.getSit eAbbr(), i mage.getSi teAbbr()); | |
| 247 | asse rtEquals(s ite.getSit eNumber(), image.get SiteNumber ()); | |
| 248 | // C TB 29Nov20 09 | |
| 249 | //St ring decod edStudyId = Base32Co nversionUt ility.base 32Decode(i mage.getSt udyIen()); | |
| 250 | Stri ng decoded StudyId = image.getS tudyIen(); | |
| 251 | try | |
| 252 | { | |
| 253 | StudyU RN studyUr n = URNFac tory.creat e(study.ge tStudyId() , StudyURN .class); | |
| 254 | assert Equals(stu dyUrn.getS tudyId(), decodedStu dyId); | |
| 255 | } | |
| 256 | catc h (URNForm atExceptio n x) | |
| 257 | { | |
| 258 | x.prin tStackTrac e(); | |
| 259 | fail() ; | |
| 260 | } | |
| 261 | } | |
| 262 | ||
| 263 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type creat eStudyType (boolean n ullValues) | |
| 264 | { | |
| 265 | if(n ullValues) | |
| 266 | { | |
| 267 | gov.va .med.imagi ng.mix.web services.r est.types. v1.StudyTy pe study = | |
| 268 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type(); | |
| 269 | study. setStudyId ("urn:bhie study:753. 42.86"); | |
| 270 | study. setDescrip tion(null) ; | |
| 271 | study. setDicomUi d(null); | |
| 272 | study. setProcedu reDate("20 0701012123 "); | |
| 273 | study. setProcedu reDescript ion(null); | |
| 274 | study. setPatient Id("951628 4"); | |
| 275 | study. setPatient Name("TEST PATIENT,NA ME"); | |
| 276 | study. setSiteNam e(null); | |
| 277 | study. setSiteNum ber(null); | |
| 278 | study. setSiteAbb reviation( null); | |
| 279 | study. setSpecial tyDescript ion(null); | |
| 280 | // study. setRadiolo gyReport(n ull); | |
| 281 | study. setModalit ies(new Mo dalitiesTy pe(new Str ing []{"CR "})); | |
| 282 | ||
| 283 | gov.va .med.imagi ng.mix.web services.r est.types. v1.SeriesT ype [] ser iesArray = | |
| 284 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType[1]; | |
| 285 | series Array[0] = createSer iesType(nu llValues); | |
| 286 | gov.va .med.imagi ng.mix.web services.r est.types. v1.StudyTy peComponen tSeries co mponentSer ies = | |
| 287 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study TypeCompon entSeries( ); | |
| 288 | compon entSeries. setSeries( seriesArra y); | |
| 289 | ||
| 290 | study. setImageCo unt(series Array[0].g etImageCou nt()); | |
| 291 | study. setSeriesC ount(serie sArray.len gth); | |
| 292 | study. setCompone ntSeries(c omponentSe ries); | |
| 293 | return study; | |
| 294 | } | |
| 295 | retu rn createS tudyType() ; | |
| 296 | } | |
| 297 | ||
| 298 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type creat eStudyType () | |
| 299 | { | |
| 300 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study Type study = | |
| 301 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Stu dyType(); | |
| 302 | stud y.setDescr iption("St udy descri ption"); | |
| 303 | stud y.setDicom Uid("654.3 21"); | |
| 304 | stud y.setModal ities(new Modalities Type(new S tring []{" CR"})); | |
| 305 | stud y.setPatie ntId("9516 284"); | |
| 306 | stud y.setPatie ntName("TE STPATIENT, NAME"); | |
| 307 | stud y.setProce dureDate(" 2007010121 23"); | |
| 308 | stud y.setProce dureDescri ption("Pro cedure des cription") ; | |
| 309 | // stud y.setRadio logyReport ("Rad repo rt"); | |
| 310 | stud y.setSiteA bbreviatio n("DOD"); | |
| 311 | stud y.setSiteN ame("Dept. of Defens e"); | |
| 312 | stud y.setSiteN umber("200 "); | |
| 313 | stud y.setSpeci altyDescri ption("Spe cialty"); | |
| 314 | stud y.setStudy Id("urn:bh iestudy:75 3.42.86"); | |
| 315 | ||
| 316 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType [] s eriesArray = | |
| 317 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Ser iesType[1] ; | |
| 318 | seri esArray[0] = createS eriesType( ); | |
| 319 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Study TypeCompon entSeries componentS eries = | |
| 320 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Stu dyTypeComp onentSerie s(); | |
| 321 | comp onentSerie s.setSerie s(seriesAr ray); | |
| 322 | ||
| 323 | stud y.setImage Count(seri esArray[0] .getImageC ount()); | |
| 324 | stud y.setSerie sCount(ser iesArray.l ength); | |
| 325 | stud y.setCompo nentSeries (component Series); | |
| 326 | ||
| 327 | retu rn study; | |
| 328 | } | |
| 329 | ||
| 330 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType crea teSeriesTy pe(boolean nullValue s) | |
| 331 | { | |
| 332 | if(n ullValues) | |
| 333 | { | |
| 334 | gov.va .med.imagi ng.mix.web services.r est.types. v1.SeriesT ype series = | |
| 335 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType(); | |
| 336 | series .setSeries Id("series Id-123456" ); | |
| 337 | series .setDicomS eriesNumbe r(null); | |
| 338 | series .setDicomU id(null); | |
| 339 | series .setDescri ption(null ); | |
| 340 | series .setModali ty("CR"); | |
| 341 | gov.va .med.imagi ng.mix.web services.r est.types. v1.SeriesT ypeCompone ntInstance s instance s = | |
| 342 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sTypeCompo nentInstan ces(); | |
| 343 | gov.va .med.imagi ng.mix.web services.r est.types. v1.Instanc eType [] i nstanceArr ay = | |
| 344 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType[1] ; | |
| 345 | instan ceArray[0] = createI nstanceTyp e(nullValu es); | |
| 346 | instan ces.setIns tance(inst anceArray) ; | |
| 347 | series .setCompon entInstanc es(instanc es); | |
| 348 | return series; | |
| 349 | } | |
| 350 | retu rn createS eriesType( ); | |
| 351 | } | |
| 352 | ||
| 353 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType crea teSeriesTy pe() | |
| 354 | { | |
| 355 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sType seri es = | |
| 356 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Ser iesType(); | |
| 357 | seri es.setDesc ription("S eries desc ription"); | |
| 358 | seri es.setDico mSeriesNum ber(456); | |
| 359 | seri es.setDico mUid("456. 789.012"); | |
| 360 | seri es.setImag eCount(1); | |
| 361 | seri es.setModa lity("CR") ; | |
| 362 | seri es.setSeri esId("seri esId-12345 6"); | |
| 363 | ||
| 364 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Serie sTypeCompo nentInstan ces instan ces = | |
| 365 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Ser iesTypeCom ponentInst ances(); | |
| 366 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType [] instanceA rray = | |
| 367 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Ins tanceType[ 1]; | |
| 368 | inst anceArray[ 0] = creat eInstanceT ype(); | |
| 369 | inst ances.setI nstance(in stanceArra y); | |
| 370 | seri es.setComp onentInsta nces(insta nces); | |
| 371 | retu rn series; | |
| 372 | } | |
| 373 | ||
| 374 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType cr eateInstan ceType(boo lean nullV alues) | |
| 375 | { | |
| 376 | if(n ullValues) { | |
| 377 | gov.va .med.imagi ng.mix.web services.r est.types. v1.Instanc eType inst ance = | |
| 378 | new gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType(); | |
| 379 | instan ce.setDico mInstanceN umber(null ); | |
| 380 | instan ce.setDico mUid(null) ; | |
| 381 | instan ce.setImag eUrn("urn: bhieimage: 123-456-78 9"); | |
| 382 | return instance; | |
| 383 | } | |
| 384 | retu rn createI nstanceTyp e(); | |
| 385 | } | |
| 386 | ||
| 387 | pr ivate gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType cr eateInstan ceType() | |
| 388 | { | |
| 389 | gov. va.med.ima ging.mix.w ebservices .rest.type s.v1.Insta nceType in stance = | |
| 390 | new go v.va.med.i maging.mix .webservic es.rest.ty pes.v1.Ins tanceType( ); | |
| 391 | inst ance.setDi comInstanc eNumber(13 2); | |
| 392 | inst ance.setDi comUid("12 3.456.789" ); | |
| 393 | inst ance.setIm ageUrn("ur n:bhieimag e:123-456- 789"); | |
| 394 | retu rn instanc e; | |
| 395 | } | |
| 396 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.