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