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 | PatientStudiesListGrid.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 | PatientStudiesListGrid.java | Mon Dec 4 21:56:51 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 560 |
| 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: Dec 12, 2011 | |
| 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. AwivUserIn formation; | |
| 32 | import gov .va.med.im aging.awiv .business. Patient; | |
| 33 | import gov .va.med.im aging.awiv .client.Aw ivHelper; | |
| 34 | import gov .va.med.im aging.awiv .client.ev ents.Study SelectedEv ent; | |
| 35 | import gov .va.med.im aging.awiv .client.ui .data.Stud yRecord; | |
| 36 | ||
| 37 | import com .google.gw t.user.cli ent.Window .Location; | |
| 38 | import com .smartgwt. client.cor e.KeyIdent ifier; | |
| 39 | import com .smartgwt. client.dat a.RecordLi st; | |
| 40 | import com .smartgwt. client.typ es.Alignme nt; | |
| 41 | import com .smartgwt. client.typ es.ListGri dFieldType ; | |
| 42 | import com .smartgwt. client.typ es.Selecti onStyle; | |
| 43 | import com .smartgwt. client.typ es.SortDir ection; | |
| 44 | import com .smartgwt. client.wid gets.grid. ListGrid; | |
| 45 | import com .smartgwt. client.wid gets.grid. ListGridFi eld; | |
| 46 | import com .smartgwt. client.wid gets.grid. events.Rec ordDoubleC lickEvent; | |
| 47 | import com .smartgwt. client.wid gets.grid. events.Rec ordDoubleC lickHandle r; | |
| 48 | import com .smartgwt. client.wid gets.menu. Menu; | |
| 49 | import com .smartgwt. client.wid gets.menu. MenuItem; | |
| 50 | import com .smartgwt. client.wid gets.menu. MenuItemSe parator; | |
| 51 | import com .smartgwt. client.wid gets.menu. events.Cli ckHandler; | |
| 52 | import com .smartgwt. client.wid gets.menu. events.Men uItemClick Event; | |
| 53 | ||
| 54 | /** | |
| 55 | * List gr id that sh ows the pa tient stud ies | |
| 56 | * @author
|
|
| 57 | * | |
| 58 | */ | |
| 59 | public cla ss Patient StudiesLis tGrid | |
| 60 | extends Li stGrid | |
| 61 | { | |
| 62 | pr ivate Pati ent patien t = null; | |
| 63 | pr ivate Stud ySelectedE vent study SelectedEv ent = null ; | |
| 64 | pr ivate fina l AwivUser Informatio n awivUser Informatio n; | |
| 65 | pr ivate stat ic Logger logger = L ogManager. getLogger( ""); | |
| 66 | ||
| 67 | pu blic Patie ntStudiesL istGrid(Aw ivUserInfo rmation aw ivUserInfo rmation) | |
| 68 | { | |
| 69 | supe r(); | |
| 70 | this .awivUserI nformation = awivUse rInformati on; | |
| 71 | ||
| 72 | this .setShowAl lRecords(f alse); | |
| 73 | this .setCanGro upBy(false ); | |
| 74 | this .setCanFre ezeFields( false); | |
| 75 | this .setCanMul tiSort(fal se); | |
| 76 | this .setSelect ionType(Se lectionSty le.SINGLE) ; | |
| 77 | this .setEmptyM essage("Se lect a sit e to retri eve the li st of stud ies for th e patient. "); | |
| 78 | ||
| 79 | List GridField iconField = new List GridField( "icon", " ", 30); | |
| 80 | icon Field.setT ype(ListGr idFieldTyp e.IMAGE); | |
| 81 | icon Field.setA lign(Align ment.RIGHT ); | |
| 82 | icon Field.setC anSort(fal se); // do esn't make sense to sort this column | |
| 83 | icon Field.setI mageURLPre fix(Locati on.getProt ocol() + " //" + Loca tion.getHo st() + "/A wiv/images /"); | |
| 84 | logg er.info("S etting ico n URL pref ix: " + Lo cation.get Protocol() + "//" + Location.g etHost() + "/Awiv/im ages/"); | |
| 85 | List GridField siteField = new List GridField( "siteAbbr" , "Site", 75); | |
| 86 | List GridField dateField = new List GridField( "procedure Date", "Pr ocedure Da te", 125); | |
| 87 | List GridField procedureF ield = new ListGridF ield("proc edure", "P rocedure", 150); | |
| 88 | List GridField numberOfIm agesField = new List GridField( "imageCoun t", "# Img s", 70); | |
| 89 | List GridField shortDescr iptionFiel d = new Li stGridFiel d("shortDe scription" , "Short D esc", 200) ; | |
| 90 | List GridField packageFie ld = new L istGridFie ld("studyP ackage", " Package", 100); | |
| 91 | List GridField classField = new Lis tGridField ("studyCla ss", "Clas s", 120); | |
| 92 | List GridField typeField = new List GridField( "studyType ", "Type", 200); | |
| 93 | List GridField specialtyF ield = new ListGridF ield("stud ySpecialty ", "Specia lty", 150) ; | |
| 94 | ||
| 95 | ||
| 96 | this .setFields (iconField , siteFiel d, dateFie ld, proced ureField, | |
| 97 | numberOf ImagesFiel d, shortDe scriptionF ield, pack ageField, classField , | |
| 98 | typeFiel d, special tyField); | |
| 99 | ||
| 100 | // s ort by dat e by defau lt | |
| 101 | this .setSortFi eld("proce dureDate") ; | |
| 102 | this .setSortDi rection(So rtDirectio n.DESCENDI NG); | |
| 103 | ||
| 104 | this .addRecord DoubleClic kHandler(n ew RecordD oubleClick Handler() | |
| 105 | { | |
| 106 | @Overr ide | |
| 107 | public void onRe cordDouble Click(Reco rdDoubleCl ickEvent e vent) | |
| 108 | { | |
| 109 | StudyRec ord studyR ecord = (S tudyRecord ) event.ge tRecord(); | |
| 110 | displayS tudy(study Record, fa lse); | |
| 111 | } | |
| 112 | }); | |
| 113 | ||
| 114 | Menu contextMe nu = new M enu(); | |
| 115 | //co ntextMenu. setShowIco ns(false); // made i t harder t o see the menu when right clic ked | |
| 116 | cont extMenu.se tTitle("Ri ght click" ); // this isn't sho wn anywher e | |
| 117 | ||
| 118 | Menu Item openI mageMenuIt em = new M enuItem("O pen Image" ); | |
| 119 | KeyI dentifier openImageK ey = creat eKeyIdenti fier(true, false, tr ue, "O"); | |
| 120 | open ImageMenuI tem.setKey s(openImag eKey); | |
| 121 | open ImageMenuI tem.setKey Title("Ctr l+Shift+O" ); | |
| 122 | open ImageMenuI tem.addCli ckHandler( new ClickH andler() | |
| 123 | { | |
| 124 | ||
| 125 | @Overr ide | |
| 126 | public void onCl ick(MenuIt emClickEve nt event) | |
| 127 | { | |
| 128 | StudyRec ord studyR ecord = (S tudyRecord )getSelect edRecord() ; | |
| 129 | if(study Record != null) | |
| 130 | { | |
| 131 | displayStu dy(studyRe cord, fals e); | |
| 132 | } | |
| 133 | } | |
| 134 | }); | |
| 135 | ||
| 136 | bool ean debugM ode = Awiv Helper.isD ebugMode() ; | |
| 137 | ||
| 138 | Menu Item showI mageInform ationMenuI tem = new MenuItem(" Image Info rmation"); | |
| 139 | KeyI dentifier imageInfoK ey = creat eKeyIdenti fier(true, false, tr ue, "F"); | |
| 140 | show ImageInfor mationMenu Item.setKe ys(imageIn foKey); | |
| 141 | show ImageInfor mationMenu Item.setKe yTitle("Ct rl+Shift+F "); | |
| 142 | show ImageInfor mationMenu Item.addCl ickHandler (new Click Handler() | |
| 143 | { | |
| 144 | ||
| 145 | @Overr ide | |
| 146 | public void onCl ick(MenuIt emClickEve nt event) | |
| 147 | { | |
| 148 | StudyRec ord studyR ecord = (S tudyRecord )getSelect edRecord() ; | |
| 149 | if(study Record != null) | |
| 150 | { | |
| 151 | ImageInfor mationWind ow.display ImageInfor mationWind ow(patient , studyRec ord); | |
| 152 | } | |
| 153 | ||
| 154 | } | |
| 155 | }); | |
| 156 | ||
| 157 | Menu Item showI mageInform ationAdvan cedMenuIte m = null; | |
| 158 | if(t his.awivUs erInformat ion.userHa sKey(AwivC onstants.m agSystemSe curityKey) ) | |
| 159 | { | |
| 160 | showIm ageInforma tionAdvanc edMenuItem = new Men uItem("Ima ge Informa tion Advan ced"); | |
| 161 | KeyIde ntifier im ageInfoAdv ancedKey = createKey Identifier (true, fal se, true, "A"); | |
| 162 | showIm ageInforma tionAdvanc edMenuItem .setKeys(i mageInfoAd vancedKey) ; | |
| 163 | showIm ageInforma tionAdvanc edMenuItem .setKeyTit le("Ctrl+S hift+A"); | |
| 164 | showIm ageInforma tionAdvanc edMenuItem .addClickH andler(new ClickHand ler() | |
| 165 | { | |
| 166 | @Overrid e | |
| 167 | public v oid onClic k(MenuItem ClickEvent event) | |
| 168 | { | |
| 169 | StudyRecor d studyRec ord = (Stu dyRecord)g etSelected Record(); | |
| 170 | if(studyRe cord != nu ll) | |
| 171 | { | |
| 172 | Im ageInforma tionWindow .displayAd vancedImag eInformati onWindow(p atient, st udyRecord) ; | |
| 173 | } | |
| 174 | } | |
| 175 | }); | |
| 176 | } | |
| 177 | ||
| 178 | Menu Item showS tudyReport MenuItem = new MenuI tem("View Report"); | |
| 179 | KeyI dentifier reportKey = createKe yIdentifie r(true, fa lse, true, "V"); | |
| 180 | show StudyRepor tMenuItem. setKeys(re portKey); | |
| 181 | show StudyRepor tMenuItem. setKeyTitl e("Ctrl+Sh ift+V"); | |
| 182 | show StudyRepor tMenuItem. addClickHa ndler(new ClickHandl er() | |
| 183 | { | |
| 184 | ||
| 185 | @Overr ide | |
| 186 | public void onCl ick(MenuIt emClickEve nt event) | |
| 187 | { | |
| 188 | StudyRec ord studyR ecord = (S tudyRecord )getSelect edRecord() ; | |
| 189 | if(study Record != null) | |
| 190 | { | |
| 191 | displayStu dyReport(s tudyRecord ); | |
| 192 | } | |
| 193 | } | |
| 194 | }); | |
| 195 | ||
| 196 | Menu Item openA lternateVi ewerMenuIt em = new M enuItem("O pen Altern ate Image Viewer"); | |
| 197 | open AlternateV iewerMenuI tem.addCli ckHandler( new ClickH andler() | |
| 198 | { | |
| 199 | ||
| 200 | @Overr ide | |
| 201 | public void onCl ick(MenuIt emClickEve nt event) | |
| 202 | { | |
| 203 | StudyRec ord studyR ecord = (S tudyRecord )getSelect edRecord() ; | |
| 204 | if(study Record != null) | |
| 205 | { | |
| 206 | displayStu dy(studyRe cord, true ); | |
| 207 | } | |
| 208 | } | |
| 209 | }); | |
| 210 | ||
| 211 | cont extMenu.ad dItem(open ImageMenuI tem); | |
| 212 | if(d ebugMode) | |
| 213 | contex tMenu.addI tem(openAl ternateVie werMenuIte m); | |
| 214 | cont extMenu.ad dItem(show StudyRepor tMenuItem) ; | |
| 215 | cont extMenu.ad dItem(new MenuItemSe parator()) ; | |
| 216 | cont extMenu.ad dItem(show ImageInfor mationMenu Item); | |
| 217 | if(s howImageIn formationA dvancedMen uItem != n ull) | |
| 218 | { | |
| 219 | contex tMenu.addI tem(showIm ageInforma tionAdvanc edMenuItem ); | |
| 220 | } | |
| 221 | ||
| 222 | this .setContex tMenu(cont extMenu); | |
| 223 | } | |
| 224 | ||
| 225 | pr ivate KeyI dentifier createKeyI dentifier( boolean co ntrol, boo lean alt, boolean sh ift, Strin g keyName) | |
| 226 | { | |
| 227 | KeyI dentifier keyIdentif ier = new KeyIdentif ier(); | |
| 228 | keyI dentifier. setCtrlKey (control); | |
| 229 | keyI dentifier. setShiftKe y(shift); | |
| 230 | keyI dentifier. setAltKey( alt); | |
| 231 | keyI dentifier. setKeyName (keyName); | |
| 232 | retu rn keyIden tifier; | |
| 233 | } | |
| 234 | ||
| 235 | pr ivate void displaySt udyReport( StudyRecor d studyRec ord) | |
| 236 | { | |
| 237 | Stud yReportVie wer.displa yStudyRepo rt(studyRe cord, pati ent); | |
| 238 | } | |
| 239 | ||
| 240 | pu blic Study SelectedEv ent getStu dySelected Event() | |
| 241 | { | |
| 242 | retu rn studySe lectedEven t; | |
| 243 | } | |
| 244 | ||
| 245 | pu blic void setStudySe lectedEven t(StudySel ectedEvent studySele ctedEvent) | |
| 246 | { | |
| 247 | this .studySele ctedEvent = studySel ectedEvent ; | |
| 248 | } | |
| 249 | ||
| 250 | pu blic void setPatient (Patient p atient) | |
| 251 | { | |
| 252 | this .patient = patient; | |
| 253 | } | |
| 254 | ||
| 255 | pu blic void addStudies (StudyReco rd [] stud yRecords) | |
| 256 | { | |
| 257 | Reco rdList rec ordList = getDataAsR ecordList( ); | |
| 258 | reco rdList.add List(study Records); | |
| 259 | setD ata(record List); | |
| 260 | } | |
| 261 | ||
| 262 | pu blic void removeStud ies(StudyR ecord [] s tudyRecord s) | |
| 263 | { | |
| 264 | Reco rdList rec ordList = getDataAsR ecordList( ); | |
| 265 | reco rdList.rem oveList(st udyRecords ); | |
| 266 | setD ata(record List); | |
| 267 | } | |
| 268 | ||
| 269 | pr ivate void displaySt udy(StudyR ecord stud yRecord, b oolean use AlternateV iewer) | |
| 270 | { | |
| 271 | if(u seAlternat eViewer) | |
| 272 | { | |
| 273 | if(stu dySelected Event != n ull) | |
| 274 | studySel ectedEvent .onStudySe lected(pat ient, stud yRecord); | |
| 275 | } | |
| 276 | else | |
| 277 | { | |
| 278 | AwivVi ewerManage r.displayA wivViewer( PatientStu diesListGr id.this.aw ivUserInfo rmation, | |
| 279 | patient, studyReco rd); | |
| 280 | } | |
| 281 | } | |
| 282 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.