| demos\medical\infobar.sdf |
1 Form { 2 name: "infobar" 3 title: "Patient Information" 4 titleLocation: not_displayed 5 bounds { 6 x: "0" 7 y: "0" 8 } 9 /** 10 * Specify the title to display when the form is collapsed. 11 * Use embedded functions and field references to automatically generate 12 * the title 13 */ 14 collapsedTitle: "<html><b>Patient:</b> {$ucase(name)} - <b>SSN#</b> {ssn} - <b>Age:</b> {age} - <b>Provider:</b> {provider}</html>" 15 layout: forms 16 rows: "4dlu,d,2dlu,d,2dlu,d,2dlu,2dlu" 17 columns: "d,100px,d,d,4dlu,d,4dlu,d,4dlu,d,4dlu,d,4dlu,d,10px,170px,16px" 18 widgets { 19 { 20 TextField { 21 name: "name" 22 templateName: "infobar.field" 23 bounds { 24 x: "5" 25 y: "1" 26 } 27 visibleCharacters: 12 28 value: "Banks, Tyra" 29 } 30 } 31 { 32 TextField { 33 name: "provider" 34 templateName: "infobar.field" 35 bounds { 36 x: "5" 37 y: "3" 38 } 39 visibleCharacters: 12 40 value: "DeCoteau, Don" 41 editable: false 42 } 43 } 44 { 45 Label { 46 bounds { 47 x: "7" 48 y: "1" 49 } 50 value: "Gender:" 51 textHAlignment: trailing 52 } 53 } 54 { 55 Label { 56 bounds { 57 x: "7" 58 y: "3" 59 } 60 value: "SSN#:" 61 textHAlignment: trailing 62 } 63 } 64 { 65 Label { 66 bounds { 67 x: "11" 68 y: "1" 69 } 70 value: "Age:" 71 textHAlignment: trailing 72 } 73 } 74 { 75 Label { 76 bounds { 77 x: "11" 78 y: "3" 79 } 80 value: "Date of Birth:" 81 textHAlignment: trailing 82 } 83 } 84 { 85 TextField { 86 name: "gender" 87 templateName: "infobar.field" 88 bounds { 89 x: "9" 90 y: "1" 91 } 92 visibleCharacters: 10 93 value: "Female" 94 } 95 } 96 { 97 TextField { 98 name: "ssn" 99 templateName: "infobar.field" 100 bounds { 101 x: "9" 102 y: "3" 103 } 104 visibleCharacters: 10 105 value: "123-45-6789" 106 } 107 } 108 { 109 TextField { 110 name: "age" 111 templateName: "infobar.field" 112 horizontalAlign: left 113 bounds { 114 x: "13" 115 y: "1" 116 } 117 visibleCharacters: 3 118 value: "{$$sage.intValue(sage.createDate('T').year-73)}" 119 } 120 } 121 { 122 TextField { 123 name: "dob" 124 templateName: "infobar.field" 125 bounds { 126 x: "13" 127 y: "3" 128 } 129 visibleCharacters: 12 130 value: "December 4, 1973" 131 } 132 } 133 { 134 CheckBox { 135 name: "blind" 136 font { 137 style: bold 138 } 139 bounds { 140 x: "5" 141 y: "5" 142 } 143 enabled: false 144 value: "Blind Patient" 145 } 146 } 147 { 148 CheckBox { 149 name: "mute" 150 font { 151 style: bold 152 } 153 bounds { 154 x: "9" 155 y: "5" 156 } 157 enabled: false 158 value: "Mute Patient" 159 } 160 } 161 { 162 CheckBox { 163 name: "deaf" 164 font { 165 style: bold 166 } 167 bounds { 168 x: "13" 169 y: "5" 170 } 171 enabled: false 172 value: "Deaf Patient" 173 } 174 } 175 { 176 ListBox { 177 name: "allergies" 178 title: "Allergies" 179 titleLocation: top_left 180 borders { 181 shadow [ thickness="7" ] 182 focus 183 } 184 rowSpan: 6 185 font { 186 size: "-1" 187 } 188 fgColor: "#800000" 189 bounds { 190 x: "15" 191 y: "1" 192 } 193 dataURL: "data/allergies_info.txt" 194 selectionMode: none 195 } 196 } 197 { 198 Label { 199 bounds { 200 x: "3" 201 y: "3" 202 } 203 value: "Provider:" 204 textHAlignment: trailing 205 } 206 } 207 { 208 PushButton { 209 name: "nameButton" 210 bounds { 211 x: "3" 212 y: "1" 213 } 214 focusable: false 215 value: "Name:" 216 icon: "lib:images/index.png" 217 textHAlignment: trailing 218 actionType: popup_widget 219 buttonStyle: toolbar 220 popupWidget { 221 Form { 222 title: "Most Recent" 223 borders { 224 group_box 225 } 226 contentPadding { 227 top: "4" 228 right: "4" 229 bottom: "4" 230 left: "4" 231 } 232 columns: "2" 233 widgets { 234 { 235 ListBox { 236 name: "patientPopupList" 237 titleLocation: top_left 238 horizontalAlign: full 239 bounds { 240 y: "0" 241 width: "45ch" 242 height: "10ln" 243 } 244 dataURL:<< 245 Clinton, Bill 246 Reagan, Ronald 247 Washington, George 248 Adams, John 249 Lincoln, Abraham 250 Jefferson, Thomas 251 252 >> [ inline="true" ] 253 selectionMode: single 254 itemDescription { 255 icon: "resource:icon_patient" 256 } 257 changeSelColorOnLostFocus: false 258 singleClickActionEnabled: true 259 } 260 } 261 { 262 ToolBar { 263 bounds { 264 x: "2" 265 } 266 horizontal: false 267 borderPainted: false 268 widgets { 269 { 270 PushButton { 271 value: "Most Recent" 272 icon: "resource:icon_history" 273 showText: false 274 } 275 } 276 { 277 PushButton { 278 value: "Today's Appointments" 279 icon: "resource:icon_calendar_day" 280 showText: false 281 } 282 } 283 { 284 PushButton { 285 value: "Next Seven Days Appointments" 286 icon: "resource:icon_calendar_week" 287 showText: false 288 } 289 } 290 { 291 PushButton { 292 value: "Bookmarked Patients" 293 icon: "resource:icon_bookmark" 294 showText: false 295 } 296 } 297 { 298 PushButton { 299 value: "My Patients" 300 icon: "resource:icon_patients" 301 showText: false 302 } 303 } 304 { 305 PushButton { 306 name: "action_find_patient" //predefined action 307 showText: false 308 } 309 } 310 } 311 } 312 } 313 } 314 } 315 } 316 } 317 } 318 { 319 Label { 320 name: "picture" 321 borders { 322 frame_raised 323 } 324 rowSpan: 6 325 bounds { 326 x: "1" 327 y: "1" 328 } 329 iconScaling: item_size 330 icon: "lib:images/img123456789.png" 331 } 332 } 333 } 334 }[onLoad="if(sage.isMac()){window.addWindowDragger(widget.collapsiblePane.titleLabelComponent)}"] 335 336