Produced by Araxis Merge on 12/5/2017 12:06:34 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets | StudyTab.java | Mon Dec 4 21:35:32 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets | StudyTab.java | Mon Dec 4 21:56:53 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 400 |
| 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 27, 2012 | |
| 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.awi v.client.u i.widgets; | |
| 27 | ||
| 28 | import org .apache.lo gging.log4 j.LogManag er; | |
| 29 | import org .apache.lo gging.log4 j.Logger; | |
| 30 | ||
| 31 | import gov .va.med.im aging.awiv .business. AwivImage; | |
| 32 | import gov .va.med.im aging.awiv .business. AwivStudyD etails; | |
| 33 | import gov .va.med.im aging.awiv .business. AwivUserIn formation; | |
| 34 | import gov .va.med.im aging.awiv .business. Patient; | |
| 35 | import gov .va.med.im aging.awiv .business. UUID; | |
| 36 | import gov .va.med.im aging.awiv .client.Aw ivHelper; | |
| 37 | import gov .va.med.im aging.awiv .client.da o.PatientS tudyServic eDao; | |
| 38 | import gov .va.med.im aging.awiv .client.ui .data.Imag eRecord; | |
| 39 | import gov .va.med.im aging.awiv .client.ui .data.Stud yRecord; | |
| 40 | import gov .va.med.im aging.awiv .client.ui .widgets.d ialogs.Wai tDialog; | |
| 41 | ||
| 42 | import com .google.gw t.user.cli ent.Window .Location; | |
| 43 | import com .google.gw t.user.cli ent.rpc.As yncCallbac k; | |
| 44 | import com .smartgwt. client.wid gets.layou t.VLayout; | |
| 45 | import com .smartgwt. client.wid gets.tab.T ab; | |
| 46 | import com .smartgwt. client.wid gets.tile. TileGrid; | |
| 47 | import com .smartgwt. client.wid gets.viewe r.DetailVi ewerField; | |
| 48 | ||
| 49 | /** | |
| 50 | * This ta b is exper imental an d not part of patch 124. This tab was su pposed to show the i mages in a group of images | |
| 51 | * | |
| 52 | * @author
|
|
| 53 | * | |
| 54 | */ | |
| 55 | public cla ss StudyTa b | |
| 56 | extends Ta b | |
| 57 | implements AwivTab | |
| 58 | { | |
| 59 | pr ivate Pati ent patien t; | |
| 60 | pr ivate Stud yRecord st udyRecord; | |
| 61 | pr ivate Awiv UserInform ation awiv UserInform ation; | |
| 62 | pr ivate Tile Grid image sGrid = ne w TileGrid (); | |
| 63 | pr ivate stat ic Logger logger = L ogManager. getLogger( ""); | |
| 64 | ||
| 65 | pu blic Study Tab() | |
| 66 | { | |
| 67 | supe r(); | |
| 68 | VLay out layout = new VLa yout(); | |
| 69 | layo ut.setWidt h100(); | |
| 70 | layo ut.setHeig ht100(); | |
| 71 | ||
| 72 | ||
| 73 | imag esGrid.set TileWidth( 194); | |
| 74 | imag esGrid.set TileHeight (165); | |
| 75 | imag esGrid.set Width100() ; | |
| 76 | imag esGrid.set Height100( ); | |
| 77 | imag esGrid.set CanReorder Tiles(fals e); | |
| 78 | imag esGrid.set ShowAllRec ords(false ); | |
| 79 | ||
| 80 | Deta ilViewerFi eld thumbn ailField = new Detai lViewerFie ld("imageI dentifier" ); | |
| 81 | thum bnailField .setType(" image"); | |
| 82 | ||
| 83 | Stri ng imageUr lPrefix = Location.g etProtocol () + "//" + Location .getHost() + "/Awiv/ thumbnail/ "; | |
| 84 | logg er.info("I mageURLPre fix: " + i mageUrlPre fix); | |
| 85 | thum bnailField .setImageU RLPrefix(i mageUrlPre fix); | |
| 86 | //th umbnailFie ld.setImag eURLPrefix ("http://l ocalhost:8 080/Awiv/t humbnail/" ); | |
| 87 | thum bnailField .setImageW idth(186); | |
| 88 | thum bnailField .setImageH eight(120) ; | |
| 89 | ||
| 90 | //De tailViewer Field proc edureField = new Det ailViewerF ield("proc edure"); | |
| 91 | Deta ilViewerFi eld proced ureField = new Detai lViewerFie ld("imageI dentifier" ); | |
| 92 | // DetailView erField pr ocedureDat eField = n ew DetailV iewerField ("procedur eDate"); | |
| 93 | ||
| 94 | im agesGrid.s etFields(t humbnailFi eld, proce dureField) ;//, proce dureDateFi eld); | |
| 95 | // imagesGrid .setFields (procedure Field);//, procedure DateField) ; | |
| 96 | ||
| 97 | this .setCanClo se(true); | |
| 98 | layo ut.addMemb er(imagesG rid); | |
| 99 | this .setPane(l ayout); | |
| 100 | } | |
| 101 | ||
| 102 | /* (non-Java doc) | |
| 103 | * @see gov. va.med.ima ging.awiv. client.ui. widgets.Aw ivTab#getC reationInd ex() | |
| 104 | * / | |
| 105 | @O verride | |
| 106 | pu blic int g etCreation Index() | |
| 107 | { | |
| 108 | retu rn 2; | |
| 109 | } | |
| 110 | ||
| 111 | /* * | |
| 112 | * @return t he patient | |
| 113 | * / | |
| 114 | pu blic Patie nt getPati ent() | |
| 115 | { | |
| 116 | retu rn patient ; | |
| 117 | } | |
| 118 | ||
| 119 | /* * | |
| 120 | * @param pa tient the patient to set | |
| 121 | * / | |
| 122 | pu blic void setPatient (Patient p atient) | |
| 123 | { | |
| 124 | this .patient = patient; | |
| 125 | } | |
| 126 | ||
| 127 | /* * | |
| 128 | * @return t he studyRe cord | |
| 129 | * / | |
| 130 | pu blic Study Record get StudyRecor d() | |
| 131 | { | |
| 132 | retu rn studyRe cord; | |
| 133 | } | |
| 134 | ||
| 135 | /* * | |
| 136 | * @param st udyRecord the studyR ecord to s et | |
| 137 | * / | |
| 138 | pu blic void setStudyRe cord(Study Record stu dyRecord) | |
| 139 | { | |
| 140 | this .studyReco rd = study Record; | |
| 141 | } | |
| 142 | ||
| 143 | /* * | |
| 144 | * @return t he awivUse rInformati on | |
| 145 | * / | |
| 146 | pu blic AwivU serInforma tion getAw ivUserInfo rmation() | |
| 147 | { | |
| 148 | retu rn awivUse rInformati on; | |
| 149 | } | |
| 150 | ||
| 151 | /* * | |
| 152 | * @param aw ivUserInfo rmation th e awivUser Informatio n to set | |
| 153 | * / | |
| 154 | pu blic void setAwivUse rInformati on(AwivUse rInformati on awivUse rInformati on) | |
| 155 | { | |
| 156 | this .awivUserI nformation = awivUse rInformati on; | |
| 157 | } | |
| 158 | ||
| 159 | pu blic void displayStu dy(AwivUse rInformati on awivUse rInformati on, | |
| 160 | Patien t patient, StudyReco rd studyRe cord) | |
| 161 | { | |
| 162 | this .patient = patient; | |
| 163 | this .studyReco rd = study Record; | |
| 164 | this .awivUserI nformation = awivUse rInformati on; | |
| 165 | this .setTitle( this.study Record.get ShortDescr iption()); | |
| 166 | ||
| 167 | Stri ng transac tionId = U UID.uuid() ; | |
| 168 | logg er.info("R etrieving images for study '" + studyRec ord.getStu dyIdentifi er() + "' with trans action Id '" + trans actionId + "'."); | |
| 169 | Wait Dialog.dis playWaitDi alog("Load ing Study Images", " Loading im ages for s tudy"); | |
| 170 | Pati entStudySe rviceDao.p atientStud yServiceDa o.getStudy Details(tr ansactionI d, | |
| 171 | studyRec ord.getStu dyIdentifi er(), new AsyncCallb ack<AwivSt udyDetails >() | |
| 172 | { | |
| 173 | ||
| 174 | @Overr ide | |
| 175 | public void onSu ccess(Awiv StudyDetai ls awivStu dyDetails) | |
| 176 | { | |
| 177 | WaitDial og.hideWai tDialog(); | |
| 178 | ||
| 179 | AwivImag e [] awivI mages = aw ivStudyDet ails.getAw ivImages() ; | |
| 180 | ImageRec ord [] ima geRecords = new Imag eRecord[aw ivImages.l ength]; | |
| 181 | for(int i = 0; i < awivImage s.length; i++) | |
| 182 | { | |
| 183 | imageRecor ds[i] = ne w ImageRec ord(awivIm ages[i]); | |
| 184 | //logger.i nfo("Image Record[" + i + "] id entifier=" + imageRe cords[i].g etImageIde ntifier()) ; | |
| 185 | } | |
| 186 | ||
| 187 | imagesGr id.setData (imageReco rds); | |
| 188 | } | |
| 189 | ||
| 190 | @Overr ide | |
| 191 | public void onFa ilure(Thro wable arg0 ) | |
| 192 | { | |
| 193 | WaitDial og.hideWai tDialog(); | |
| 194 | logger.e rror("Erro r loading study imag es, " + ar g0.getMess age()); | |
| 195 | if(!Awiv ExceptionH andler.han dleService Exception( arg0)) | |
| 196 | { | |
| 197 | AwivHelper .displayEr rorMessage ("Error lo ading stud y images", arg0); | |
| 198 | } | |
| 199 | } | |
| 200 | }); | |
| 201 | } | |
| 202 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.