demos\medical\documents\reader.sdf
  1 GridPane {
  2   borders: "shadow"
  3   rows: "3"
  4   contentPadding { top: "3"; left: "3"; bottom: "3"; right: "3" }
  5   regions {
  6     {
  7       verticalFill: "preferred"
  8       viewer {
  9         Form {
 10           columns: "3"
 11           layout: "table"
 12           widgets {
 13             {
 14               Label {
 15                 name: "noteDetail"
 16                 bounds { x: "0"; y: "0" }
 17                 textHAlignment: "center"
 18                 horizontalAlign: "full"
 19                 font-style: "bold"
 20                 fgColor: "blue+10"
 21                 value: "NOTE DETAIL"
 22               }
 23             }
 24             {
 25               PushButton {
 26                 name: "makeAddendum"
 27                 bounds { x: "1"; y: "0" }
 28                 fgColor: "blue"
 29                 value: "Make Addendum"
 30                 buttonStyle: "hyperlink_always_underline"
 31               }
 32             }
 33             {
 34               PushButton {
 35                 name: "editNote"
 36                 bounds { x: "2"; y: "0" }
 37                 fgColor: "blue"
 38                 value: "Edit"
 39                 buttonStyle: "hyperlink_always_underline"
 40               }
 41             }
 42           }
 43         }
 44       }
 45     }
 46     {
 47       verticalFill: "preferred"
 48       viewer {
 49         Form {
 50           columns: "4"
 51           layout: "table"
 52           widgets {
 53             {
 54               Label {
 55                 bounds { x: "0"; y: "0" }
 56                 name: "visitField"
 57                 columnSpan: "4"
 58                 textHAlignment: "left"
 59                 horizontalAlign: "full"
 60                 value: "<html><b>Visit: {$dateTime('T-1')} ADVANCE DIRECTIVE</b> 20 MINUTE, Don DeCoteau ( {$dateTime('T-1')} )</html>"
 61               }
 62             }
 63             {
 64               PushButton {
 65                 bounds { x: "0"; y: "1" }
 66                 fgColor: "blue"
 67                 name: "showAddendums"
 68                 enabled: "false"
 69                 value: "Addendums (0)"
 70                 buttonStyle: "hyperlink_always_underline"
 71                 actionType: "popup_widget"
 72                 popupWidget {
 73                   ListBox { borders: "none" }
 74                 }
 75               }
 76             }
 77             {
 78               PushButton {
 79                 bounds { x: "1"; y: "1" }
 80                 fgColor: "blue"
 81                 name: "showAttachments"
 82                 value: "Attachments (3)"
 83                 buttonStyle: "hyperlink_always_underline"
 84                 actionType: "popup_widget"
 85                 popupWidget {
 86                   Table {
 87                     name: "notes_tabTableAttachments"
 88                     borders: "none"
 89                     truncateLastColumnBorder: "false"
 90                     bounds { height: "7ln" }
 91                     gridLineType: "none"
 92                     bgColor: "defaultBackground+10|defaultBackground"
 93                     autoSizeColumnsToFit: true
 94                     actionLink {
 95                       url: "{$resolve(%selectionData[0])}"
 96                       target: "_new_window" [ title="{@patient.name} - {%selectionValue[2]} - {%selectionValue[1]}" ]
 97                       statusMessage: "Loading {%selectionValue[2]}..."
 98                     }
 99                     dataURL: "../data/documents_attachments.txt"
100                     selectionMode: "single"
101                     columns {
102                       {
103                         width: "20!"
104                         headerIcon: "resource:Sage.icon.paperclip"
105                       }
106                       {
107                         title: "Date"
108                         valueType: "date_time_type"
109                         valueContext: "MMM dd, yyyy HH:mm|MMM dd, yyyy"
110                       }
111                       {title: "Description" }
112                     }
113                   }
114                 }
115               }
116             }
117             {
118               PushButton {
119                 bounds { x: "2"; y: "1" }
120                 name: "showSignature"
121                 icon: "resource:icon_pen"
122                 buttonStyle: "toolbar"
123                 actionType: "popup_widget"
124                 popupWidget {
125                   Label {
126                     contentPadding { left: "4"; bottom: "2"; right: "4" }
127                     value: "<html><p>/es/ Don DeCoteau<p>PRIMARY HCP<p>Siged: {$dateTime('T-1')}</html>"
128                   }
129                 }
130               }
131             }
132             {
133               ToolBar {
134                 bounds { x: "3"; y: "1" }
135                 borders: "line" [ cornerArc="5" ]
136                 widgets {
137                   {
138                     PushButton {
139                       name: "Sage.action.text.bold"
140                       showText: "false"
141                     }
142                   }
143                   {
144                     PushButton {
145                       name: "Sage.action.text.italic"
146                       showText: "false"
147                     }
148                   }
149                   {
150                     PushButton {
151                       name: "Sage.action.text.underline"
152                       showText: "false"
153                     }
154                   }
155                   {
156                     PushButton {
157                       name: "Sage.action.text.strikeThrough"
158                       showText: "false"
159                     }
160                   }
161                   {
162                     Label {}
163                   }
164                   {
165                     PushButton {
166                       name: "Sage.action.text.alignLeft"
167                       showText: "false"
168                     }
169                   }
170                   {
171                     PushButton {
172                       name: "Sage.action.text.center"
173                       showText: "false"
174                     }
175                   }
176                   {
177                     PushButton {
178                       name: "Sage.action.text.alignRight"
179                       showText: "false"
180                     }
181                   }
182                   {
183                     Label {}
184                   }
185                   {
186                     PushButton {
187                       name: "Sage.action.text.increaseIndent"
188                       showText: "false"
189                     }
190                   }
191                   {
192                     PushButton {
193                       name: "Sage.action.text.decreaseIndent"
194                       showText: "false"
195                     }
196                   }
197                   {
198                     Label {}
199                   }
200                 }
201               }
202             }
203           }
204         }
205       }
206     }
207     {
208       verticalFill: "maximum"
209       viewer {
210         GridPane {
211           borders: "shadow"
212           rows: "2"
213           contentPadding { top: "3"; left: "3"; bottom: "3"; right: "3" }
214           scrollPane {
215             horizontalScrollbar :hidden
216           }
217           regions {
218             {
219               viewer {
220                 Form {
221                   name: "documentReader"
222                   rows: "4"
223                   contentPadding { top: "5"; left: "5"; bottom: "5"; right: "5" }
224                   layout: "table"
225                   borders: "none"
226                   widgets {
227                     {
228                       DocumentPane {
229                         name: "noteField"
230                         borders {
231                           "shadow" [ thickness="7" ]
232                           "focus"
233                         }
234                         cursorShown: "always"
235                         verticalAlign: "full"
236                         horizontalAlign: "full"
237                         editable: "true"
238                         bounds { x: "0"; y: "0"; height: "8ln" }
239                         styleActions: "true"
240                         dataURL: "../data/documents_note.html"
241                       }
242                     }
243                     {
244                       GroupBox {
245                         rows: "4"
246                         columns: "2"
247                         widgets {
248                           {
249                             ComboBox {
250                               name: "title"
251                               bounds { x: "2"; y: "0" }
252                               title: "Title"
253                               selectedIndex: "0"
254                               dataURL:<< 
255                               PRIMARY CARE
256                               EMERGENCY ROOM
257                             >> [ inline="true" ]
258                             }
259                           }
260                           {
261                             TextField {
262                               name: "author"
263                               title: "&Author"
264                               bounds { x: "2"; y: "1" }
265                               borders { line_3d [cornerArc=6 ,padForArc=false] }
266                               value: "DeCoteau, Don"
267                             }
268                           }
269                           {
270                             DateChooser {
271                               name: "noteDate"
272                               format: "MMM dd, yyyy"
273                               title: "&Note Date"
274                               bounds { x: "2"; y: "2";}
275                             }
276                           }
277                           {
278                             TextField {
279                               title: "&Subject"
280                               bounds { x: "2"; y: "3"}
281                               borders { line_3d [cornerArc=6 ,padForArc=false] }
282                               emptyFieldText: "<enter subject text>"
283                               emptyFieldTextFont { style: "italic" }
284                               emptyFieldTextColor: "gray"
285                               visibleCharacters: 15
286                             }
287                           }
288                         }
289                         bounds { x: "0"; y: "1" }
290                         contentPadding { top: "5"; bottom: "5" }
291                         borders: "none"
292                       }
293                     }
294                     {
295                       TextArea {
296                         bounds { height: "10ln" }
297                         name: "orderField"
298                         borders {
299                           "line" [ color="gray", cornerArc="10", thickness="2" ]
300                           "focus" [ cornerArc="10" ]
301                         }
302                         horizontalAlign: "full"
303                         editable: "false"
304                         wordWrap: "false"
305                         bounds { x: "0"; y: "2" }
306                         font { style: "bold"; monospaced: "true" }
307                         value:<<
308 FUROSIMIDE 20MG TAB
309 20MG PO BID
310 
311 Activity:
312 New Order  entered
313 
314      Order Text: FUROSIMIDE 20MG TAB PO BID
315 Nature of Order: ELECTRONICALLY ENTERED
316  Elec Signature: DeCoteau, Don>>
317                       }
318                     }
319                   }
320                 }
321               }
322             }
323             {
324               verticalFill: "preferred"
325               collapsibleInfo {
326                 title: "ENCOUNTER"
327                 initiallyCollapsed: "true"
328                 opaqueTitleBar: "false"
329               }
330               bgColor: "defaultBackground+10|defaultBackground"
331               borders: "line" [ cornerArc="6" ]
332               viewer {
333                 Form {
334                   rows: "4"
335                   columns: "2"
336                   contentPadding-left: "10"
337                   borders: "focus"
338                   widgets {
339                     {
340                       Label {
341                         value: "Diagnoses:"
342                         bounds { x: "0"; y: "0"; width: "13ch" }
343                         textHAlignment: "right"
344                         fgColor: "gray"
345                       }
346                     }
347                     {
348                       Label {
349                         name: "diagnoses"
350                         value: "DMMI WO CMP NT ST UNCNTR"
351                         bounds { x: "1"; y: "0" }
352                         textHAlignment: "left"
353                       }
354                     }
355                     {
356                       Label {
357                         value: "Procedures:"
358                         bounds { x: "0"; y: "1"; width: "13ch" }
359                         textHAlignment: "right"
360                         fgColor: "gray"
361                       }
362                     }
363                     {
364                       Label {
365                         name: "procedures"
366                         value: "OFFICE OUTPATIENT VISTS, EST"
367                         bounds { x: "1"; y: "1" }
368                         textHAlignment: "left"
369                       }
370                     }
371                     {
372                       Line {
373                         bounds { x: "0"; y: "2" }
374                         columnSpan: "2"
375                       }
376                     }
377                     {
378                       Table {
379                         bounds { x: "0"; y: "3"; height: "8ln" }
380                         name: "vitalsTable"
381                         dataURL: "../data/documents_vitals.txt"
382                         columnSpan: "2"
383                         gridLineType: "none"
384                         bgColor: "transparent"
385                         borders: "none"
386                         showStandardColumnHeader: "false"
387                         selectionMode: "none"
388                         columns {
389                           {title: "Type" }
390                           {title: "Result" }
391                           {
392                             title: "Date/Time"
393                             valueType: "date_time_type"
394                             valueContext: "MMM dd, yyyy HH:mm"
395                             width: "18ch"
396                           }
397                           {title: "Metric" }
398                         }
399                       }
400                     }
401                   }
402                 }
403               }
404             }
405           }
406         }
407       }
408     }
409   }
410 }
411 
412 
413 
414