source: ccr/trunk/p/C0CE0_1_0_0_T1.KID@ 765

Last change on this file since 765 was 719, checked in by George Lilly, 15 years ago

First try and the CCR EWD demo distribution

File size: 95.9 KB
RevLine 
[719]1KIDS Distribution saved on Mar 01, 2010@16:27:59
2First try at the demo CCR EWD application distro
3**KIDS**:C0CE0*1.0*0^
4
5**INSTALL NAME**
6C0CE0*1.0*0
7"BLD",6968,0)
8C0CE0*1.0*0^^0^3100301^n
9"BLD",6968,4,0)
10^9.64PA^70050^1
11"BLD",6968,4,70050,0)
1270050
13"BLD",6968,4,70050,222)
14y^y^f^^n^^y^o^n
15"BLD",6968,4,"B",70050,70050)
16
17"BLD",6968,6.3)
181
19"BLD",6968,"KRN",0)
20^9.67PA^8989.52^19
21"BLD",6968,"KRN",.4,0)
22.4
23"BLD",6968,"KRN",.401,0)
24.401
25"BLD",6968,"KRN",.402,0)
26.402
27"BLD",6968,"KRN",.403,0)
28.403
29"BLD",6968,"KRN",.5,0)
30.5
31"BLD",6968,"KRN",.84,0)
32.84
33"BLD",6968,"KRN",3.6,0)
343.6
35"BLD",6968,"KRN",3.8,0)
363.8
37"BLD",6968,"KRN",9.2,0)
389.2
39"BLD",6968,"KRN",9.8,0)
409.8
41"BLD",6968,"KRN",9.8,"NM",0)
42^9.68A^12^12
43"BLD",6968,"KRN",9.8,"NM",1,0)
44C0CEX^^0^B651037
45"BLD",6968,"KRN",9.8,"NM",2,0)
46C0CE001I^^0^B97883042
47"BLD",6968,"KRN",9.8,"NM",3,0)
48C0CE000A^^0^B14831539
49"BLD",6968,"KRN",9.8,"NM",4,0)
50C0CE000F^^0^B32715806
51"BLD",6968,"KRN",9.8,"NM",5,0)
52C0CE002^^0^B19028117
53"BLD",6968,"KRN",9.8,"NM",6,0)
54C0CE004^^0^B14049311
55"BLD",6968,"KRN",9.8,"NM",7,0)
56C0CE006^^0^B77594981
57"BLD",6968,"KRN",9.8,"NM",8,0)
58C0CE000E^^0^B27501668
59"BLD",6968,"KRN",9.8,"NM",9,0)
60C0CE000R^^0^B66701996
61"BLD",6968,"KRN",9.8,"NM",10,0)
62C0CE001L^^0^B51144421
63"BLD",6968,"KRN",9.8,"NM",11,0)
64C0CE003^^0^B16186512
65"BLD",6968,"KRN",9.8,"NM",12,0)
66C0CE005^^0^B80810317
67"BLD",6968,"KRN",9.8,"NM","B","C0CE000A",3)
68
69"BLD",6968,"KRN",9.8,"NM","B","C0CE000E",8)
70
71"BLD",6968,"KRN",9.8,"NM","B","C0CE000F",4)
72
73"BLD",6968,"KRN",9.8,"NM","B","C0CE000R",9)
74
75"BLD",6968,"KRN",9.8,"NM","B","C0CE001I",2)
76
77"BLD",6968,"KRN",9.8,"NM","B","C0CE001L",10)
78
79"BLD",6968,"KRN",9.8,"NM","B","C0CE002",5)
80
81"BLD",6968,"KRN",9.8,"NM","B","C0CE003",11)
82
83"BLD",6968,"KRN",9.8,"NM","B","C0CE004",6)
84
85"BLD",6968,"KRN",9.8,"NM","B","C0CE005",12)
86
87"BLD",6968,"KRN",9.8,"NM","B","C0CE006",7)
88
89"BLD",6968,"KRN",9.8,"NM","B","C0CEX",1)
90
91"BLD",6968,"KRN",19,0)
9219
93"BLD",6968,"KRN",19.1,0)
9419.1
95"BLD",6968,"KRN",101,0)
96101
97"BLD",6968,"KRN",409.61,0)
98409.61
99"BLD",6968,"KRN",771,0)
100771
101"BLD",6968,"KRN",870,0)
102870
103"BLD",6968,"KRN",8989.51,0)
1048989.51
105"BLD",6968,"KRN",8989.52,0)
1068989.52
107"BLD",6968,"KRN",8994,0)
1088994
109"BLD",6968,"KRN","B",.4,.4)
110
111"BLD",6968,"KRN","B",.401,.401)
112
113"BLD",6968,"KRN","B",.402,.402)
114
115"BLD",6968,"KRN","B",.403,.403)
116
117"BLD",6968,"KRN","B",.5,.5)
118
119"BLD",6968,"KRN","B",.84,.84)
120
121"BLD",6968,"KRN","B",3.6,3.6)
122
123"BLD",6968,"KRN","B",3.8,3.8)
124
125"BLD",6968,"KRN","B",9.2,9.2)
126
127"BLD",6968,"KRN","B",9.8,9.8)
128
129"BLD",6968,"KRN","B",19,19)
130
131"BLD",6968,"KRN","B",19.1,19.1)
132
133"BLD",6968,"KRN","B",101,101)
134
135"BLD",6968,"KRN","B",409.61,409.61)
136
137"BLD",6968,"KRN","B",771,771)
138
139"BLD",6968,"KRN","B",870,870)
140
141"BLD",6968,"KRN","B",8989.51,8989.51)
142
143"BLD",6968,"KRN","B",8989.52,8989.52)
144
145"BLD",6968,"KRN","B",8994,8994)
146
147"DATA",70050,1,0)
14823394^patientportal^ewdajaxerror
149"DATA",70050,2,0)
15023397^patientportal^ewderrorredirect
151"DATA",70050,3,0)
15223399^patientportal^index
153"DATA",70050,3,1,0)
154^70050.02^28^28^3100301^^
155"DATA",70050,3,1,1,0)
156<ewd:config isFirstPage="true" cachePage="false">
157"DATA",70050,3,1,2,0)
158 <html>
159"DATA",70050,3,1,3,0)
160 <head>
161"DATA",70050,3,1,4,0)
162 <title>The start EWD Page</title>
163"DATA",70050,3,1,5,0)
164 <script language="javascript">
165"DATA",70050,3,1,6,0)
166 function init()
167"DATA",70050,3,1,7,0)
168 {
169"DATA",70050,3,1,8,0)
170 ewd.ajaxRequest('loginPanel','LP');
171"DATA",70050,3,1,9,0)
172 }
173"DATA",70050,3,1,10,0)
174 </script>
175"DATA",70050,3,1,11,0)
176 </head>
177"DATA",70050,3,1,12,0)
178 <body onload="init()">
179"DATA",70050,3,1,13,0)
180 <h3>This page is the first page in this application</h3>
181"DATA",70050,3,1,14,0)
182 <div id="LP">Login</div>
183"DATA",70050,3,1,15,0)
184 <div>
185"DATA",70050,3,1,16,0)
186 <a href="session.ewd">Go to the second page</a>
187"DATA",70050,3,1,17,0)
188 </div>
189"DATA",70050,3,1,18,0)
190 <div>
191"DATA",70050,3,1,19,0)
192 <a href="ccr.ewd">Goto the CCR</a>
193"DATA",70050,3,1,20,0)
194 </div>
195"DATA",70050,3,1,21,0)
196<div>
197"DATA",70050,3,1,22,0)
198<a href="ccrexe.ewd">Goto CCR 2</a>
199"DATA",70050,3,1,23,0)
200</div>
201"DATA",70050,3,1,24,0)
202<div>
203"DATA",70050,3,1,25,0)
204<a href="ccr2.ewd">Goto Hello World</a>
205"DATA",70050,3,1,26,0)
206</div>
207"DATA",70050,3,1,27,0)
208 </body>
209"DATA",70050,3,1,28,0)
210 </html>
211"DATA",70050,4,0)
21223395^patientportal^ewderror
213"DATA",70050,5,0)
21423398^patientportal^session
215"DATA",70050,5,1,0)
216^70050.02^16^16^3100301^^
217"DATA",70050,5,1,1,0)
218 <ewd:config isFirstPage="false" prePageScript="TEST^RICHEWDTEST">
219"DATA",70050,5,1,2,0)
220 <html>
221"DATA",70050,5,1,3,0)
222 <head>
223"DATA",70050,5,1,4,0)
224 <title>EWD Page using Session Variables and a PrePage Script</title>
225"DATA",70050,5,1,5,0)
226 <script language="javascript">
227"DATA",70050,5,1,6,0)
228 eval('<?= #json ?>');
229"DATA",70050,5,1,7,0)
230 //ewd.getJSON(#json) ;
231"DATA",70050,5,1,8,0)
232 alert('hello ' + person.Address.Name) ;
233"DATA",70050,5,1,9,0)
234 </script>
235"DATA",70050,5,1,10,0)
236 </head>
237"DATA",70050,5,1,11,0)
238 <body>
239"DATA",70050,5,1,12,0)
240 <h3>This page accesses EWD Session Variables</h3>
241"DATA",70050,5,1,13,0)
242 <div>Name: <?= #person.Name ?> </div>
243"DATA",70050,5,1,14,0)
244 <div>Goto <a href="login.ewd">next page</a></div>
245"DATA",70050,5,1,15,0)
246 </body>
247"DATA",70050,5,1,16,0)
248 </html>
249"DATA",70050,6,0)
25023396^patientportal^ewdajaxerrorredirect
251"DATA",70050,7,0)
25223401^patientportal^ccr
253"DATA",70050,7,1,0)
254^70050.02^5^5^3100301^^^
255"DATA",70050,7,1,1,0)
256<ewd:config isFirstPage="false" prePageScript="TEST2^RICHEWDTEST">
257"DATA",70050,7,1,2,0)
258<ewd:responseHeader name="Content-type" value="text/xml">
259"DATA",70050,7,1,3,0)
260<ewd:foreach sessionName="CCR" index="$no" return="$data">
261"DATA",70050,7,1,4,0)
262<?= $data ?>
263"DATA",70050,7,1,5,0)
264</ewd:foreach>
265"DATA",70050,8,0)
26623402^patientportal^ccr2
267"DATA",70050,8,1,0)
268^70050.02^6^6^3100301^^^^
269"DATA",70050,8,1,1,0)
270<ewd:config isFirstPage="false">
271"DATA",70050,8,1,2,0)
272<html>
273"DATA",70050,8,1,3,0)
274<body>
275"DATA",70050,8,1,4,0)
276hello world
277"DATA",70050,8,1,5,0)
278</body>
279"DATA",70050,8,1,6,0)
280</html>
281"DATA",70050,9,0)
28223400^patientportal^loginpanel
283"DATA",70050,9,1,0)
284^70050.02^4^4^3100301^^
285"DATA",70050,9,1,1,0)
286<ewd:config isFirstPage="false" pageType="ajax">
287"DATA",70050,9,1,2,0)
288<yui:Dialog width="270px" x="150" y="100" headerText="Login">
289"DATA",70050,9,1,3,0)
290Login Form will go here
291"DATA",70050,9,1,4,0)
292</yui:Dialog>
293"DATA",70050,10,0)
29423403^patientportal^ccr-exe
295"DATA",70050,10,1,0)
296^^2^2^3100301^
297"DATA",70050,10,1,1,0)
298 <ewd:config isFirstPage="false">
299"DATA",70050,10,1,2,0)
300 <ewd:execute method="gpltest^RICHEWDTEST" param1="" type=procedure>
301"DATA",70050,11,0)
30223404^patientportal^Second
303"FIA",70050)
304C0EWD ROUTINE MAP
305"FIA",70050,0)
306^C0E(70050,
307"FIA",70050,0,0)
30870050PI
309"FIA",70050,0,1)
310y^y^f^^n^^y^o^n
311"FIA",70050,0,10)
312
313"FIA",70050,0,11)
314
315"FIA",70050,0,"RLRO")
316
317"FIA",70050,70050)
3180
319"FIA",70050,70050.01)
3200
321"FIA",70050,70050.02)
3220
323"IX",70050,70050,"AZEWD",0)
32470050^AZEWD^MAINTAINS THE ZEWD ROUTINE MAP GLOBAL^MU^^R^IR^I^70050^^^^^A
325"IX",70050,70050,"AZEWD",1)
326D SETZEWD^C0CEX(X(1),X(2),X(3)) Q
327"IX",70050,70050,"AZEWD",2)
328D KILLZEWD^C0CEX(X(1),X(2),X(3)) Q
329"IX",70050,70050,"AZEWD",11.1,0)
330^.114IA^3^3
331"IX",70050,70050,"AZEWD",11.1,1,0)
3321^F^70050^.01^^^F
333"IX",70050,70050,"AZEWD",11.1,2,0)
3342^F^70050^.02^^^F
335"IX",70050,70050,"AZEWD",11.1,3,0)
3363^F^70050^.03^^^F
337"IX",70050,70050,"C",0)
33870050^C^REGULAR CROSS REFERENCE OF THE PAGE NAME^R^^F^IR^I^70050^^^^^LS
339"IX",70050,70050,"C",1)
340S ^C0E(70050,"C",$E(X,1,60),DA)=""
341"IX",70050,70050,"C",2)
342K ^C0E(70050,"C",$E(X,1,60),DA)
343"IX",70050,70050,"C",2.5)
344K ^C0E(70050,"C")
345"IX",70050,70050,"C",11.1,0)
346^.114IA^1^1
347"IX",70050,70050,"C",11.1,1,0)
3481^F^70050^.03^60^1^F
349"IX",70050,70050,"C",11.1,1,3)
350
351"MBREQ")
3520
353"QUES","XPF1",0)
354Y
355"QUES","XPF1","??")
356^D REP^XPDH
357"QUES","XPF1","A")
358Shall I write over your |FLAG| File
359"QUES","XPF1","B")
360YES
361"QUES","XPF1","M")
362D XPF1^XPDIQ
363"QUES","XPF2",0)
364Y
365"QUES","XPF2","??")
366^D DTA^XPDH
367"QUES","XPF2","A")
368Want my data |FLAG| yours
369"QUES","XPF2","B")
370YES
371"QUES","XPF2","M")
372D XPF2^XPDIQ
373"QUES","XPI1",0)
374YO
375"QUES","XPI1","??")
376^D INHIBIT^XPDH
377"QUES","XPI1","A")
378Want KIDS to INHIBIT LOGONs during the install
379"QUES","XPI1","B")
380NO
381"QUES","XPI1","M")
382D XPI1^XPDIQ
383"QUES","XPM1",0)
384PO^VA(200,:EM
385"QUES","XPM1","??")
386^D MG^XPDH
387"QUES","XPM1","A")
388Enter the Coordinator for Mail Group '|FLAG|'
389"QUES","XPM1","B")
390
391"QUES","XPM1","M")
392D XPM1^XPDIQ
393"QUES","XPO1",0)
394Y
395"QUES","XPO1","??")
396^D MENU^XPDH
397"QUES","XPO1","A")
398Want KIDS to Rebuild Menu Trees Upon Completion of Install
399"QUES","XPO1","B")
400NO
401"QUES","XPO1","M")
402D XPO1^XPDIQ
403"QUES","XPZ1",0)
404Y
405"QUES","XPZ1","??")
406^D OPT^XPDH
407"QUES","XPZ1","A")
408Want to DISABLE Scheduled Options, Menu Options, and Protocols
409"QUES","XPZ1","B")
410NO
411"QUES","XPZ1","M")
412D XPZ1^XPDIQ
413"QUES","XPZ2",0)
414Y
415"QUES","XPZ2","??")
416^D RTN^XPDH
417"QUES","XPZ2","A")
418Want to MOVE routines to other CPUs
419"QUES","XPZ2","B")
420NO
421"QUES","XPZ2","M")
422D XPZ2^XPDIQ
423"RTN")
42412
425"RTN","C0CE000A")
4260^3^B14831539
427"RTN","C0CE000A",1,0)
428 ;GT.M version of page ewdAjaxError (patientportal application)
429"RTN","C0CE000A",2,0)
430 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
431"RTN","C0CE000A",3,0)
432 ;using Enterprise Web Developer (Build 790)
433"RTN","C0CE000A",4,0)
434 QUIT
435"RTN","C0CE000A",5,0)
436 ;
437"RTN","C0CE000A",6,0)
438run ;
439"RTN","C0CE000A",7,0)
440 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
441"RTN","C0CE000A",8,0)
442 s ok=$$pre()
443"RTN","C0CE000A",9,0)
444 i ok d body
445"RTN","C0CE000A",10,0)
446 QUIT
447"RTN","C0CE000A",11,0)
448 ;
449"RTN","C0CE000A",12,0)
450pre() ;
451"RTN","C0CE000A",13,0)
452 ;
453"RTN","C0CE000A",14,0)
454 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
455"RTN","C0CE000A",15,0)
456 ;
457"RTN","C0CE000A",16,0)
458 s confirmText="Click OK if you're sure you want to delete this record"
459"RTN","C0CE000A",17,0)
460 s sessionArray("ewd_isFirstPage")="1"
461"RTN","C0CE000A",18,0)
462 s sessionArray("ewd_sessid_timeout")="1200"
463"RTN","C0CE000A",19,0)
464 s sessionArray("ewd_prePageScript")=""
465"RTN","C0CE000A",20,0)
466 s sessionArray("ewd_default_timeout")="1200"
467"RTN","C0CE000A",21,0)
468 s sessionArray("ewd_persistRequest")="true"
469"RTN","C0CE000A",22,0)
470 s sessionArray("ewd_pageTitle")=""
471"RTN","C0CE000A",23,0)
472 s sessionArray("ewd_errorPage")="ewdError"
473"RTN","C0CE000A",24,0)
474 s sessionArray("ewd_templatePrePageScript")=""
475"RTN","C0CE000A",25,0)
476 s sessionArray("ewd_onErrorScript")=""
477"RTN","C0CE000A",26,0)
478 s sessionArray("ewd_appName")="patientportal"
479"RTN","C0CE000A",27,0)
480 s sessionArray("ewd_pageName")="ewdAjaxError"
481"RTN","C0CE000A",28,0)
482 s sessionArray("ewd_translationMode")="0"
483"RTN","C0CE000A",29,0)
484 s sessionArray("ewd_technology")="gtm"
485"RTN","C0CE000A",30,0)
486 s sessionArray("ewd_pageType")=""
487"RTN","C0CE000A",31,0)
488 s Error=$$startSession^%zewdPHP("ewdAjaxError",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
489"RTN","C0CE000A",32,0)
490 s sessid=$g(sessionArray("ewd_sessid"))
491"RTN","C0CE000A",33,0)
492 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
493"RTN","C0CE000A",34,0)
494 . s Error=$p(Error,":",2,200)
495"RTN","C0CE000A",35,0)
496 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
497"RTN","C0CE000A",36,0)
498 . s Error="EWD runtime error: "_Error
499"RTN","C0CE000A",37,0)
500 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
501"RTN","C0CE000A",38,0)
502 . n errorPage
503"RTN","C0CE000A",39,0)
504 . s errorPage=$g(sessionArray("ewd_errorPage"))
505"RTN","C0CE000A",40,0)
506 . i errorPage="" s errorPage="ewdError"
507"RTN","C0CE000A",41,0)
508 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
509"RTN","C0CE000A",42,0)
510 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
511"RTN","C0CE000A",43,0)
512 s stop=0
513"RTN","C0CE000A",44,0)
514 i Error="" d i stop QUIT 0
515"RTN","C0CE000A",45,0)
516 . n nextpage
517"RTN","C0CE000A",46,0)
518 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
519"RTN","C0CE000A",47,0)
520 . i nextpage'="" d
521"RTN","C0CE000A",48,0)
522 . . n x
523"RTN","C0CE000A",49,0)
524 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
525"RTN","C0CE000A",50,0)
526 . . s stop=1
527"RTN","C0CE000A",51,0)
528 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
529"RTN","C0CE000A",52,0)
530 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
531"RTN","C0CE000A",53,0)
532 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
533"RTN","C0CE000A",54,0)
534 w "HTTP/1.1 200 OK"_$c(13,10)
535"RTN","C0CE000A",55,0)
536 s ctype="text/html"
537"RTN","C0CE000A",56,0)
538 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
539"RTN","C0CE000A",57,0)
540 i $d(headers) d
541"RTN","C0CE000A",58,0)
542 . n lcname,name
543"RTN","C0CE000A",59,0)
544 . s name=""
545"RTN","C0CE000A",60,0)
546 . f s name=$o(headers(name)) q:name="" d
547"RTN","C0CE000A",61,0)
548 . . s lcname=$$zcvt^%zewdAPI(name,"l")
549"RTN","C0CE000A",62,0)
550 . . i lcname="content-type" s ctype=headers(name) q
551"RTN","C0CE000A",63,0)
552 . . w name_": "_headers(name)_$c(13,10)
553"RTN","C0CE000A",64,0)
554 w "Content-type: "_ctype_$c(13,10)
555"RTN","C0CE000A",65,0)
556 w $c(13,10)
557"RTN","C0CE000A",66,0)
558 QUIT 1
559"RTN","C0CE000A",67,0)
560 ;
561"RTN","C0CE000A",68,0)
562body ;
563"RTN","C0CE000A",69,0)
564 w "<ewdajaxerror>"_$c(13,10)
565"RTN","C0CE000A",70,0)
566 w $$getSessionValue^%zewdAPI("ewd_ajaxError",sessid)
567"RTN","C0CE000A",71,0)
568 w "</ewdajaxerror>"_$c(13,10)
569"RTN","C0CE000A",72,0)
570 QUIT
571"RTN","C0CE000E")
5720^8^B27501668
573"RTN","C0CE000E",1,0)
574 ;GT.M version of page ewdError (patientportal application)
575"RTN","C0CE000E",2,0)
576 ;Compiled on Sun, 28 Feb 2010 21:40:03;;;;;Build 1
577"RTN","C0CE000E",3,0)
578 ;using Enterprise Web Developer (Build 790)
579"RTN","C0CE000E",4,0)
580 QUIT
581"RTN","C0CE000E",5,0)
582 ;
583"RTN","C0CE000E",6,0)
584run ;
585"RTN","C0CE000E",7,0)
586 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
587"RTN","C0CE000E",8,0)
588 s ok=$$pre()
589"RTN","C0CE000E",9,0)
590 i ok d body
591"RTN","C0CE000E",10,0)
592 QUIT
593"RTN","C0CE000E",11,0)
594 ;
595"RTN","C0CE000E",12,0)
596pre() ;
597"RTN","C0CE000E",13,0)
598 ;
599"RTN","C0CE000E",14,0)
600 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
601"RTN","C0CE000E",15,0)
602 ;
603"RTN","C0CE000E",16,0)
604 w "HTTP/1.1 200 OK"_$c(13,10)
605"RTN","C0CE000E",17,0)
606 w "Content-type: text/html"_$c(13,10,13,10)
607"RTN","C0CE000E",18,0)
608 QUIT 1
609"RTN","C0CE000E",19,0)
610 ;
611"RTN","C0CE000E",20,0)
612body ;
613"RTN","C0CE000E",21,0)
614 w ""_$c(13,10)
615"RTN","C0CE000E",22,0)
616 w "<html>"_$c(13,10)
617"RTN","C0CE000E",23,0)
618 w "<head>"_$c(13,10)
619"RTN","C0CE000E",24,0)
620 w "<title>Enterprise Web Developer : A run-time error has occurred</title>"_$c(13,10)
621"RTN","C0CE000E",25,0)
622 w "<style type=""text/css"">"_$c(13,10)
623"RTN","C0CE000E",26,0)
624 w " body {background: #ffffff ;}"_$c(13,10)
625"RTN","C0CE000E",27,0)
626 w " .headerBlock {width: 100% ; background : #111111 ; horizontal-align : center ; }"_$c(13,10)
627"RTN","C0CE000E",28,0)
628 w " .headerBlock[class] {width: 100% ; background : #111111 ; horizontal-align : center ; position: relative ; top : 30px ; border-right-style : solid ; border-right-width: 2px ; }"_$c(13,10)
629"RTN","C0CE000E",29,0)
630 w " #headerText {vertical-align: center ; font-family: Arial, sans-serif ; color: #dddddd ; font-size: 11pt ; margin-left: 10px}"_$c(13,10)
631"RTN","C0CE000E",30,0)
632 w " #headerSubject {vertical-align: center ; font-family: Arial, sans-serif ; color: #dddddd ; font-size: 11pt ; position: relative ; top: -30px ; text-align: center ;}"_$c(13,10)
633"RTN","C0CE000E",31,0)
634 w " .selectedTab {border-style: outset ; background: #eeeedd ; padding-left: 8px ; padding-right: 8px ;}"_$c(13,10)
635"RTN","C0CE000E",32,0)
636 w " .unselectedTab {border-style: groove ; padding-left: 8px ; padding-right: 8px ;}"_$c(13,10)
637"RTN","C0CE000E",33,0)
638 w " #tabs {cursor : pointer ; height: 20px ; background : #cccccc ; text-align: center ; position: relative ; left: 25px ; font-family : Arial, Helvetica, sens-serif ; font-size: 11pt}"_$c(13,10)
639"RTN","C0CE000E",34,0)
640 w " #mainArea {background : #dfe2f1 ; padding: 0 ; horizontal-align: center ; width : 100% ; height: auto ; border-style: solid ; border-left-width: 1px ; border-right-width: 1px ; padding-top : 0px ; margin-top : 0px}"_$c(13,10)
641"RTN","C0CE000E",35,0)
642 w " #workArea {background : #ffffff ; horizontal-align: center ; position: relative ; top: -6px ; left: 25px ; width : 95% ; height: auto ; font-family : Arial, Helvetica, sens-serif ; font-size: 12pt ; border-style: outset}"_$c(13,10)
643"RTN","C0CE000E",36,0)
644 w " #pageTitle {width: 100% ; height: 50px ; text-align : center ; horizontal-align : center ; font-family: Arial, sans-serif ;}"_$c(13,10)
645"RTN","C0CE000E",37,0)
646 w " .footerBlock {width: 100% ; background : #111111 ; horizontal-align : center ;}"_$c(13,10)
647"RTN","C0CE000E",38,0)
648 w " .footerBlock[class] {width: 100% ; background : #111111 ; horizontal-align : center ; position: relative ; top : -15px ; border-right-style : solid ; border-right-width: 2px ; }"_$c(13,10)
649"RTN","C0CE000E",39,0)
650 w " #footerText {vertical-align: center ; font-family: Arial, sans-serif ; color: #dddddd ; font-size: 8pt ; margin-left : 10px}"_$c(13,10)
651"RTN","C0CE000E",40,0)
652 w " #tableblock {text-align: center ; margin-top: 40px}"_$c(13,10)
653"RTN","C0CE000E",41,0)
654 w " #hiddenForm {visibility: hidden ;}"_$c(13,10)
655"RTN","C0CE000E",42,0)
656 w "</style>"_$c(13,10)
657"RTN","C0CE000E",43,0)
658 w "</head>"_$c(13,10)
659"RTN","C0CE000E",44,0)
660 w "<body>"_$c(13,10)
661"RTN","C0CE000E",45,0)
662 w ""_$c(13,10)
663"RTN","C0CE000E",46,0)
664 w " <div id=""mainArea"">"_$c(13,10)
665"RTN","C0CE000E",47,0)
666 w " <div id=""pageTitle"">"_$c(13,10)
667"RTN","C0CE000E",48,0)
668 w " <h1>Enterprise Web Developer (Build 790)</h1>"_$c(13,10)
669"RTN","C0CE000E",49,0)
670 w " </div>"_$c(13,10)
671"RTN","C0CE000E",50,0)
672 w ""_$c(13,10)
673"RTN","C0CE000E",51,0)
674 w " <div id=""workArea"">"_$c(13,10)
675"RTN","C0CE000E",52,0)
676 w " <div id=""tableblock"">"_$c(13,10)
677"RTN","C0CE000E",53,0)
678 w " <h3>An Error has occurred</h3>"_$c(13,10)
679"RTN","C0CE000E",54,0)
680 w " <br>"_$c(13,10)
681"RTN","C0CE000E",55,0)
682 w " <h3>"_$g(%KEY("error"))_"</h3>"_$c(13,10)
683"RTN","C0CE000E",56,0)
684 w " </div>"_$c(13,10)
685"RTN","C0CE000E",57,0)
686 w " </div>"_$c(13,10)
687"RTN","C0CE000E",58,0)
688 w " </div>"_$c(13,10)
689"RTN","C0CE000E",59,0)
690 w ""_$c(13,10)
691"RTN","C0CE000E",60,0)
692 w " <div class=footerBlock>"_$c(13,10)
693"RTN","C0CE000E",61,0)
694 w " <p id=""footerText"">&nbsp;&copy; 2004-2009 M/Gateway Developments Ltd All Rights Reserved</p>"_$c(13,10)
695"RTN","C0CE000E",62,0)
696 w " </div>"_$c(13,10)
697"RTN","C0CE000E",63,0)
698 w "</body>"_$c(13,10)
699"RTN","C0CE000E",64,0)
700 w "</html>"_$c(13,10)
701"RTN","C0CE000E",65,0)
702 QUIT
703"RTN","C0CE000F")
7040^4^B32715806
705"RTN","C0CE000F",1,0)
706 ;GT.M version of page ewdAjaxErrorRedirect (patientportal application)
707"RTN","C0CE000F",2,0)
708 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
709"RTN","C0CE000F",3,0)
710 ;using Enterprise Web Developer (Build 790)
711"RTN","C0CE000F",4,0)
712 QUIT
713"RTN","C0CE000F",5,0)
714 ;
715"RTN","C0CE000F",6,0)
716run ;
717"RTN","C0CE000F",7,0)
718 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
719"RTN","C0CE000F",8,0)
720 s ok=$$pre()
721"RTN","C0CE000F",9,0)
722 i ok d body
723"RTN","C0CE000F",10,0)
724 QUIT
725"RTN","C0CE000F",11,0)
726 ;
727"RTN","C0CE000F",12,0)
728pre() ;
729"RTN","C0CE000F",13,0)
730 ;
731"RTN","C0CE000F",14,0)
732 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
733"RTN","C0CE000F",15,0)
734 ;
735"RTN","C0CE000F",16,0)
736 s confirmText="Click OK if you're sure you want to delete this record"
737"RTN","C0CE000F",17,0)
738 s sessionArray("ewd_isFirstPage")="0"
739"RTN","C0CE000F",18,0)
740 s sessionArray("ewd_sessid_timeout")="1200"
741"RTN","C0CE000F",19,0)
742 s sessionArray("ewd_prePageScript")=""
743"RTN","C0CE000F",20,0)
744 s sessionArray("ewd_default_timeout")="1200"
745"RTN","C0CE000F",21,0)
746 s sessionArray("ewd_persistRequest")="true"
747"RTN","C0CE000F",22,0)
748 s sessionArray("ewd_pageTitle")=""
749"RTN","C0CE000F",23,0)
750 s sessionArray("ewd_errorPage")="ewdError"
751"RTN","C0CE000F",24,0)
752 s sessionArray("ewd_templatePrePageScript")=""
753"RTN","C0CE000F",25,0)
754 s sessionArray("ewd_onErrorScript")=""
755"RTN","C0CE000F",26,0)
756 s sessionArray("ewd_appName")="patientportal"
757"RTN","C0CE000F",27,0)
758 s sessionArray("ewd_pageName")="ewdAjaxErrorRedirect"
759"RTN","C0CE000F",28,0)
760 s sessionArray("ewd_translationMode")="0"
761"RTN","C0CE000F",29,0)
762 s sessionArray("ewd_technology")="gtm"
763"RTN","C0CE000F",30,0)
764 s sessionArray("ewd_pageType")="ajax"
765"RTN","C0CE000F",31,0)
766 s tokens("ewdAjaxError")=$$setNextPageToken^%zewdGTMRuntime("ewdAjaxError")
767"RTN","C0CE000F",32,0)
768 s tokens("ewdErrorRedirect")=$$setNextPageToken^%zewdGTMRuntime("ewdErrorRedirect")
769"RTN","C0CE000F",33,0)
770 s Error=$$startSession^%zewdPHP("ewdAjaxErrorRedirect",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
771"RTN","C0CE000F",34,0)
772 s sessid=$g(sessionArray("ewd_sessid"))
773"RTN","C0CE000F",35,0)
774 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
775"RTN","C0CE000F",36,0)
776 . s Error=$p(Error,":",2,200)
777"RTN","C0CE000F",37,0)
778 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
779"RTN","C0CE000F",38,0)
780 . s Error="EWD runtime error: "_Error
781"RTN","C0CE000F",39,0)
782 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
783"RTN","C0CE000F",40,0)
784 . n errorPage
785"RTN","C0CE000F",41,0)
786 . s errorPage=$g(sessionArray("ewd_errorPage"))
787"RTN","C0CE000F",42,0)
788 . i errorPage="" s errorPage="ewdError"
789"RTN","C0CE000F",43,0)
790 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
791"RTN","C0CE000F",44,0)
792 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
793"RTN","C0CE000F",45,0)
794 s stop=0
795"RTN","C0CE000F",46,0)
796 i Error="" d i stop QUIT 0
797"RTN","C0CE000F",47,0)
798 . n nextpage
799"RTN","C0CE000F",48,0)
800 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
801"RTN","C0CE000F",49,0)
802 . i nextpage'="" d
803"RTN","C0CE000F",50,0)
804 . . n x
805"RTN","C0CE000F",51,0)
806 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
807"RTN","C0CE000F",52,0)
808 . . s stop=1
809"RTN","C0CE000F",53,0)
810 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
811"RTN","C0CE000F",54,0)
812 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
813"RTN","C0CE000F",55,0)
814 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
815"RTN","C0CE000F",56,0)
816 w "HTTP/1.1 200 OK"_$c(13,10)
817"RTN","C0CE000F",57,0)
818 s ctype="text/html"
819"RTN","C0CE000F",58,0)
820 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
821"RTN","C0CE000F",59,0)
822 i $d(headers) d
823"RTN","C0CE000F",60,0)
824 . n lcname,name
825"RTN","C0CE000F",61,0)
826 . s name=""
827"RTN","C0CE000F",62,0)
828 . f s name=$o(headers(name)) q:name="" d
829"RTN","C0CE000F",63,0)
830 . . s lcname=$$zcvt^%zewdAPI(name,"l")
831"RTN","C0CE000F",64,0)
832 . . i lcname="content-type" s ctype=headers(name) q
833"RTN","C0CE000F",65,0)
834 . . w name_": "_headers(name)_$c(13,10)
835"RTN","C0CE000F",66,0)
836 w "Content-type: "_ctype_$c(13,10)
837"RTN","C0CE000F",67,0)
838 w $c(13,10)
839"RTN","C0CE000F",68,0)
840 QUIT 1
841"RTN","C0CE000F",69,0)
842 ;
843"RTN","C0CE000F",70,0)
844body ;
845"RTN","C0CE000F",71,0)
846 if ($g(Error)="") d
847"RTN","C0CE000F",72,0)
848 .w " <span>"_$c(13,10)
849"RTN","C0CE000F",73,0)
850 .w " <div href='/ewd/patientportal/ewdErrorRedirect.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("ewdErrorRedirect")_"&ewd_urlNo=ewdAjaxErrorRedirect1' id=""zewdRef"">"_$c(13,10)
851"RTN","C0CE000F",74,0)
852 .w "</div>"_$c(13,10)
853"RTN","C0CE000F",75,0)
854 .w " </span>"_$c(13,10)
855"RTN","C0CE000F",76,0)
856 .
857"RTN","C0CE000F",77,0)
858 w "<span id=""ewdajaxonload"">"_$c(13,10)
859"RTN","C0CE000F",78,0)
860 w " var ewdtext='"_$$jsEscape^%zewdGTMRuntime(Error)_"' ; if (ewdtext != '') { if (ewdtext.substring(0,11) == 'javascript:') { ewdtext=ewdtext.substring(11) ; eval(ewdtext) ; } else { EWD.ajax.alert('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"') }"_$c(13,10)
861"RTN","C0CE000F",79,0)
862 s id=""
863"RTN","C0CE000F",80,0)
864 f s id=$o(^%zewdSession("session","ewd_idList",id)) q:id="" d
865"RTN","C0CE000F",81,0)
866 . w "idPointer = document.getElementById('"_id_"') ; "
867"RTN","C0CE000F",82,0)
868 . w "if (idPointer != null) idPointer.className='"_$g(^%zewdSession("session","ewd_idList"))_"' ; "
869"RTN","C0CE000F",83,0)
870 s id=""
871"RTN","C0CE000F",84,0)
872 f s id=$o(^%zewdSession("session","ewd_errorFields",id)) q:id="" d
873"RTN","C0CE000F",85,0)
874 . w "idPointer = document.getElementById('"_id_"') ; "
875"RTN","C0CE000F",86,0)
876 . w "if (idPointer != null) idPointer.className='"_$g(^%zewdSession("session","ewd_errorClass"))_"' ; "
877"RTN","C0CE000F",87,0)
878 k ^%zewdSession("session","ewd_hasErrors")
879"RTN","C0CE000F",88,0)
880 k ^%zewdSession("session","ewd_errorFields")
881"RTN","C0CE000F",89,0)
882 k ^%zewdSession("session","ewd_idList")
883"RTN","C0CE000F",90,0)
884 w " } else {document.location = document.getElementById(""zewdRef"").getAttribute(""href"") ; }"_""
885"RTN","C0CE000F",91,0)
886 w "</span>"_$c(13,10)
887"RTN","C0CE000F",92,0)
888 QUIT
889"RTN","C0CE000R")
8900^9^B66701996
891"RTN","C0CE000R",1,0)
892 ;GT.M version of page ewdErrorRedirect (patientportal application)
893"RTN","C0CE000R",2,0)
894 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
895"RTN","C0CE000R",3,0)
896 ;using Enterprise Web Developer (Build 790)
897"RTN","C0CE000R",4,0)
898 QUIT
899"RTN","C0CE000R",5,0)
900 ;
901"RTN","C0CE000R",6,0)
902run ;
903"RTN","C0CE000R",7,0)
904 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
905"RTN","C0CE000R",8,0)
906 s ok=$$pre()
907"RTN","C0CE000R",9,0)
908 i ok d body
909"RTN","C0CE000R",10,0)
910 QUIT
911"RTN","C0CE000R",11,0)
912 ;
913"RTN","C0CE000R",12,0)
914pre() ;
915"RTN","C0CE000R",13,0)
916 ;
917"RTN","C0CE000R",14,0)
918 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
919"RTN","C0CE000R",15,0)
920 ;
921"RTN","C0CE000R",16,0)
922 s confirmText="Click OK if you're sure you want to delete this record"
923"RTN","C0CE000R",17,0)
924 s sessionArray("ewd_isFirstPage")="0"
925"RTN","C0CE000R",18,0)
926 s sessionArray("ewd_sessid_timeout")="1200"
927"RTN","C0CE000R",19,0)
928 s sessionArray("ewd_prePageScript")="ajaxErrorRedirect^%zewdAPI"
929"RTN","C0CE000R",20,0)
930 s sessionArray("ewd_default_timeout")="1200"
931"RTN","C0CE000R",21,0)
932 s sessionArray("ewd_persistRequest")="true"
933"RTN","C0CE000R",22,0)
934 s sessionArray("ewd_pageTitle")=""
935"RTN","C0CE000R",23,0)
936 s sessionArray("ewd_errorPage")="ewdError"
937"RTN","C0CE000R",24,0)
938 s sessionArray("ewd_templatePrePageScript")=""
939"RTN","C0CE000R",25,0)
940 s sessionArray("ewd_onErrorScript")=""
941"RTN","C0CE000R",26,0)
942 s sessionArray("ewd_appName")="patientportal"
943"RTN","C0CE000R",27,0)
944 s sessionArray("ewd_pageName")="ewdErrorRedirect"
945"RTN","C0CE000R",28,0)
946 s sessionArray("ewd_translationMode")="0"
947"RTN","C0CE000R",29,0)
948 s sessionArray("ewd_technology")="gtm"
949"RTN","C0CE000R",30,0)
950 s sessionArray("ewd_pageType")=""
951"RTN","C0CE000R",31,0)
952 s ebToken("setErrorClasses^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("setErrorClasses^%zewdAPI",.sessionArray)
953"RTN","C0CE000R",32,0)
954 s ebToken("saveJSON^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("saveJSON^%zewdAPI",.sessionArray)
955"RTN","C0CE000R",33,0)
956 s ebToken("getJSON^%zewdCompiler13")=$$createEBToken^%zewdGTMRuntime("getJSON^%zewdCompiler13",.sessionArray)
957"RTN","C0CE000R",34,0)
958 s ebToken("mergeToJSObject^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("mergeToJSObject^%zewdAPI",.sessionArray)
959"RTN","C0CE000R",35,0)
960 s Error=$$startSession^%zewdPHP("ewdErrorRedirect",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
961"RTN","C0CE000R",36,0)
962 s sessid=$g(sessionArray("ewd_sessid"))
963"RTN","C0CE000R",37,0)
964 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
965"RTN","C0CE000R",38,0)
966 . s Error=$p(Error,":",2,200)
967"RTN","C0CE000R",39,0)
968 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
969"RTN","C0CE000R",40,0)
970 . s Error="EWD runtime error: "_Error
971"RTN","C0CE000R",41,0)
972 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
973"RTN","C0CE000R",42,0)
974 . n errorPage
975"RTN","C0CE000R",43,0)
976 . s errorPage=$g(sessionArray("ewd_errorPage"))
977"RTN","C0CE000R",44,0)
978 . i errorPage="" s errorPage="ewdError"
979"RTN","C0CE000R",45,0)
980 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
981"RTN","C0CE000R",46,0)
982 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
983"RTN","C0CE000R",47,0)
984 s stop=0
985"RTN","C0CE000R",48,0)
986 i Error="" d i stop QUIT 0
987"RTN","C0CE000R",49,0)
988 . n nextpage
989"RTN","C0CE000R",50,0)
990 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
991"RTN","C0CE000R",51,0)
992 . i nextpage'="" d
993"RTN","C0CE000R",52,0)
994 . . n x
995"RTN","C0CE000R",53,0)
996 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
997"RTN","C0CE000R",54,0)
998 . . s stop=1
999"RTN","C0CE000R",55,0)
1000 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
1001"RTN","C0CE000R",56,0)
1002 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
1003"RTN","C0CE000R",57,0)
1004 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
1005"RTN","C0CE000R",58,0)
1006 w "HTTP/1.1 200 OK"_$c(13,10)
1007"RTN","C0CE000R",59,0)
1008 s ctype="text/html"
1009"RTN","C0CE000R",60,0)
1010 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
1011"RTN","C0CE000R",61,0)
1012 i $d(headers) d
1013"RTN","C0CE000R",62,0)
1014 . n lcname,name
1015"RTN","C0CE000R",63,0)
1016 . s name=""
1017"RTN","C0CE000R",64,0)
1018 . f s name=$o(headers(name)) q:name="" d
1019"RTN","C0CE000R",65,0)
1020 . . s lcname=$$zcvt^%zewdAPI(name,"l")
1021"RTN","C0CE000R",66,0)
1022 . . i lcname="content-type" s ctype=headers(name) q
1023"RTN","C0CE000R",67,0)
1024 . . w name_": "_headers(name)_$c(13,10)
1025"RTN","C0CE000R",68,0)
1026 w "Content-type: "_ctype_$c(13,10)
1027"RTN","C0CE000R",69,0)
1028 w $c(13,10)
1029"RTN","C0CE000R",70,0)
1030 QUIT 1
1031"RTN","C0CE000R",71,0)
1032 ;
1033"RTN","C0CE000R",72,0)
1034body ;
1035"RTN","C0CE000R",73,0)
1036 w "<html>"_$c(13,10)
1037"RTN","C0CE000R",74,0)
1038 w " <head>"_$c(13,10)
1039"RTN","C0CE000R",75,0)
1040 w " <link href=""/resources/ewd.css"" rel=""stylesheet"" type=""text/css"" />"_$c(13,10)
1041"RTN","C0CE000R",76,0)
1042 w " <script src=""/resources/ewdScripts.js"">"_$c(13,10)
1043"RTN","C0CE000R",77,0)
1044 w "</script>"_$c(13,10)
1045"RTN","C0CE000R",78,0)
1046 w " <title>"_$c(13,10)
1047"RTN","C0CE000R",79,0)
1048 w "Ajax Error Redirect page"_""
1049"RTN","C0CE000R",80,0)
1050 w " </title>"_$c(13,10)
1051"RTN","C0CE000R",81,0)
1052 w " <head>"_$c(13,10)
1053"RTN","C0CE000R",82,0)
1054 w " <body onload=""EWD.page.setErrorClass() ; EWD.page.errorMessage('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"')"">"_$c(13,10)
1055"RTN","C0CE000R",83,0)
1056 w "Please wait...."_""
1057"RTN","C0CE000R",84,0)
1058 w " </body>"_$c(13,10)
1059"RTN","C0CE000R",85,0)
1060 w " </head>"_$c(13,10)
1061"RTN","C0CE000R",86,0)
1062 w " <script language=""javascript"">"_$c(13,10)
1063"RTN","C0CE000R",87,0)
1064 w " EWD.page.confirmText='"_$$jsEscape^%zewdGTMRuntime(confirmText)_"' ;"_$c(13,10)
1065"RTN","C0CE000R",88,0)
1066 w " EWD.page.setOnSubmit = function(obj,confirmText) { "_$c(13,10)
1067"RTN","C0CE000R",89,0)
1068 w " str='return EWD.page.displayConfirm(""' + confirmText+ '"")' ;"_$c(13,10)
1069"RTN","C0CE000R",90,0)
1070 w " obj.form.onsubmit=new Function(str) ;"_$c(13,10)
1071"RTN","C0CE000R",91,0)
1072 w " } ;"_$c(13,10)
1073"RTN","C0CE000R",92,0)
1074 w " EWD.page.setErrorClass = function () { "_$c(13,10)
1075"RTN","C0CE000R",93,0)
1076 w " if ('"_$$getSessionValue^%zewdAPI("ewd_hasErrors",sessid)_"' == '1') {"_$c(13,10)
1077"RTN","C0CE000R",94,0)
1078 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("setErrorClasses^%zewdAPI")_"','','synch','','') ;"_$c(13,10)
1079"RTN","C0CE000R",95,0)
1080 w " }"_$c(13,10)
1081"RTN","C0CE000R",96,0)
1082 w " } ;"_$c(13,10)
1083"RTN","C0CE000R",97,0)
1084 w " EWD.utils.putObjectToSession = function (objName) { "_$c(13,10)
1085"RTN","C0CE000R",98,0)
1086 w " var json,x ;"_$c(13,10)
1087"RTN","C0CE000R",99,0)
1088 w " if (typeof(dojo) != ""undefined"") {"_$c(13,10)
1089"RTN","C0CE000R",100,0)
1090 w " x = ""json = dojo.toJson("" + objName + "")"" ;"_$c(13,10)
1091"RTN","C0CE000R",101,0)
1092 w " eval(x) ;"_$c(13,10)
1093"RTN","C0CE000R",102,0)
1094 w " }"_$c(13,10)
1095"RTN","C0CE000R",103,0)
1096 w " else {"_$c(13,10)
1097"RTN","C0CE000R",104,0)
1098 w " //x = ""json="" + objName + "".toJSONString()"" ;"_$c(13,10)
1099"RTN","C0CE000R",105,0)
1100 w " //eval(x) ;"_$c(13,10)
1101"RTN","C0CE000R",106,0)
1102 w " x = ""json=toJsonString("" + objName + "");"" ;"_$c(13,10)
1103"RTN","C0CE000R",107,0)
1104 w " eval(x) ;"_$c(13,10)
1105"RTN","C0CE000R",108,0)
1106 w " //json=toJsonString(objName);"_$c(13,10)
1107"RTN","C0CE000R",109,0)
1108 w " }"_$c(13,10)
1109"RTN","C0CE000R",110,0)
1110 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("saveJSON^%zewdAPI")_"&px1=' + objName + '&px2=' + json + '','','synch','','') ;"_$c(13,10)
1111"RTN","C0CE000R",111,0)
1112 w " } ;"_$c(13,10)
1113"RTN","C0CE000R",112,0)
1114 w " EWD.utils.getObjectFromSession = function (objName, refresh, addRefCol) { "_$c(13,10)
1115"RTN","C0CE000R",113,0)
1116 w " if (refresh) {"_$c(13,10)
1117"RTN","C0CE000R",114,0)
1118 w " eval(""delete("" + objName + "") ;"") ;"_$c(13,10)
1119"RTN","C0CE000R",115,0)
1120 w " var objExists = ""undefined"" ;"_$c(13,10)
1121"RTN","C0CE000R",116,0)
1122 w " }"_$c(13,10)
1123"RTN","C0CE000R",117,0)
1124 w " else {"_$c(13,10)
1125"RTN","C0CE000R",118,0)
1126 w " var x = ""var objExists = typeof("" + objName + "");"" ;"_$c(13,10)
1127"RTN","C0CE000R",119,0)
1128 w " eval(x) ;"_$c(13,10)
1129"RTN","C0CE000R",120,0)
1130 w " }"_$c(13,10)
1131"RTN","C0CE000R",121,0)
1132 w " if (objExists == ""undefined"") {"_$c(13,10)
1133"RTN","C0CE000R",122,0)
1134 w " var addRef = 0 ;"_$c(13,10)
1135"RTN","C0CE000R",123,0)
1136 w " if (addRefCol) addRef = 1;"_$c(13,10)
1137"RTN","C0CE000R",124,0)
1138 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("getJSON^%zewdCompiler13")_"&px1=' + objName + '&px2=' + addRef + '','','synch','','') ;"_$c(13,10)
1139"RTN","C0CE000R",125,0)
1140 w ""_""
1141"RTN","C0CE000R",126,0)
1142 w " };"_$c(13,10)
1143"RTN","C0CE000R",127,0)
1144 w " } ;"_$c(13,10)
1145"RTN","C0CE000R",128,0)
1146 w " EWD.utils.mergeObjectFromSession = function (sessionName,JSObjName) { "_$c(13,10)
1147"RTN","C0CE000R",129,0)
1148 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("mergeToJSObject^%zewdAPI")_"&px1=' + sessionName + '&px2=' + JSObjName + '','','synch','','') ;"_$c(13,10)
1149"RTN","C0CE000R",130,0)
1150 w " } ;"_$c(13,10)
1151"RTN","C0CE000R",131,0)
1152 w ""_""
1153"RTN","C0CE000R",132,0)
1154 w " </script>"_$c(13,10)
1155"RTN","C0CE000R",133,0)
1156 w " </head>"_$c(13,10)
1157"RTN","C0CE000R",134,0)
1158 w "</html>"_$c(13,10)
1159"RTN","C0CE000R",135,0)
1160 QUIT
1161"RTN","C0CE001I")
11620^2^B97883042
1163"RTN","C0CE001I",1,0)
1164 ;GT.M version of page index (patientportal application)
1165"RTN","C0CE001I",2,0)
1166 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
1167"RTN","C0CE001I",3,0)
1168 ;using Enterprise Web Developer (Build 790)
1169"RTN","C0CE001I",4,0)
1170 QUIT
1171"RTN","C0CE001I",5,0)
1172 ;
1173"RTN","C0CE001I",6,0)
1174run ;
1175"RTN","C0CE001I",7,0)
1176 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
1177"RTN","C0CE001I",8,0)
1178 s ok=$$pre()
1179"RTN","C0CE001I",9,0)
1180 i ok d body
1181"RTN","C0CE001I",10,0)
1182 QUIT
1183"RTN","C0CE001I",11,0)
1184 ;
1185"RTN","C0CE001I",12,0)
1186pre() ;
1187"RTN","C0CE001I",13,0)
1188 ;
1189"RTN","C0CE001I",14,0)
1190 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
1191"RTN","C0CE001I",15,0)
1192 ;
1193"RTN","C0CE001I",16,0)
1194 s confirmText="Click OK if you're sure you want to delete this record"
1195"RTN","C0CE001I",17,0)
1196 s sessionArray("ewd_isFirstPage")="1"
1197"RTN","C0CE001I",18,0)
1198 s sessionArray("ewd_sessid_timeout")="1200"
1199"RTN","C0CE001I",19,0)
1200 s sessionArray("ewd_prePageScript")=""
1201"RTN","C0CE001I",20,0)
1202 s sessionArray("ewd_default_timeout")="1200"
1203"RTN","C0CE001I",21,0)
1204 s sessionArray("ewd_persistRequest")="true"
1205"RTN","C0CE001I",22,0)
1206 s sessionArray("ewd_pageTitle")=""
1207"RTN","C0CE001I",23,0)
1208 s sessionArray("ewd_errorPage")="ewdError"
1209"RTN","C0CE001I",24,0)
1210 s sessionArray("ewd_templatePrePageScript")=""
1211"RTN","C0CE001I",25,0)
1212 s sessionArray("ewd_onErrorScript")=""
1213"RTN","C0CE001I",26,0)
1214 s sessionArray("ewd_appName")="patientportal"
1215"RTN","C0CE001I",27,0)
1216 s sessionArray("ewd_pageName")="index"
1217"RTN","C0CE001I",28,0)
1218 s sessionArray("ewd_translationMode")="0"
1219"RTN","C0CE001I",29,0)
1220 s sessionArray("ewd_technology")="gtm"
1221"RTN","C0CE001I",30,0)
1222 s sessionArray("ewd_header","Expires")=0
1223"RTN","C0CE001I",31,0)
1224 s sessionArray("ewd_header","Cache-Control")="no-cache"
1225"RTN","C0CE001I",32,0)
1226 s sessionArray("ewd_header","Pragma")="no-cache"
1227"RTN","C0CE001I",33,0)
1228 s sessionArray("ewd_pageType")=""
1229"RTN","C0CE001I",34,0)
1230 s tokens("ccr")=$$setNextPageToken^%zewdGTMRuntime("ccr")
1231"RTN","C0CE001I",35,0)
1232 s tokens("ccr2")=$$setNextPageToken^%zewdGTMRuntime("ccr2")
1233"RTN","C0CE001I",36,0)
1234 s tokens("ccrexe")=$$setNextPageToken^%zewdGTMRuntime("ccrexe")
1235"RTN","C0CE001I",37,0)
1236 s tokens("loginPanel")=$$setNextPageToken^%zewdGTMRuntime("loginPanel")
1237"RTN","C0CE001I",38,0)
1238 s tokens("session")=$$setNextPageToken^%zewdGTMRuntime("session")
1239"RTN","C0CE001I",39,0)
1240 s ebToken("setErrorClasses^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("setErrorClasses^%zewdAPI",.sessionArray)
1241"RTN","C0CE001I",40,0)
1242 s ebToken("saveJSON^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("saveJSON^%zewdAPI",.sessionArray)
1243"RTN","C0CE001I",41,0)
1244 s ebToken("getJSON^%zewdCompiler13")=$$createEBToken^%zewdGTMRuntime("getJSON^%zewdCompiler13",.sessionArray)
1245"RTN","C0CE001I",42,0)
1246 s ebToken("mergeToJSObject^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("mergeToJSObject^%zewdAPI",.sessionArray)
1247"RTN","C0CE001I",43,0)
1248 s Error=$$startSession^%zewdPHP("index",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
1249"RTN","C0CE001I",44,0)
1250 s sessid=$g(sessionArray("ewd_sessid"))
1251"RTN","C0CE001I",45,0)
1252 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
1253"RTN","C0CE001I",46,0)
1254 . s Error=$p(Error,":",2,200)
1255"RTN","C0CE001I",47,0)
1256 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
1257"RTN","C0CE001I",48,0)
1258 . s Error="EWD runtime error: "_Error
1259"RTN","C0CE001I",49,0)
1260 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
1261"RTN","C0CE001I",50,0)
1262 . n errorPage
1263"RTN","C0CE001I",51,0)
1264 . s errorPage=$g(sessionArray("ewd_errorPage"))
1265"RTN","C0CE001I",52,0)
1266 . i errorPage="" s errorPage="ewdError"
1267"RTN","C0CE001I",53,0)
1268 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
1269"RTN","C0CE001I",54,0)
1270 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
1271"RTN","C0CE001I",55,0)
1272 s stop=0
1273"RTN","C0CE001I",56,0)
1274 i Error="" d i stop QUIT 0
1275"RTN","C0CE001I",57,0)
1276 . n nextpage
1277"RTN","C0CE001I",58,0)
1278 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
1279"RTN","C0CE001I",59,0)
1280 . i nextpage'="" d
1281"RTN","C0CE001I",60,0)
1282 . . n x
1283"RTN","C0CE001I",61,0)
1284 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
1285"RTN","C0CE001I",62,0)
1286 . . s stop=1
1287"RTN","C0CE001I",63,0)
1288 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
1289"RTN","C0CE001I",64,0)
1290 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
1291"RTN","C0CE001I",65,0)
1292 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
1293"RTN","C0CE001I",66,0)
1294 w "HTTP/1.1 200 OK"_$c(13,10)
1295"RTN","C0CE001I",67,0)
1296 s ctype="text/html"
1297"RTN","C0CE001I",68,0)
1298 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
1299"RTN","C0CE001I",69,0)
1300 i $d(headers) d
1301"RTN","C0CE001I",70,0)
1302 . n lcname,name
1303"RTN","C0CE001I",71,0)
1304 . s name=""
1305"RTN","C0CE001I",72,0)
1306 . f s name=$o(headers(name)) q:name="" d
1307"RTN","C0CE001I",73,0)
1308 . . s lcname=$$zcvt^%zewdAPI(name,"l")
1309"RTN","C0CE001I",74,0)
1310 . . i lcname="content-type" s ctype=headers(name) q
1311"RTN","C0CE001I",75,0)
1312 . . w name_": "_headers(name)_$c(13,10)
1313"RTN","C0CE001I",76,0)
1314 w "Content-type: "_ctype_$c(13,10)
1315"RTN","C0CE001I",77,0)
1316 w $c(13,10)
1317"RTN","C0CE001I",78,0)
1318 QUIT 1
1319"RTN","C0CE001I",79,0)
1320 ;
1321"RTN","C0CE001I",80,0)
1322body ;
1323"RTN","C0CE001I",81,0)
1324 w "<html>"_$c(13,10)
1325"RTN","C0CE001I",82,0)
1326 w " <head>"_$c(13,10)
1327"RTN","C0CE001I",83,0)
1328 w " <link href=""/resources/ewd.css"" rel=""stylesheet"" type=""text/css"" />"_$c(13,10)
1329"RTN","C0CE001I",84,0)
1330 w " <script src=""/resources/ewdScripts.js"">"_$c(13,10)
1331"RTN","C0CE001I",85,0)
1332 w "</script>"_$c(13,10)
1333"RTN","C0CE001I",86,0)
1334 w " <title>"_$c(13,10)
1335"RTN","C0CE001I",87,0)
1336 w "The start EWD Page"_""
1337"RTN","C0CE001I",88,0)
1338 w " </title>"_$c(13,10)
1339"RTN","C0CE001I",89,0)
1340 w " <script language=""javascript"">"_$c(13,10)
1341"RTN","C0CE001I",90,0)
1342 w ""_$c(13,10)
1343"RTN","C0CE001I",91,0)
1344 w " function init() "_$c(13,10)
1345"RTN","C0CE001I",92,0)
1346 w " {"_$c(13,10)
1347"RTN","C0CE001I",93,0)
1348 w " EWD.ajax.makeRequest('/ewd/patientportal/loginPanel.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("loginPanel")_"&ewd_urlNo=index1','LP','get','','');"_$c(13,10)
1349"RTN","C0CE001I",94,0)
1350 w " }"_$c(13,10)
1351"RTN","C0CE001I",95,0)
1352 w " "_""
1353"RTN","C0CE001I",96,0)
1354 w " </script>"_$c(13,10)
1355"RTN","C0CE001I",97,0)
1356 w " <script language=""javascript"">"_$c(13,10)
1357"RTN","C0CE001I",98,0)
1358 w " EWD.page.confirmText='"_$$jsEscape^%zewdGTMRuntime(confirmText)_"' ;"_$c(13,10)
1359"RTN","C0CE001I",99,0)
1360 w " EWD.page.setOnSubmit = function(obj,confirmText) { "_$c(13,10)
1361"RTN","C0CE001I",100,0)
1362 w " str='return EWD.page.displayConfirm(""' + confirmText+ '"")' ;"_$c(13,10)
1363"RTN","C0CE001I",101,0)
1364 w " obj.form.onsubmit=new Function(str) ;"_$c(13,10)
1365"RTN","C0CE001I",102,0)
1366 w " } ;"_$c(13,10)
1367"RTN","C0CE001I",103,0)
1368 w " EWD.page.setErrorClass = function () { "_$c(13,10)
1369"RTN","C0CE001I",104,0)
1370 w " if ('"_$$getSessionValue^%zewdAPI("ewd_hasErrors",sessid)_"' == '1') {"_$c(13,10)
1371"RTN","C0CE001I",105,0)
1372 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("setErrorClasses^%zewdAPI")_"','','synch','','') ;"_$c(13,10)
1373"RTN","C0CE001I",106,0)
1374 w " }"_$c(13,10)
1375"RTN","C0CE001I",107,0)
1376 w " } ;"_$c(13,10)
1377"RTN","C0CE001I",108,0)
1378 w " EWD.utils.putObjectToSession = function (objName) { "_$c(13,10)
1379"RTN","C0CE001I",109,0)
1380 w " var json,x ;"_$c(13,10)
1381"RTN","C0CE001I",110,0)
1382 w " if (typeof(dojo) != ""undefined"") {"_$c(13,10)
1383"RTN","C0CE001I",111,0)
1384 w " x = ""json = dojo.toJson("" + objName + "")"" ;"_$c(13,10)
1385"RTN","C0CE001I",112,0)
1386 w " eval(x) ;"_$c(13,10)
1387"RTN","C0CE001I",113,0)
1388 w " }"_$c(13,10)
1389"RTN","C0CE001I",114,0)
1390 w " else {"_$c(13,10)
1391"RTN","C0CE001I",115,0)
1392 w " //x = ""json="" + objName + "".toJSONString()"" ;"_$c(13,10)
1393"RTN","C0CE001I",116,0)
1394 w " //eval(x) ;"_$c(13,10)
1395"RTN","C0CE001I",117,0)
1396 w " x = ""json=toJsonString("" + objName + "");"" ;"_$c(13,10)
1397"RTN","C0CE001I",118,0)
1398 w " eval(x) ;"_$c(13,10)
1399"RTN","C0CE001I",119,0)
1400 w " //json=toJsonString(objName);"_$c(13,10)
1401"RTN","C0CE001I",120,0)
1402 w " }"_$c(13,10)
1403"RTN","C0CE001I",121,0)
1404 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("saveJSON^%zewdAPI")_"&px1=' + objName + '&px2=' + json + '','','synch','','') ;"_$c(13,10)
1405"RTN","C0CE001I",122,0)
1406 w " } ;"_$c(13,10)
1407"RTN","C0CE001I",123,0)
1408 w " EWD.utils.getObjectFromSession = function (objName, refresh, addRefCol) { "_$c(13,10)
1409"RTN","C0CE001I",124,0)
1410 w " if (refresh) {"_$c(13,10)
1411"RTN","C0CE001I",125,0)
1412 w " eval(""delete("" + objName + "") ;"") ;"_$c(13,10)
1413"RTN","C0CE001I",126,0)
1414 w " var objExists = ""undefined"" ;"_$c(13,10)
1415"RTN","C0CE001I",127,0)
1416 w " }"_$c(13,10)
1417"RTN","C0CE001I",128,0)
1418 w " else {"_$c(13,10)
1419"RTN","C0CE001I",129,0)
1420 w " var x = ""var objExists = typeof("" + objName + "");"" ;"_$c(13,10)
1421"RTN","C0CE001I",130,0)
1422 w " eval(x) ;"_$c(13,10)
1423"RTN","C0CE001I",131,0)
1424 w " }"_$c(13,10)
1425"RTN","C0CE001I",132,0)
1426 w " if (objExists == ""undefined"") {"_$c(13,10)
1427"RTN","C0CE001I",133,0)
1428 w " var addRef = 0 ;"_$c(13,10)
1429"RTN","C0CE001I",134,0)
1430 w " if (addRefCol) addRef = 1;"_$c(13,10)
1431"RTN","C0CE001I",135,0)
1432 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("getJSON^%zewdCompiler13")_"&px1=' + objName + '&px2=' + addRef + '','','synch','','') ;"_$c(13,10)
1433"RTN","C0CE001I",136,0)
1434 w ""_""
1435"RTN","C0CE001I",137,0)
1436 w " };"_$c(13,10)
1437"RTN","C0CE001I",138,0)
1438 w " } ;"_$c(13,10)
1439"RTN","C0CE001I",139,0)
1440 w " EWD.utils.mergeObjectFromSession = function (sessionName,JSObjName) { "_$c(13,10)
1441"RTN","C0CE001I",140,0)
1442 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("mergeToJSObject^%zewdAPI")_"&px1=' + sessionName + '&px2=' + JSObjName + '','','synch','','') ;"_$c(13,10)
1443"RTN","C0CE001I",141,0)
1444 w " } ;"_$c(13,10)
1445"RTN","C0CE001I",142,0)
1446 w ""_""
1447"RTN","C0CE001I",143,0)
1448 w " </script>"_$c(13,10)
1449"RTN","C0CE001I",144,0)
1450 w " </head>"_$c(13,10)
1451"RTN","C0CE001I",145,0)
1452 w " <body onload=""init() ; EWD.page.setErrorClass() ; EWD.page.errorMessage('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"')"">"_$c(13,10)
1453"RTN","C0CE001I",146,0)
1454 w " <h3>"_$c(13,10)
1455"RTN","C0CE001I",147,0)
1456 w "This page is the first page in this application"_""
1457"RTN","C0CE001I",148,0)
1458 w " </h3>"_$c(13,10)
1459"RTN","C0CE001I",149,0)
1460 w " <div id=""LP"">"_$c(13,10)
1461"RTN","C0CE001I",150,0)
1462 w "Login"_""
1463"RTN","C0CE001I",151,0)
1464 w " </div>"_$c(13,10)
1465"RTN","C0CE001I",152,0)
1466 w " <div>"_$c(13,10)
1467"RTN","C0CE001I",153,0)
1468 w " <a href='/ewd/patientportal/session.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("session")_"&ewd_urlNo=index2'>"_$c(13,10)
1469"RTN","C0CE001I",154,0)
1470 w "Go to the second page"_""
1471"RTN","C0CE001I",155,0)
1472 w " </a>"_$c(13,10)
1473"RTN","C0CE001I",156,0)
1474 w " </div>"_$c(13,10)
1475"RTN","C0CE001I",157,0)
1476 w " <div>"_$c(13,10)
1477"RTN","C0CE001I",158,0)
1478 w " <a href='/ewd/patientportal/ccr.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("ccr")_"&ewd_urlNo=index3'>"_$c(13,10)
1479"RTN","C0CE001I",159,0)
1480 w "Goto the CCR"_""
1481"RTN","C0CE001I",160,0)
1482 w " </a>"_$c(13,10)
1483"RTN","C0CE001I",161,0)
1484 w " </div>"_$c(13,10)
1485"RTN","C0CE001I",162,0)
1486 w " <div>"_$c(13,10)
1487"RTN","C0CE001I",163,0)
1488 w " <a href='/ewd/patientportal/ccrexe.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("ccrexe")_"&ewd_urlNo=index4'>"_$c(13,10)
1489"RTN","C0CE001I",164,0)
1490 w "Goto CCR 2"_""
1491"RTN","C0CE001I",165,0)
1492 w " </a>"_$c(13,10)
1493"RTN","C0CE001I",166,0)
1494 w " </div>"_$c(13,10)
1495"RTN","C0CE001I",167,0)
1496 w " <div>"_$c(13,10)
1497"RTN","C0CE001I",168,0)
1498 w " <a href='/ewd/patientportal/ccr2.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("ccr2")_"&ewd_urlNo=index5'>"_$c(13,10)
1499"RTN","C0CE001I",169,0)
1500 w "Goto Hello World"_""
1501"RTN","C0CE001I",170,0)
1502 w " </a>"_$c(13,10)
1503"RTN","C0CE001I",171,0)
1504 w " </div>"_$c(13,10)
1505"RTN","C0CE001I",172,0)
1506 w " </body>"_$c(13,10)
1507"RTN","C0CE001I",173,0)
1508 w "</html>"_$c(13,10)
1509"RTN","C0CE001I",174,0)
1510 QUIT
1511"RTN","C0CE001L")
15120^10^B51144421
1513"RTN","C0CE001L",1,0)
1514 ;GT.M version of page loginPanel (patientportal application)
1515"RTN","C0CE001L",2,0)
1516 ;Compiled on Sun, 28 Feb 2010 21:40:03;;;;;Build 1
1517"RTN","C0CE001L",3,0)
1518 ;using Enterprise Web Developer (Build 790)
1519"RTN","C0CE001L",4,0)
1520 QUIT
1521"RTN","C0CE001L",5,0)
1522 ;
1523"RTN","C0CE001L",6,0)
1524run ;
1525"RTN","C0CE001L",7,0)
1526 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
1527"RTN","C0CE001L",8,0)
1528 s ok=$$pre()
1529"RTN","C0CE001L",9,0)
1530 i ok d body
1531"RTN","C0CE001L",10,0)
1532 QUIT
1533"RTN","C0CE001L",11,0)
1534 ;
1535"RTN","C0CE001L",12,0)
1536pre() ;
1537"RTN","C0CE001L",13,0)
1538 ;
1539"RTN","C0CE001L",14,0)
1540 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
1541"RTN","C0CE001L",15,0)
1542 ;
1543"RTN","C0CE001L",16,0)
1544 s confirmText="Click OK if you're sure you want to delete this record"
1545"RTN","C0CE001L",17,0)
1546 s sessionArray("ewd_isFirstPage")="0"
1547"RTN","C0CE001L",18,0)
1548 s sessionArray("ewd_sessid_timeout")="1200"
1549"RTN","C0CE001L",19,0)
1550 s sessionArray("ewd_prePageScript")=""
1551"RTN","C0CE001L",20,0)
1552 s sessionArray("ewd_default_timeout")="1200"
1553"RTN","C0CE001L",21,0)
1554 s sessionArray("ewd_persistRequest")="true"
1555"RTN","C0CE001L",22,0)
1556 s sessionArray("ewd_pageTitle")=""
1557"RTN","C0CE001L",23,0)
1558 s sessionArray("ewd_errorPage")="ewdError"
1559"RTN","C0CE001L",24,0)
1560 s sessionArray("ewd_templatePrePageScript")=""
1561"RTN","C0CE001L",25,0)
1562 s sessionArray("ewd_onErrorScript")=""
1563"RTN","C0CE001L",26,0)
1564 s sessionArray("ewd_appName")="patientportal"
1565"RTN","C0CE001L",27,0)
1566 s sessionArray("ewd_pageName")="loginPanel"
1567"RTN","C0CE001L",28,0)
1568 s sessionArray("ewd_translationMode")="0"
1569"RTN","C0CE001L",29,0)
1570 s sessionArray("ewd_technology")="gtm"
1571"RTN","C0CE001L",30,0)
1572 s sessionArray("ewd_pageType")="ajax"
1573"RTN","C0CE001L",31,0)
1574 s tokens("ewdAjaxError")=$$setNextPageToken^%zewdGTMRuntime("ewdAjaxError")
1575"RTN","C0CE001L",32,0)
1576 s Error=$$startSession^%zewdPHP("loginPanel",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
1577"RTN","C0CE001L",33,0)
1578 s sessid=$g(sessionArray("ewd_sessid"))
1579"RTN","C0CE001L",34,0)
1580 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
1581"RTN","C0CE001L",35,0)
1582 . s Error=$p(Error,":",2,200)
1583"RTN","C0CE001L",36,0)
1584 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
1585"RTN","C0CE001L",37,0)
1586 . s Error="EWD runtime error: "_Error
1587"RTN","C0CE001L",38,0)
1588 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
1589"RTN","C0CE001L",39,0)
1590 . n errorPage
1591"RTN","C0CE001L",40,0)
1592 . s errorPage=$g(sessionArray("ewd_errorPage"))
1593"RTN","C0CE001L",41,0)
1594 . i errorPage="" s errorPage="ewdError"
1595"RTN","C0CE001L",42,0)
1596 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
1597"RTN","C0CE001L",43,0)
1598 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
1599"RTN","C0CE001L",44,0)
1600 s stop=0
1601"RTN","C0CE001L",45,0)
1602 i Error="" d i stop QUIT 0
1603"RTN","C0CE001L",46,0)
1604 . n nextpage
1605"RTN","C0CE001L",47,0)
1606 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
1607"RTN","C0CE001L",48,0)
1608 . i nextpage'="" d
1609"RTN","C0CE001L",49,0)
1610 . . n x
1611"RTN","C0CE001L",50,0)
1612 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
1613"RTN","C0CE001L",51,0)
1614 . . s stop=1
1615"RTN","C0CE001L",52,0)
1616 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
1617"RTN","C0CE001L",53,0)
1618 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
1619"RTN","C0CE001L",54,0)
1620 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
1621"RTN","C0CE001L",55,0)
1622 w "HTTP/1.1 200 OK"_$c(13,10)
1623"RTN","C0CE001L",56,0)
1624 s ctype="text/html"
1625"RTN","C0CE001L",57,0)
1626 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
1627"RTN","C0CE001L",58,0)
1628 i $d(headers) d
1629"RTN","C0CE001L",59,0)
1630 . n lcname,name
1631"RTN","C0CE001L",60,0)
1632 . s name=""
1633"RTN","C0CE001L",61,0)
1634 . f s name=$o(headers(name)) q:name="" d
1635"RTN","C0CE001L",62,0)
1636 . . s lcname=$$zcvt^%zewdAPI(name,"l")
1637"RTN","C0CE001L",63,0)
1638 . . i lcname="content-type" s ctype=headers(name) q
1639"RTN","C0CE001L",64,0)
1640 . . w name_": "_headers(name)_$c(13,10)
1641"RTN","C0CE001L",65,0)
1642 w "Content-type: "_ctype_$c(13,10)
1643"RTN","C0CE001L",66,0)
1644 w $c(13,10)
1645"RTN","C0CE001L",67,0)
1646 QUIT 1
1647"RTN","C0CE001L",68,0)
1648 ;
1649"RTN","C0CE001L",69,0)
1650body ;
1651"RTN","C0CE001L",70,0)
1652 if ($g(Error)="") d
1653"RTN","C0CE001L",71,0)
1654 .w " <div id=""ewdscript"">"_$c(13,10)
1655"RTN","C0CE001L",72,0)
1656 .w "EWD.page.yuiResourcePath = """_$$getSessionValue^%zewdAPI("yui.resourcePath",sessid)_""" ;"_""
1657"RTN","C0CE001L",73,0)
1658 .w "if (EWD.page.yuiResourcePath == '') {"_""
1659"RTN","C0CE001L",74,0)
1660 .w " alert('Unable to determine path to YUI resource file. Did you run d install^%zewdYUIConf()?') ;"_""
1661"RTN","C0CE001L",75,0)
1662 .w "}"_""
1663"RTN","C0CE001L",76,0)
1664 .w "EWD.page.loadResource("""_$$getSessionValue^%zewdAPI("yui.resourceLoaderPath",sessid)_$$getSessionValue^%zewdAPI("yui.resourceLoader",sessid)_""",""js"") ;"_""
1665"RTN","C0CE001L",77,0)
1666 .w "if (!EWD.yui) alert('YUI Javascript resource file ewdYUIResources.js was not found in the web server root path');"_""
1667"RTN","C0CE001L",78,0)
1668 .w "if (!EWD.yui.build) alert('YUI Javascript resource file ewdYUIResources.js is out of date. You must be using build 790');"_""
1669"RTN","C0CE001L",79,0)
1670 .w "if (EWD.yui.build != 790) alert('YUI Javascript resource file ewdYUIResources.js is out of date. You are using build ' + EWD.yui.build + ' but you should be using build 790');"_""
1671"RTN","C0CE001L",80,0)
1672 .w "EWD.yui.version = """_$$getSessionValue^%zewdAPI("yui.resourcePath",sessid)_""" ;"_""
1673"RTN","C0CE001L",81,0)
1674 .w "EWD.yui.resourceLoader.Dialog() ;"_""
1675"RTN","C0CE001L",82,0)
1676 .w "document.getElementsByTagName('body')[0].className = 'yui-skin-sam' ;"_""
1677"RTN","C0CE001L",83,0)
1678 .w "var fReturnloginPanel7=function() {"_""
1679"RTN","C0CE001L",84,0)
1680 .w "EWD.yui.widgetIndex[""yuiDialogRegloginPanel7""]={widgetName:""loginPanel7"",tagId:""yuiDialogDivloginPanel7""};"_""
1681"RTN","C0CE001L",85,0)
1682 .w "EWD.yui.moveDialogToBody('yuiDialogDivloginPanel7');"_""
1683"RTN","C0CE001L",86,0)
1684 .w "EWD.yui.widget.loginPanel7=new YAHOO.widget.Dialog(""yuiDialogDivloginPanel7"",{iframe:true,width:""270px"",x:150,y:100});"_""
1685"RTN","C0CE001L",87,0)
1686 .w "EWD.yui.widget.loginPanel7.render();"_""
1687"RTN","C0CE001L",88,0)
1688 .w "};"_""
1689"RTN","C0CE001L",89,0)
1690 .w "YAHOO.util.Event.onAvailable(""yuiDialogDivloginPanel7"",fReturnloginPanel7);"_""
1691"RTN","C0CE001L",90,0)
1692 .w " </div>"_$c(13,10)
1693"RTN","C0CE001L",91,0)
1694 .w " <div id=""yuiDialogRegloginPanel7"">"_$c(13,10)
1695"RTN","C0CE001L",92,0)
1696 .w " <div id=""yuiDialogDivloginPanel7"" style=""visibility:hidden"">"_$c(13,10)
1697"RTN","C0CE001L",93,0)
1698 .w " <div class=""hd"">"_$c(13,10)
1699"RTN","C0CE001L",94,0)
1700 .w "Login"_""
1701"RTN","C0CE001L",95,0)
1702 .w " </div>"_$c(13,10)
1703"RTN","C0CE001L",96,0)
1704 .w " <div class=""bd"">"_$c(13,10)
1705"RTN","C0CE001L",97,0)
1706 .w "Login Form will go here"_""
1707"RTN","C0CE001L",98,0)
1708 .w " </div>"_$c(13,10)
1709"RTN","C0CE001L",99,0)
1710 .w " <div class=""ft"">"_$c(13,10)
1711"RTN","C0CE001L",100,0)
1712 .w "</div>"_$c(13,10)
1713"RTN","C0CE001L",101,0)
1714 .w " </div>"_$c(13,10)
1715"RTN","C0CE001L",102,0)
1716 .w " </div>"_$c(13,10)
1717"RTN","C0CE001L",103,0)
1718 .
1719"RTN","C0CE001L",104,0)
1720 w "<span id=""ewdajaxonload"">"_$c(13,10)
1721"RTN","C0CE001L",105,0)
1722 w " var ewdtext='"_$$jsEscape^%zewdGTMRuntime(Error)_"' ; if (ewdtext != '') { if (ewdtext.substring(0,11) == 'javascript:') { ewdtext=ewdtext.substring(11) ; eval(ewdtext) ; } else { EWD.ajax.alert('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"') }"_$c(13,10)
1723"RTN","C0CE001L",106,0)
1724 s id=""
1725"RTN","C0CE001L",107,0)
1726 f s id=$o(^%zewdSession("session","ewd_idList",id)) q:id="" d
1727"RTN","C0CE001L",108,0)
1728 . w "idPointer = document.getElementById('"_id_"') ; "
1729"RTN","C0CE001L",109,0)
1730 . w "if (idPointer != null) idPointer.className='"_$g(^%zewdSession("session","ewd_idList"))_"' ; "
1731"RTN","C0CE001L",110,0)
1732 s id=""
1733"RTN","C0CE001L",111,0)
1734 f s id=$o(^%zewdSession("session","ewd_errorFields",id)) q:id="" d
1735"RTN","C0CE001L",112,0)
1736 . w "idPointer = document.getElementById('"_id_"') ; "
1737"RTN","C0CE001L",113,0)
1738 . w "if (idPointer != null) idPointer.className='"_$g(^%zewdSession("session","ewd_errorClass"))_"' ; "
1739"RTN","C0CE001L",114,0)
1740 k ^%zewdSession("session","ewd_hasErrors")
1741"RTN","C0CE001L",115,0)
1742 k ^%zewdSession("session","ewd_errorFields")
1743"RTN","C0CE001L",116,0)
1744 k ^%zewdSession("session","ewd_idList")
1745"RTN","C0CE001L",117,0)
1746 w " }"_""
1747"RTN","C0CE001L",118,0)
1748 w "</span>"_$c(13,10)
1749"RTN","C0CE001L",119,0)
1750 QUIT
1751"RTN","C0CE002")
17520^5^B19028117
1753"RTN","C0CE002",1,0)
1754 ;GT.M version of page ccr (patientportal application)
1755"RTN","C0CE002",2,0)
1756 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
1757"RTN","C0CE002",3,0)
1758 ;using Enterprise Web Developer (Build 790)
1759"RTN","C0CE002",4,0)
1760 QUIT
1761"RTN","C0CE002",5,0)
1762 ;
1763"RTN","C0CE002",6,0)
1764run ;
1765"RTN","C0CE002",7,0)
1766 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
1767"RTN","C0CE002",8,0)
1768 s ok=$$pre()
1769"RTN","C0CE002",9,0)
1770 i ok d body
1771"RTN","C0CE002",10,0)
1772 QUIT
1773"RTN","C0CE002",11,0)
1774 ;
1775"RTN","C0CE002",12,0)
1776pre() ;
1777"RTN","C0CE002",13,0)
1778 ;
1779"RTN","C0CE002",14,0)
1780 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
1781"RTN","C0CE002",15,0)
1782 ;
1783"RTN","C0CE002",16,0)
1784 s confirmText="Click OK if you're sure you want to delete this record"
1785"RTN","C0CE002",17,0)
1786 s sessionArray("ewd_isFirstPage")="0"
1787"RTN","C0CE002",18,0)
1788 s sessionArray("ewd_sessid_timeout")="1200"
1789"RTN","C0CE002",19,0)
1790 s sessionArray("ewd_prePageScript")="TEST2^RICHEWDTEST"
1791"RTN","C0CE002",20,0)
1792 s sessionArray("ewd_default_timeout")="1200"
1793"RTN","C0CE002",21,0)
1794 s sessionArray("ewd_persistRequest")="true"
1795"RTN","C0CE002",22,0)
1796 s sessionArray("ewd_pageTitle")=""
1797"RTN","C0CE002",23,0)
1798 s sessionArray("ewd_errorPage")="ewdError"
1799"RTN","C0CE002",24,0)
1800 s sessionArray("ewd_templatePrePageScript")=""
1801"RTN","C0CE002",25,0)
1802 s sessionArray("ewd_onErrorScript")=""
1803"RTN","C0CE002",26,0)
1804 s sessionArray("ewd_appName")="patientportal"
1805"RTN","C0CE002",27,0)
1806 s sessionArray("ewd_pageName")="ccr"
1807"RTN","C0CE002",28,0)
1808 s sessionArray("ewd_translationMode")="0"
1809"RTN","C0CE002",29,0)
1810 s sessionArray("ewd_technology")="gtm"
1811"RTN","C0CE002",30,0)
1812 s sessionArray("ewd_pageType")=""
1813"RTN","C0CE002",31,0)
1814 s Error=$$startSession^%zewdPHP("ccr",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
1815"RTN","C0CE002",32,0)
1816 s sessid=$g(sessionArray("ewd_sessid"))
1817"RTN","C0CE002",33,0)
1818 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
1819"RTN","C0CE002",34,0)
1820 s headers("Content-type")="text/xml"
1821"RTN","C0CE002",35,0)
1822 d mergeArrayToSession^%zewdAPI(.headers,"ewd.header",sessid)
1823"RTN","C0CE002",36,0)
1824 k headers
1825"RTN","C0CE002",37,0)
1826 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
1827"RTN","C0CE002",38,0)
1828 . s Error=$p(Error,":",2,200)
1829"RTN","C0CE002",39,0)
1830 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
1831"RTN","C0CE002",40,0)
1832 . s Error="EWD runtime error: "_Error
1833"RTN","C0CE002",41,0)
1834 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
1835"RTN","C0CE002",42,0)
1836 . n errorPage
1837"RTN","C0CE002",43,0)
1838 . s errorPage=$g(sessionArray("ewd_errorPage"))
1839"RTN","C0CE002",44,0)
1840 . i errorPage="" s errorPage="ewdError"
1841"RTN","C0CE002",45,0)
1842 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
1843"RTN","C0CE002",46,0)
1844 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
1845"RTN","C0CE002",47,0)
1846 s stop=0
1847"RTN","C0CE002",48,0)
1848 i Error="" d i stop QUIT 0
1849"RTN","C0CE002",49,0)
1850 . n nextpage
1851"RTN","C0CE002",50,0)
1852 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
1853"RTN","C0CE002",51,0)
1854 . i nextpage'="" d
1855"RTN","C0CE002",52,0)
1856 . . n x
1857"RTN","C0CE002",53,0)
1858 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
1859"RTN","C0CE002",54,0)
1860 . . s stop=1
1861"RTN","C0CE002",55,0)
1862 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
1863"RTN","C0CE002",56,0)
1864 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
1865"RTN","C0CE002",57,0)
1866 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
1867"RTN","C0CE002",58,0)
1868 w "HTTP/1.1 200 OK"_$c(13,10)
1869"RTN","C0CE002",59,0)
1870 s ctype="text/html"
1871"RTN","C0CE002",60,0)
1872 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
1873"RTN","C0CE002",61,0)
1874 i $d(headers) d
1875"RTN","C0CE002",62,0)
1876 . n lcname,name
1877"RTN","C0CE002",63,0)
1878 . s name=""
1879"RTN","C0CE002",64,0)
1880 . f s name=$o(headers(name)) q:name="" d
1881"RTN","C0CE002",65,0)
1882 . . s lcname=$$zcvt^%zewdAPI(name,"l")
1883"RTN","C0CE002",66,0)
1884 . . i lcname="content-type" s ctype=headers(name) q
1885"RTN","C0CE002",67,0)
1886 . . w name_": "_headers(name)_$c(13,10)
1887"RTN","C0CE002",68,0)
1888 w "Content-type: "_ctype_$c(13,10)
1889"RTN","C0CE002",69,0)
1890 w $c(13,10)
1891"RTN","C0CE002",70,0)
1892 QUIT 1
1893"RTN","C0CE002",71,0)
1894 ;
1895"RTN","C0CE002",72,0)
1896body ;
1897"RTN","C0CE002",73,0)
1898 s no=""
1899"RTN","C0CE002",74,0)
1900 i no?1N.N s no=no-1
1901"RTN","C0CE002",75,0)
1902 i no?1AP.ANP d
1903"RTN","C0CE002",76,0)
1904 . s p1=$e(no,1,$l(no)-1)
1905"RTN","C0CE002",77,0)
1906 . s p2=$e(no,$l(no))
1907"RTN","C0CE002",78,0)
1908 . s p2=$c($a(p2)-1)
1909"RTN","C0CE002",79,0)
1910 . s no=p1_p2
1911"RTN","C0CE002",80,0)
1912 s nul=""
1913"RTN","C0CE002",81,0)
1914 s endValue12=""
1915"RTN","C0CE002",82,0)
1916 i endValue12?1N.N s endValue12=endValue12+1
1917"RTN","C0CE002",83,0)
1918 f q:'(($o(^%zewdSession("session",sessid,"CCR",no))'=endValue12)&($o(^%zewdSession("session",sessid,"CCR",no))'=nul)) d
1919"RTN","C0CE002",84,0)
1920 .s no=$o(^%zewdSession("session",sessid,"CCR",no))
1921"RTN","C0CE002",85,0)
1922 .s data=$g(^%zewdSession("session",sessid,"CCR",no))
1923"RTN","C0CE002",86,0)
1924 .w data
1925"RTN","C0CE002",87,0)
1926 .
1927"RTN","C0CE002",88,0)
1928 QUIT
1929"RTN","C0CE003")
19300^11^B16186512
1931"RTN","C0CE003",1,0)
1932 ;GT.M version of page ccr2 (patientportal application)
1933"RTN","C0CE003",2,0)
1934 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
1935"RTN","C0CE003",3,0)
1936 ;using Enterprise Web Developer (Build 790)
1937"RTN","C0CE003",4,0)
1938 QUIT
1939"RTN","C0CE003",5,0)
1940 ;
1941"RTN","C0CE003",6,0)
1942run ;
1943"RTN","C0CE003",7,0)
1944 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
1945"RTN","C0CE003",8,0)
1946 s ok=$$pre()
1947"RTN","C0CE003",9,0)
1948 i ok d body
1949"RTN","C0CE003",10,0)
1950 QUIT
1951"RTN","C0CE003",11,0)
1952 ;
1953"RTN","C0CE003",12,0)
1954pre() ;
1955"RTN","C0CE003",13,0)
1956 ;
1957"RTN","C0CE003",14,0)
1958 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
1959"RTN","C0CE003",15,0)
1960 ;
1961"RTN","C0CE003",16,0)
1962 s confirmText="Click OK if you're sure you want to delete this record"
1963"RTN","C0CE003",17,0)
1964 s sessionArray("ewd_isFirstPage")="0"
1965"RTN","C0CE003",18,0)
1966 s sessionArray("ewd_sessid_timeout")="1200"
1967"RTN","C0CE003",19,0)
1968 s sessionArray("ewd_prePageScript")=""
1969"RTN","C0CE003",20,0)
1970 s sessionArray("ewd_default_timeout")="1200"
1971"RTN","C0CE003",21,0)
1972 s sessionArray("ewd_persistRequest")="true"
1973"RTN","C0CE003",22,0)
1974 s sessionArray("ewd_pageTitle")=""
1975"RTN","C0CE003",23,0)
1976 s sessionArray("ewd_errorPage")="ewdError"
1977"RTN","C0CE003",24,0)
1978 s sessionArray("ewd_templatePrePageScript")=""
1979"RTN","C0CE003",25,0)
1980 s sessionArray("ewd_onErrorScript")=""
1981"RTN","C0CE003",26,0)
1982 s sessionArray("ewd_appName")="patientportal"
1983"RTN","C0CE003",27,0)
1984 s sessionArray("ewd_pageName")="ccr2"
1985"RTN","C0CE003",28,0)
1986 s sessionArray("ewd_translationMode")="0"
1987"RTN","C0CE003",29,0)
1988 s sessionArray("ewd_technology")="gtm"
1989"RTN","C0CE003",30,0)
1990 s sessionArray("ewd_pageType")=""
1991"RTN","C0CE003",31,0)
1992 s Error=$$startSession^%zewdPHP("ccr2",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
1993"RTN","C0CE003",32,0)
1994 s sessid=$g(sessionArray("ewd_sessid"))
1995"RTN","C0CE003",33,0)
1996 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
1997"RTN","C0CE003",34,0)
1998 . s Error=$p(Error,":",2,200)
1999"RTN","C0CE003",35,0)
2000 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
2001"RTN","C0CE003",36,0)
2002 . s Error="EWD runtime error: "_Error
2003"RTN","C0CE003",37,0)
2004 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
2005"RTN","C0CE003",38,0)
2006 . n errorPage
2007"RTN","C0CE003",39,0)
2008 . s errorPage=$g(sessionArray("ewd_errorPage"))
2009"RTN","C0CE003",40,0)
2010 . i errorPage="" s errorPage="ewdError"
2011"RTN","C0CE003",41,0)
2012 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
2013"RTN","C0CE003",42,0)
2014 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
2015"RTN","C0CE003",43,0)
2016 s stop=0
2017"RTN","C0CE003",44,0)
2018 i Error="" d i stop QUIT 0
2019"RTN","C0CE003",45,0)
2020 . n nextpage
2021"RTN","C0CE003",46,0)
2022 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
2023"RTN","C0CE003",47,0)
2024 . i nextpage'="" d
2025"RTN","C0CE003",48,0)
2026 . . n x
2027"RTN","C0CE003",49,0)
2028 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
2029"RTN","C0CE003",50,0)
2030 . . s stop=1
2031"RTN","C0CE003",51,0)
2032 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
2033"RTN","C0CE003",52,0)
2034 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
2035"RTN","C0CE003",53,0)
2036 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
2037"RTN","C0CE003",54,0)
2038 w "HTTP/1.1 200 OK"_$c(13,10)
2039"RTN","C0CE003",55,0)
2040 s ctype="text/html"
2041"RTN","C0CE003",56,0)
2042 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
2043"RTN","C0CE003",57,0)
2044 i $d(headers) d
2045"RTN","C0CE003",58,0)
2046 . n lcname,name
2047"RTN","C0CE003",59,0)
2048 . s name=""
2049"RTN","C0CE003",60,0)
2050 . f s name=$o(headers(name)) q:name="" d
2051"RTN","C0CE003",61,0)
2052 . . s lcname=$$zcvt^%zewdAPI(name,"l")
2053"RTN","C0CE003",62,0)
2054 . . i lcname="content-type" s ctype=headers(name) q
2055"RTN","C0CE003",63,0)
2056 . . w name_": "_headers(name)_$c(13,10)
2057"RTN","C0CE003",64,0)
2058 w "Content-type: "_ctype_$c(13,10)
2059"RTN","C0CE003",65,0)
2060 w $c(13,10)
2061"RTN","C0CE003",66,0)
2062 QUIT 1
2063"RTN","C0CE003",67,0)
2064 ;
2065"RTN","C0CE003",68,0)
2066body ;
2067"RTN","C0CE003",69,0)
2068 w "<html>"_$c(13,10)
2069"RTN","C0CE003",70,0)
2070 w " <body onload=""EWD.page.setErrorClass() ; EWD.page.errorMessage('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"')"">"_$c(13,10)
2071"RTN","C0CE003",71,0)
2072 w "hello world"_""
2073"RTN","C0CE003",72,0)
2074 w " </body>"_$c(13,10)
2075"RTN","C0CE003",73,0)
2076 w "</html>"_$c(13,10)
2077"RTN","C0CE003",74,0)
2078 QUIT
2079"RTN","C0CE004")
20800^6^B14049311
2081"RTN","C0CE004",1,0)
2082 ;GT.M version of page ccr-exe (patientportal application)
2083"RTN","C0CE004",2,0)
2084 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
2085"RTN","C0CE004",3,0)
2086 ;using Enterprise Web Developer (Build 790)
2087"RTN","C0CE004",4,0)
2088 QUIT
2089"RTN","C0CE004",5,0)
2090 ;
2091"RTN","C0CE004",6,0)
2092run ;
2093"RTN","C0CE004",7,0)
2094 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
2095"RTN","C0CE004",8,0)
2096 s ok=$$pre()
2097"RTN","C0CE004",9,0)
2098 i ok d body
2099"RTN","C0CE004",10,0)
2100 QUIT
2101"RTN","C0CE004",11,0)
2102 ;
2103"RTN","C0CE004",12,0)
2104pre() ;
2105"RTN","C0CE004",13,0)
2106 ;
2107"RTN","C0CE004",14,0)
2108 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
2109"RTN","C0CE004",15,0)
2110 ;
2111"RTN","C0CE004",16,0)
2112 s confirmText="Click OK if you're sure you want to delete this record"
2113"RTN","C0CE004",17,0)
2114 s sessionArray("ewd_isFirstPage")="0"
2115"RTN","C0CE004",18,0)
2116 s sessionArray("ewd_sessid_timeout")="1200"
2117"RTN","C0CE004",19,0)
2118 s sessionArray("ewd_prePageScript")=""
2119"RTN","C0CE004",20,0)
2120 s sessionArray("ewd_default_timeout")="1200"
2121"RTN","C0CE004",21,0)
2122 s sessionArray("ewd_persistRequest")="true"
2123"RTN","C0CE004",22,0)
2124 s sessionArray("ewd_pageTitle")=""
2125"RTN","C0CE004",23,0)
2126 s sessionArray("ewd_errorPage")="ewdError"
2127"RTN","C0CE004",24,0)
2128 s sessionArray("ewd_templatePrePageScript")=""
2129"RTN","C0CE004",25,0)
2130 s sessionArray("ewd_onErrorScript")=""
2131"RTN","C0CE004",26,0)
2132 s sessionArray("ewd_appName")="patientportal"
2133"RTN","C0CE004",27,0)
2134 s sessionArray("ewd_pageName")="ccr-exe"
2135"RTN","C0CE004",28,0)
2136 s sessionArray("ewd_translationMode")="0"
2137"RTN","C0CE004",29,0)
2138 s sessionArray("ewd_technology")="gtm"
2139"RTN","C0CE004",30,0)
2140 s sessionArray("ewd_pageType")=""
2141"RTN","C0CE004",31,0)
2142 s Error=$$startSession^%zewdPHP("ccr-exe",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
2143"RTN","C0CE004",32,0)
2144 s sessid=$g(sessionArray("ewd_sessid"))
2145"RTN","C0CE004",33,0)
2146 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
2147"RTN","C0CE004",34,0)
2148 . s Error=$p(Error,":",2,200)
2149"RTN","C0CE004",35,0)
2150 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
2151"RTN","C0CE004",36,0)
2152 . s Error="EWD runtime error: "_Error
2153"RTN","C0CE004",37,0)
2154 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
2155"RTN","C0CE004",38,0)
2156 . n errorPage
2157"RTN","C0CE004",39,0)
2158 . s errorPage=$g(sessionArray("ewd_errorPage"))
2159"RTN","C0CE004",40,0)
2160 . i errorPage="" s errorPage="ewdError"
2161"RTN","C0CE004",41,0)
2162 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
2163"RTN","C0CE004",42,0)
2164 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
2165"RTN","C0CE004",43,0)
2166 s stop=0
2167"RTN","C0CE004",44,0)
2168 i Error="" d i stop QUIT 0
2169"RTN","C0CE004",45,0)
2170 . n nextpage
2171"RTN","C0CE004",46,0)
2172 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
2173"RTN","C0CE004",47,0)
2174 . i nextpage'="" d
2175"RTN","C0CE004",48,0)
2176 . . n x
2177"RTN","C0CE004",49,0)
2178 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
2179"RTN","C0CE004",50,0)
2180 . . s stop=1
2181"RTN","C0CE004",51,0)
2182 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
2183"RTN","C0CE004",52,0)
2184 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
2185"RTN","C0CE004",53,0)
2186 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
2187"RTN","C0CE004",54,0)
2188 w "HTTP/1.1 200 OK"_$c(13,10)
2189"RTN","C0CE004",55,0)
2190 s ctype="text/html"
2191"RTN","C0CE004",56,0)
2192 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
2193"RTN","C0CE004",57,0)
2194 i $d(headers) d
2195"RTN","C0CE004",58,0)
2196 . n lcname,name
2197"RTN","C0CE004",59,0)
2198 . s name=""
2199"RTN","C0CE004",60,0)
2200 . f s name=$o(headers(name)) q:name="" d
2201"RTN","C0CE004",61,0)
2202 . . s lcname=$$zcvt^%zewdAPI(name,"l")
2203"RTN","C0CE004",62,0)
2204 . . i lcname="content-type" s ctype=headers(name) q
2205"RTN","C0CE004",63,0)
2206 . . w name_": "_headers(name)_$c(13,10)
2207"RTN","C0CE004",64,0)
2208 w "Content-type: "_ctype_$c(13,10)
2209"RTN","C0CE004",65,0)
2210 w $c(13,10)
2211"RTN","C0CE004",66,0)
2212 QUIT 1
2213"RTN","C0CE004",67,0)
2214 ;
2215"RTN","C0CE004",68,0)
2216body ;
2217"RTN","C0CE004",69,0)
2218 d gpltest^RICHEWDTEST("")
2219"RTN","C0CE004",70,0)
2220 QUIT
2221"RTN","C0CE005")
22220^12^B80810317
2223"RTN","C0CE005",1,0)
2224 ;GT.M version of page Second (patientportal application)
2225"RTN","C0CE005",2,0)
2226 ;Compiled on Sun, 28 Feb 2010 21:37:56;;;;;Build 1
2227"RTN","C0CE005",3,0)
2228 ;using Enterprise Web Developer (Build 790)
2229"RTN","C0CE005",4,0)
2230 QUIT
2231"RTN","C0CE005",5,0)
2232 ;
2233"RTN","C0CE005",6,0)
2234run ;
2235"RTN","C0CE005",7,0)
2236 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
2237"RTN","C0CE005",8,0)
2238 s ok=$$pre()
2239"RTN","C0CE005",9,0)
2240 i ok d body
2241"RTN","C0CE005",10,0)
2242 QUIT
2243"RTN","C0CE005",11,0)
2244 ;
2245"RTN","C0CE005",12,0)
2246pre() ;
2247"RTN","C0CE005",13,0)
2248 ;
2249"RTN","C0CE005",14,0)
2250 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
2251"RTN","C0CE005",15,0)
2252 ;
2253"RTN","C0CE005",16,0)
2254 s confirmText="Click OK if you're sure you want to delete this record"
2255"RTN","C0CE005",17,0)
2256 s sessionArray("ewd_isFirstPage")="0"
2257"RTN","C0CE005",18,0)
2258 s sessionArray("ewd_sessid_timeout")="1200"
2259"RTN","C0CE005",19,0)
2260 s sessionArray("ewd_prePageScript")=""
2261"RTN","C0CE005",20,0)
2262 s sessionArray("ewd_default_timeout")="1200"
2263"RTN","C0CE005",21,0)
2264 s sessionArray("ewd_persistRequest")="true"
2265"RTN","C0CE005",22,0)
2266 s sessionArray("ewd_pageTitle")=""
2267"RTN","C0CE005",23,0)
2268 s sessionArray("ewd_errorPage")="ewdError"
2269"RTN","C0CE005",24,0)
2270 s sessionArray("ewd_templatePrePageScript")=""
2271"RTN","C0CE005",25,0)
2272 s sessionArray("ewd_onErrorScript")=""
2273"RTN","C0CE005",26,0)
2274 s sessionArray("ewd_appName")="patientportal"
2275"RTN","C0CE005",27,0)
2276 s sessionArray("ewd_pageName")="Second"
2277"RTN","C0CE005",28,0)
2278 s sessionArray("ewd_translationMode")="0"
2279"RTN","C0CE005",29,0)
2280 s sessionArray("ewd_technology")="gtm"
2281"RTN","C0CE005",30,0)
2282 s sessionArray("ewd_pageType")=""
2283"RTN","C0CE005",31,0)
2284 s tokens("First")=$$setNextPageToken^%zewdGTMRuntime("First")
2285"RTN","C0CE005",32,0)
2286 s tokens("session")=$$setNextPageToken^%zewdGTMRuntime("session")
2287"RTN","C0CE005",33,0)
2288 s ebToken("setErrorClasses^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("setErrorClasses^%zewdAPI",.sessionArray)
2289"RTN","C0CE005",34,0)
2290 s ebToken("saveJSON^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("saveJSON^%zewdAPI",.sessionArray)
2291"RTN","C0CE005",35,0)
2292 s ebToken("getJSON^%zewdCompiler13")=$$createEBToken^%zewdGTMRuntime("getJSON^%zewdCompiler13",.sessionArray)
2293"RTN","C0CE005",36,0)
2294 s ebToken("mergeToJSObject^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("mergeToJSObject^%zewdAPI",.sessionArray)
2295"RTN","C0CE005",37,0)
2296 s Error=$$startSession^%zewdPHP("Second",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
2297"RTN","C0CE005",38,0)
2298 s sessid=$g(sessionArray("ewd_sessid"))
2299"RTN","C0CE005",39,0)
2300 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
2301"RTN","C0CE005",40,0)
2302 . s Error=$p(Error,":",2,200)
2303"RTN","C0CE005",41,0)
2304 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
2305"RTN","C0CE005",42,0)
2306 . s Error="EWD runtime error: "_Error
2307"RTN","C0CE005",43,0)
2308 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
2309"RTN","C0CE005",44,0)
2310 . n errorPage
2311"RTN","C0CE005",45,0)
2312 . s errorPage=$g(sessionArray("ewd_errorPage"))
2313"RTN","C0CE005",46,0)
2314 . i errorPage="" s errorPage="ewdError"
2315"RTN","C0CE005",47,0)
2316 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
2317"RTN","C0CE005",48,0)
2318 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
2319"RTN","C0CE005",49,0)
2320 s stop=0
2321"RTN","C0CE005",50,0)
2322 i Error="" d i stop QUIT 0
2323"RTN","C0CE005",51,0)
2324 . n nextpage
2325"RTN","C0CE005",52,0)
2326 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
2327"RTN","C0CE005",53,0)
2328 . i nextpage'="" d
2329"RTN","C0CE005",54,0)
2330 . . n x
2331"RTN","C0CE005",55,0)
2332 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
2333"RTN","C0CE005",56,0)
2334 . . s stop=1
2335"RTN","C0CE005",57,0)
2336 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
2337"RTN","C0CE005",58,0)
2338 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
2339"RTN","C0CE005",59,0)
2340 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
2341"RTN","C0CE005",60,0)
2342 w "HTTP/1.1 200 OK"_$c(13,10)
2343"RTN","C0CE005",61,0)
2344 s ctype="text/html"
2345"RTN","C0CE005",62,0)
2346 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
2347"RTN","C0CE005",63,0)
2348 i $d(headers) d
2349"RTN","C0CE005",64,0)
2350 . n lcname,name
2351"RTN","C0CE005",65,0)
2352 . s name=""
2353"RTN","C0CE005",66,0)
2354 . f s name=$o(headers(name)) q:name="" d
2355"RTN","C0CE005",67,0)
2356 . . s lcname=$$zcvt^%zewdAPI(name,"l")
2357"RTN","C0CE005",68,0)
2358 . . i lcname="content-type" s ctype=headers(name) q
2359"RTN","C0CE005",69,0)
2360 . . w name_": "_headers(name)_$c(13,10)
2361"RTN","C0CE005",70,0)
2362 w "Content-type: "_ctype_$c(13,10)
2363"RTN","C0CE005",71,0)
2364 w $c(13,10)
2365"RTN","C0CE005",72,0)
2366 QUIT 1
2367"RTN","C0CE005",73,0)
2368 ;
2369"RTN","C0CE005",74,0)
2370body ;
2371"RTN","C0CE005",75,0)
2372 w "<html>"_$c(13,10)
2373"RTN","C0CE005",76,0)
2374 w " <head>"_$c(13,10)
2375"RTN","C0CE005",77,0)
2376 w " <link href=""/resources/ewd.css"" rel=""stylesheet"" type=""text/css"" />"_$c(13,10)
2377"RTN","C0CE005",78,0)
2378 w " <script src=""/resources/ewdScripts.js"">"_$c(13,10)
2379"RTN","C0CE005",79,0)
2380 w "</script>"_$c(13,10)
2381"RTN","C0CE005",80,0)
2382 w " <title>"_$c(13,10)
2383"RTN","C0CE005",81,0)
2384 w "The second EWD Page"_""
2385"RTN","C0CE005",82,0)
2386 w " </title>"_$c(13,10)
2387"RTN","C0CE005",83,0)
2388 w " <script language=""javascript"">"_$c(13,10)
2389"RTN","C0CE005",84,0)
2390 w ""_$c(13,10)
2391"RTN","C0CE005",85,0)
2392 w " function goBack() {"_$c(13,10)
2393"RTN","C0CE005",86,0)
2394 w " document.location = '/ewd/patientportal/First.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("First")_"' ;"_$c(13,10)
2395"RTN","C0CE005",87,0)
2396 w " }"_$c(13,10)
2397"RTN","C0CE005",88,0)
2398 w " "_""
2399"RTN","C0CE005",89,0)
2400 w " </script>"_$c(13,10)
2401"RTN","C0CE005",90,0)
2402 w " <script language=""javascript"">"_$c(13,10)
2403"RTN","C0CE005",91,0)
2404 w " EWD.page.confirmText='"_$$jsEscape^%zewdGTMRuntime(confirmText)_"' ;"_$c(13,10)
2405"RTN","C0CE005",92,0)
2406 w " EWD.page.setOnSubmit = function(obj,confirmText) { "_$c(13,10)
2407"RTN","C0CE005",93,0)
2408 w " str='return EWD.page.displayConfirm(""' + confirmText+ '"")' ;"_$c(13,10)
2409"RTN","C0CE005",94,0)
2410 w " obj.form.onsubmit=new Function(str) ;"_$c(13,10)
2411"RTN","C0CE005",95,0)
2412 w " } ;"_$c(13,10)
2413"RTN","C0CE005",96,0)
2414 w " EWD.page.setErrorClass = function () { "_$c(13,10)
2415"RTN","C0CE005",97,0)
2416 w " if ('"_$$getSessionValue^%zewdAPI("ewd_hasErrors",sessid)_"' == '1') {"_$c(13,10)
2417"RTN","C0CE005",98,0)
2418 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("setErrorClasses^%zewdAPI")_"','','synch','','') ;"_$c(13,10)
2419"RTN","C0CE005",99,0)
2420 w " }"_$c(13,10)
2421"RTN","C0CE005",100,0)
2422 w " } ;"_$c(13,10)
2423"RTN","C0CE005",101,0)
2424 w " EWD.utils.putObjectToSession = function (objName) { "_$c(13,10)
2425"RTN","C0CE005",102,0)
2426 w " var json,x ;"_$c(13,10)
2427"RTN","C0CE005",103,0)
2428 w " if (typeof(dojo) != ""undefined"") {"_$c(13,10)
2429"RTN","C0CE005",104,0)
2430 w " x = ""json = dojo.toJson("" + objName + "")"" ;"_$c(13,10)
2431"RTN","C0CE005",105,0)
2432 w " eval(x) ;"_$c(13,10)
2433"RTN","C0CE005",106,0)
2434 w " }"_$c(13,10)
2435"RTN","C0CE005",107,0)
2436 w " else {"_$c(13,10)
2437"RTN","C0CE005",108,0)
2438 w " //x = ""json="" + objName + "".toJSONString()"" ;"_$c(13,10)
2439"RTN","C0CE005",109,0)
2440 w " //eval(x) ;"_$c(13,10)
2441"RTN","C0CE005",110,0)
2442 w " x = ""json=toJsonString("" + objName + "");"" ;"_$c(13,10)
2443"RTN","C0CE005",111,0)
2444 w " eval(x) ;"_$c(13,10)
2445"RTN","C0CE005",112,0)
2446 w " //json=toJsonString(objName);"_$c(13,10)
2447"RTN","C0CE005",113,0)
2448 w " }"_$c(13,10)
2449"RTN","C0CE005",114,0)
2450 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("saveJSON^%zewdAPI")_"&px1=' + objName + '&px2=' + json + '','','synch','','') ;"_$c(13,10)
2451"RTN","C0CE005",115,0)
2452 w " } ;"_$c(13,10)
2453"RTN","C0CE005",116,0)
2454 w " EWD.utils.getObjectFromSession = function (objName, refresh, addRefCol) { "_$c(13,10)
2455"RTN","C0CE005",117,0)
2456 w " if (refresh) {"_$c(13,10)
2457"RTN","C0CE005",118,0)
2458 w " eval(""delete("" + objName + "") ;"") ;"_$c(13,10)
2459"RTN","C0CE005",119,0)
2460 w " var objExists = ""undefined"" ;"_$c(13,10)
2461"RTN","C0CE005",120,0)
2462 w " }"_$c(13,10)
2463"RTN","C0CE005",121,0)
2464 w " else {"_$c(13,10)
2465"RTN","C0CE005",122,0)
2466 w " var x = ""var objExists = typeof("" + objName + "");"" ;"_$c(13,10)
2467"RTN","C0CE005",123,0)
2468 w " eval(x) ;"_$c(13,10)
2469"RTN","C0CE005",124,0)
2470 w " }"_$c(13,10)
2471"RTN","C0CE005",125,0)
2472 w " if (objExists == ""undefined"") {"_$c(13,10)
2473"RTN","C0CE005",126,0)
2474 w " var addRef = 0 ;"_$c(13,10)
2475"RTN","C0CE005",127,0)
2476 w " if (addRefCol) addRef = 1;"_$c(13,10)
2477"RTN","C0CE005",128,0)
2478 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("getJSON^%zewdCompiler13")_"&px1=' + objName + '&px2=' + addRef + '','','synch','','') ;"_$c(13,10)
2479"RTN","C0CE005",129,0)
2480 w ""_""
2481"RTN","C0CE005",130,0)
2482 w " };"_$c(13,10)
2483"RTN","C0CE005",131,0)
2484 w " } ;"_$c(13,10)
2485"RTN","C0CE005",132,0)
2486 w " EWD.utils.mergeObjectFromSession = function (sessionName,JSObjName) { "_$c(13,10)
2487"RTN","C0CE005",133,0)
2488 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("mergeToJSObject^%zewdAPI")_"&px1=' + sessionName + '&px2=' + JSObjName + '','','synch','','') ;"_$c(13,10)
2489"RTN","C0CE005",134,0)
2490 w " } ;"_$c(13,10)
2491"RTN","C0CE005",135,0)
2492 w ""_""
2493"RTN","C0CE005",136,0)
2494 w " </script>"_$c(13,10)
2495"RTN","C0CE005",137,0)
2496 w " </head>"_$c(13,10)
2497"RTN","C0CE005",138,0)
2498 w " <body onload=""EWD.page.setErrorClass() ; EWD.page.errorMessage('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"')"">"_$c(13,10)
2499"RTN","C0CE005",139,0)
2500 w " <h3>"_$c(13,10)
2501"RTN","C0CE005",140,0)
2502 w "This page is not a ""first"" page"_""
2503"RTN","C0CE005",141,0)
2504 w " </h3>"_$c(13,10)
2505"RTN","C0CE005",142,0)
2506 w " <div>"_$c(13,10)
2507"RTN","C0CE005",143,0)
2508 w "It can only be accessed via a"_""
2509"RTN","C0CE005",144,0)
2510 w " <a href='/ewd/patientportal/session.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("session")_"&ewd_urlNo=Second1'>"_$c(13,10)
2511"RTN","C0CE005",145,0)
2512 w "tokenised link"_""
2513"RTN","C0CE005",146,0)
2514 w " </a>"_$c(13,10)
2515"RTN","C0CE005",147,0)
2516 w "generated by EWD"_""
2517"RTN","C0CE005",148,0)
2518 w " </div>"_$c(13,10)
2519"RTN","C0CE005",149,0)
2520 w " <div>"_$c(13,10)
2521"RTN","C0CE005",150,0)
2522 w " <input back""='back""' id=""ewdUnnamed25"" onclick=""goBack()"" type=""button name="" value=""Go Back to First Page"" />"_$c(13,10)
2523"RTN","C0CE005",151,0)
2524 w " </div>"_$c(13,10)
2525"RTN","C0CE005",152,0)
2526 w " </body>"_$c(13,10)
2527"RTN","C0CE005",153,0)
2528 w "</html>"_$c(13,10)
2529"RTN","C0CE005",154,0)
2530 QUIT
2531"RTN","C0CE006")
25320^7^B77594981
2533"RTN","C0CE006",1,0)
2534 ;GT.M version of page session (patientportal application)
2535"RTN","C0CE006",2,0)
2536 ;Compiled on Sun, 28 Feb 2010 21:40:03;;;;;Build 1
2537"RTN","C0CE006",3,0)
2538 ;using Enterprise Web Developer (Build 790)
2539"RTN","C0CE006",4,0)
2540 QUIT
2541"RTN","C0CE006",5,0)
2542 ;
2543"RTN","C0CE006",6,0)
2544run ;
2545"RTN","C0CE006",7,0)
2546 n confirmText,ebToken,Error,formInfo,ok,sessid,sessionArray,tokens
2547"RTN","C0CE006",8,0)
2548 s ok=$$pre()
2549"RTN","C0CE006",9,0)
2550 i ok d body
2551"RTN","C0CE006",10,0)
2552 QUIT
2553"RTN","C0CE006",11,0)
2554 ;
2555"RTN","C0CE006",12,0)
2556pre() ;
2557"RTN","C0CE006",13,0)
2558 ;
2559"RTN","C0CE006",14,0)
2560 n ctype,ewdAction,headers,jump,quitStatus,pageTitle,stop,urlNo
2561"RTN","C0CE006",15,0)
2562 ;
2563"RTN","C0CE006",16,0)
2564 s confirmText="Click OK if you're sure you want to delete this record"
2565"RTN","C0CE006",17,0)
2566 s sessionArray("ewd_isFirstPage")="0"
2567"RTN","C0CE006",18,0)
2568 s sessionArray("ewd_sessid_timeout")="1200"
2569"RTN","C0CE006",19,0)
2570 s sessionArray("ewd_prePageScript")="TEST^RICHEWDTEST"
2571"RTN","C0CE006",20,0)
2572 s sessionArray("ewd_default_timeout")="1200"
2573"RTN","C0CE006",21,0)
2574 s sessionArray("ewd_persistRequest")="true"
2575"RTN","C0CE006",22,0)
2576 s sessionArray("ewd_pageTitle")=""
2577"RTN","C0CE006",23,0)
2578 s sessionArray("ewd_errorPage")="ewdError"
2579"RTN","C0CE006",24,0)
2580 s sessionArray("ewd_templatePrePageScript")=""
2581"RTN","C0CE006",25,0)
2582 s sessionArray("ewd_onErrorScript")=""
2583"RTN","C0CE006",26,0)
2584 s sessionArray("ewd_appName")="patientportal"
2585"RTN","C0CE006",27,0)
2586 s sessionArray("ewd_pageName")="session"
2587"RTN","C0CE006",28,0)
2588 s sessionArray("ewd_translationMode")="0"
2589"RTN","C0CE006",29,0)
2590 s sessionArray("ewd_technology")="gtm"
2591"RTN","C0CE006",30,0)
2592 s sessionArray("ewd_pageType")=""
2593"RTN","C0CE006",31,0)
2594 s tokens("login")=$$setNextPageToken^%zewdGTMRuntime("login")
2595"RTN","C0CE006",32,0)
2596 s ebToken("setErrorClasses^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("setErrorClasses^%zewdAPI",.sessionArray)
2597"RTN","C0CE006",33,0)
2598 s ebToken("saveJSON^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("saveJSON^%zewdAPI",.sessionArray)
2599"RTN","C0CE006",34,0)
2600 s ebToken("getJSON^%zewdCompiler13")=$$createEBToken^%zewdGTMRuntime("getJSON^%zewdCompiler13",.sessionArray)
2601"RTN","C0CE006",35,0)
2602 s ebToken("mergeToJSObject^%zewdAPI")=$$createEBToken^%zewdGTMRuntime("mergeToJSObject^%zewdAPI",.sessionArray)
2603"RTN","C0CE006",36,0)
2604 s Error=$$startSession^%zewdPHP("session",.%KEY,.%CGIEVAR,.sessionArray,.filesArray)
2605"RTN","C0CE006",37,0)
2606 s sessid=$g(sessionArray("ewd_sessid"))
2607"RTN","C0CE006",38,0)
2608 i Error["Enterprise Web Developer Error :",$g(sessionArray("ewd_pageType"))="ajax" d
2609"RTN","C0CE006",39,0)
2610 . s Error=$p(Error,":",2,200)
2611"RTN","C0CE006",40,0)
2612 . s Error=$$replaceAll^%zewdAPI(Error,"<br>",": ")
2613"RTN","C0CE006",41,0)
2614 . s Error="EWD runtime error: "_Error
2615"RTN","C0CE006",42,0)
2616 i $e(Error,1,32)="Enterprise Web Developer Error :" d QUIT 0
2617"RTN","C0CE006",43,0)
2618 . n errorPage
2619"RTN","C0CE006",44,0)
2620 . s errorPage=$g(sessionArray("ewd_errorPage"))
2621"RTN","C0CE006",45,0)
2622 . i errorPage="" s errorPage="ewdError"
2623"RTN","C0CE006",46,0)
2624 . i $g(sessionArray("ewd_pageType"))="ajax" s errorPage="ewdAjaxErrorRedirect"
2625"RTN","C0CE006",47,0)
2626 . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),errorPage,,,sessid,Error)
2627"RTN","C0CE006",48,0)
2628 s stop=0
2629"RTN","C0CE006",49,0)
2630 i Error="" d i stop QUIT 0
2631"RTN","C0CE006",50,0)
2632 . n nextpage
2633"RTN","C0CE006",51,0)
2634 . s nextpage=$$getSessionValue^%zewdAPI("ewd_nextPage",sessid)
2635"RTN","C0CE006",52,0)
2636 . i nextpage'="" d
2637"RTN","C0CE006",53,0)
2638 . . n x
2639"RTN","C0CE006",54,0)
2640 . . d writeHTTPHeader^%zewdGTMRuntime(sessionArray("ewd_appName"),nextpage,$$getSessionValue^%zewdAPI("ewd_token",sessid),$$getSessionValue^%zewdAPI("ewd_pageToken",sessid))
2641"RTN","C0CE006",55,0)
2642 . . s stop=1
2643"RTN","C0CE006",56,0)
2644 i $$getSessionValue^%zewdAPI("ewd_warning",sessid)'="" d
2645"RTN","C0CE006",57,0)
2646 . s Error=$$getSessionValue^%zewdAPI("ewd_warning",sessid)
2647"RTN","C0CE006",58,0)
2648 . d deleteFromSession^%zewdAPI("ewd_warning",sessid)
2649"RTN","C0CE006",59,0)
2650 w "HTTP/1.1 200 OK"_$c(13,10)
2651"RTN","C0CE006",60,0)
2652 s ctype="text/html"
2653"RTN","C0CE006",61,0)
2654 d mergeArrayFromSession^%zewdAPI(.headers,"ewd.header",sessid)
2655"RTN","C0CE006",62,0)
2656 i $d(headers) d
2657"RTN","C0CE006",63,0)
2658 . n lcname,name
2659"RTN","C0CE006",64,0)
2660 . s name=""
2661"RTN","C0CE006",65,0)
2662 . f s name=$o(headers(name)) q:name="" d
2663"RTN","C0CE006",66,0)
2664 . . s lcname=$$zcvt^%zewdAPI(name,"l")
2665"RTN","C0CE006",67,0)
2666 . . i lcname="content-type" s ctype=headers(name) q
2667"RTN","C0CE006",68,0)
2668 . . w name_": "_headers(name)_$c(13,10)
2669"RTN","C0CE006",69,0)
2670 w "Content-type: "_ctype_$c(13,10)
2671"RTN","C0CE006",70,0)
2672 w $c(13,10)
2673"RTN","C0CE006",71,0)
2674 QUIT 1
2675"RTN","C0CE006",72,0)
2676 ;
2677"RTN","C0CE006",73,0)
2678body ;
2679"RTN","C0CE006",74,0)
2680 w "<html>"_$c(13,10)
2681"RTN","C0CE006",75,0)
2682 w " <head>"_$c(13,10)
2683"RTN","C0CE006",76,0)
2684 w " <link href=""/resources/ewd.css"" rel=""stylesheet"" type=""text/css"" />"_$c(13,10)
2685"RTN","C0CE006",77,0)
2686 w " <script src=""/resources/ewdScripts.js"">"_$c(13,10)
2687"RTN","C0CE006",78,0)
2688 w "</script>"_$c(13,10)
2689"RTN","C0CE006",79,0)
2690 w " <title>"_$c(13,10)
2691"RTN","C0CE006",80,0)
2692 w "EWD Page using Session Variables and a PrePage Script"_""
2693"RTN","C0CE006",81,0)
2694 w " </title>"_$c(13,10)
2695"RTN","C0CE006",82,0)
2696 w " <script language=""javascript"">"_$c(13,10)
2697"RTN","C0CE006",83,0)
2698 w ""_$c(13,10)
2699"RTN","C0CE006",84,0)
2700 w " eval('"_$$getSessionValue^%zewdAPI("json",sessid)_"');"_$c(13,10)
2701"RTN","C0CE006",85,0)
2702 w " //eval('"_$$getSessionValue^%zewdAPI("json",sessid)_"') ;"_$c(13,10)
2703"RTN","C0CE006",86,0)
2704 w " alert('hello ' + person.Address.Name) ;"_$c(13,10)
2705"RTN","C0CE006",87,0)
2706 w " "_""
2707"RTN","C0CE006",88,0)
2708 w " </script>"_$c(13,10)
2709"RTN","C0CE006",89,0)
2710 w " <script language=""javascript"">"_$c(13,10)
2711"RTN","C0CE006",90,0)
2712 w " EWD.page.confirmText='"_$$jsEscape^%zewdGTMRuntime(confirmText)_"' ;"_$c(13,10)
2713"RTN","C0CE006",91,0)
2714 w " EWD.page.setOnSubmit = function(obj,confirmText) { "_$c(13,10)
2715"RTN","C0CE006",92,0)
2716 w " str='return EWD.page.displayConfirm(""' + confirmText+ '"")' ;"_$c(13,10)
2717"RTN","C0CE006",93,0)
2718 w " obj.form.onsubmit=new Function(str) ;"_$c(13,10)
2719"RTN","C0CE006",94,0)
2720 w " } ;"_$c(13,10)
2721"RTN","C0CE006",95,0)
2722 w " EWD.page.setErrorClass = function () { "_$c(13,10)
2723"RTN","C0CE006",96,0)
2724 w " if ('"_$$getSessionValue^%zewdAPI("ewd_hasErrors",sessid)_"' == '1') {"_$c(13,10)
2725"RTN","C0CE006",97,0)
2726 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("setErrorClasses^%zewdAPI")_"','','synch','','') ;"_$c(13,10)
2727"RTN","C0CE006",98,0)
2728 w " }"_$c(13,10)
2729"RTN","C0CE006",99,0)
2730 w " } ;"_$c(13,10)
2731"RTN","C0CE006",100,0)
2732 w " EWD.utils.putObjectToSession = function (objName) { "_$c(13,10)
2733"RTN","C0CE006",101,0)
2734 w " var json,x ;"_$c(13,10)
2735"RTN","C0CE006",102,0)
2736 w " if (typeof(dojo) != ""undefined"") {"_$c(13,10)
2737"RTN","C0CE006",103,0)
2738 w " x = ""json = dojo.toJson("" + objName + "")"" ;"_$c(13,10)
2739"RTN","C0CE006",104,0)
2740 w " eval(x) ;"_$c(13,10)
2741"RTN","C0CE006",105,0)
2742 w " }"_$c(13,10)
2743"RTN","C0CE006",106,0)
2744 w " else {"_$c(13,10)
2745"RTN","C0CE006",107,0)
2746 w " //x = ""json="" + objName + "".toJSONString()"" ;"_$c(13,10)
2747"RTN","C0CE006",108,0)
2748 w " //eval(x) ;"_$c(13,10)
2749"RTN","C0CE006",109,0)
2750 w " x = ""json=toJsonString("" + objName + "");"" ;"_$c(13,10)
2751"RTN","C0CE006",110,0)
2752 w " eval(x) ;"_$c(13,10)
2753"RTN","C0CE006",111,0)
2754 w " //json=toJsonString(objName);"_$c(13,10)
2755"RTN","C0CE006",112,0)
2756 w " }"_$c(13,10)
2757"RTN","C0CE006",113,0)
2758 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("saveJSON^%zewdAPI")_"&px1=' + objName + '&px2=' + json + '','','synch','','') ;"_$c(13,10)
2759"RTN","C0CE006",114,0)
2760 w " } ;"_$c(13,10)
2761"RTN","C0CE006",115,0)
2762 w " EWD.utils.getObjectFromSession = function (objName, refresh, addRefCol) { "_$c(13,10)
2763"RTN","C0CE006",116,0)
2764 w " if (refresh) {"_$c(13,10)
2765"RTN","C0CE006",117,0)
2766 w " eval(""delete("" + objName + "") ;"") ;"_$c(13,10)
2767"RTN","C0CE006",118,0)
2768 w " var objExists = ""undefined"" ;"_$c(13,10)
2769"RTN","C0CE006",119,0)
2770 w " }"_$c(13,10)
2771"RTN","C0CE006",120,0)
2772 w " else {"_$c(13,10)
2773"RTN","C0CE006",121,0)
2774 w " var x = ""var objExists = typeof("" + objName + "");"" ;"_$c(13,10)
2775"RTN","C0CE006",122,0)
2776 w " eval(x) ;"_$c(13,10)
2777"RTN","C0CE006",123,0)
2778 w " }"_$c(13,10)
2779"RTN","C0CE006",124,0)
2780 w " if (objExists == ""undefined"") {"_$c(13,10)
2781"RTN","C0CE006",125,0)
2782 w " var addRef = 0 ;"_$c(13,10)
2783"RTN","C0CE006",126,0)
2784 w " if (addRefCol) addRef = 1;"_$c(13,10)
2785"RTN","C0CE006",127,0)
2786 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("getJSON^%zewdCompiler13")_"&px1=' + objName + '&px2=' + addRef + '','','synch','','') ;"_$c(13,10)
2787"RTN","C0CE006",128,0)
2788 w ""_""
2789"RTN","C0CE006",129,0)
2790 w " };"_$c(13,10)
2791"RTN","C0CE006",130,0)
2792 w " } ;"_$c(13,10)
2793"RTN","C0CE006",131,0)
2794 w " EWD.utils.mergeObjectFromSession = function (sessionName,JSObjName) { "_$c(13,10)
2795"RTN","C0CE006",132,0)
2796 w " EWD.ajax.makeRequest('"_$$getRootURL^%zewdCompiler("gtm")_"ewdeb/eb.mgwsi?ewd_token="_$$getSessionValue^%zewdAPI("ewd_token",sessid)_"&eb="_ebToken("mergeToJSObject^%zewdAPI")_"&px1=' + sessionName + '&px2=' + JSObjName + '','','synch','','') ;"_$c(13,10)
2797"RTN","C0CE006",133,0)
2798 w " } ;"_$c(13,10)
2799"RTN","C0CE006",134,0)
2800 w ""_""
2801"RTN","C0CE006",135,0)
2802 w " </script>"_$c(13,10)
2803"RTN","C0CE006",136,0)
2804 w " </head>"_$c(13,10)
2805"RTN","C0CE006",137,0)
2806 w " <body onload=""EWD.page.setErrorClass() ; EWD.page.errorMessage('"_$$htmlEscape^%zewdGTMRuntime($$jsEscape^%zewdGTMRuntime(Error))_"')"">"_$c(13,10)
2807"RTN","C0CE006",138,0)
2808 w " <h3>"_$c(13,10)
2809"RTN","C0CE006",139,0)
2810 w "This page accesses EWD Session Variables"_""
2811"RTN","C0CE006",140,0)
2812 w " </h3>"_$c(13,10)
2813"RTN","C0CE006",141,0)
2814 w " <div>"_$c(13,10)
2815"RTN","C0CE006",142,0)
2816 w "Name: "_$$getSessionValue^%zewdAPI("person.Name",sessid)
2817"RTN","C0CE006",143,0)
2818 w " </div>"_$c(13,10)
2819"RTN","C0CE006",144,0)
2820 w " <div>"_$c(13,10)
2821"RTN","C0CE006",145,0)
2822 w "Goto"_""
2823"RTN","C0CE006",146,0)
2824 w " <a href='/ewd/patientportal/login.mgwsi?ewd_token="_$g(^%zewdSession("session",sessid,"ewd_token"))_"&n="_tokens("login")_"&ewd_urlNo=session1'>"_$c(13,10)
2825"RTN","C0CE006",147,0)
2826 w "next page"_""
2827"RTN","C0CE006",148,0)
2828 w " </a>"_$c(13,10)
2829"RTN","C0CE006",149,0)
2830 w " </div>"_$c(13,10)
2831"RTN","C0CE006",150,0)
2832 w " </body>"_$c(13,10)
2833"RTN","C0CE006",151,0)
2834 w "</html>"_$c(13,10)
2835"RTN","C0CE006",152,0)
2836 QUIT
2837"RTN","C0CEX")
28380^1^B651037
2839"RTN","C0CEX",1,0)
2840C0CEX ; CCDCCR/GPL - C0E ROUTINE FOR ^zewd GLOBAL; 3/1/10
2841"RTN","C0CEX",2,0)
2842 ;;1.0;C0C;;Mar 1, 2010 ;Build 1
2843"RTN","C0CEX",3,0)
2844SETZEWD(ZROUTINE,ZAPP,ZPAGE) ;USED BY THE ZEWD CROSS REFERENCE TO
2845"RTN","C0CEX",4,0)
2846 ; SET THE ^zewd GLOBAL FOR EWD FOR A PAGE
2847"RTN","C0CEX",5,0)
2848 N ZR
2849"RTN","C0CEX",6,0)
2850 S ZR=$$GET1^DIQ(9.8,ZROUTINE_",",.01,"E") ; EXTERNAL NAME OF ROUTINE
2851"RTN","C0CEX",7,0)
2852 S ^zewd("routineMap",ZAPP,ZPAGE)=ZR ; SET THE EWD MAPPING GLOBAL
2853"RTN","C0CEX",8,0)
2854 Q
2855"RTN","C0CEX",9,0)
2856 ;
2857"RTN","C0CEX",10,0)
2858KILLZEWD(ZROUTINE,ZAPP,ZPAGE) ;USED BY THE ZEWD CROSS REFERENCE TO
2859"RTN","C0CEX",11,0)
2860 ; KILL THE ^zewd GLOBAL FOR EWD FOR A PAGE
2861"RTN","C0CEX",12,0)
2862 K ^zewd("routineMap",ZAPP,ZPAGE)
2863"RTN","C0CEX",13,0)
2864 Q
2865"SEC","^DIC",70050,70050,0,"AUDIT")
2866@
2867"SEC","^DIC",70050,70050,0,"DD")
2868@
2869"SEC","^DIC",70050,70050,0,"DEL")
2870@
2871"SEC","^DIC",70050,70050,0,"LAYGO")
2872@
2873"SEC","^DIC",70050,70050,0,"RD")
2874@
2875"SEC","^DIC",70050,70050,0,"WR")
2876@
2877"VER")
28788.0^22.0
2879"^DD",70050,70050,0)
2880FIELD^^1^5
2881"^DD",70050,70050,0,"DDA")
2882N
2883"^DD",70050,70050,0,"DT")
28843100301
2885"^DD",70050,70050,0,"ID",.02)
2886W " ",$P(^(0),U,2)
2887"^DD",70050,70050,0,"ID",.03)
2888W " ",$P(^(0),U,3)
2889"^DD",70050,70050,0,"IX","B",70050,.01)
2890
2891"^DD",70050,70050,0,"NM","C0EWD ROUTINE MAP")
2892
2893"^DD",70050,70050,.01,0)
2894EWD ROUTINE^RP9.8'^DIC(9.8,^0;1^Q
2895"^DD",70050,70050,.01,1,0)
2896^.1
2897"^DD",70050,70050,.01,1,1,0)
289870050^B
2899"^DD",70050,70050,.01,1,1,1)
2900S ^C0E(70050,"B",$E(X,1,30),DA)=""
2901"^DD",70050,70050,.01,1,1,2)
2902K ^C0E(70050,"B",$E(X,1,30),DA)
2903"^DD",70050,70050,.01,3)
2904NAMESPACED EWD COMPILED PAGE
2905"^DD",70050,70050,.01,"DT")
29063100301
2907"^DD",70050,70050,.02,0)
2908EWD APPLICATION^F^^0;2^K:$L(X)>60!($L(X)<1) X
2909"^DD",70050,70050,.02,3)
2910NAME OF THE EWD APPLICATION
2911"^DD",70050,70050,.02,"DT")
29123100301
2913"^DD",70050,70050,.03,0)
2914EWD PAGE NAME^F^^0;3^K:$L(X)>60!($L(X)<1) X
2915"^DD",70050,70050,.03,3)
2916EWD PAGE NAME
2917"^DD",70050,70050,.03,"DT")
29183100301
2919"^DD",70050,70050,1,0)
2920DESCRIPTION^70050.01^^2;0
2921"^DD",70050,70050,2,0)
2922EWD SOURCE^70050.02^^1;0
2923"^DD",70050,70050.01,0)
2924DESCRIPTION SUB-FIELD^^.01^1
2925"^DD",70050,70050.01,0,"DT")
29263100301
2927"^DD",70050,70050.01,0,"NM","DESCRIPTION")
2928
2929"^DD",70050,70050.01,0,"UP")
293070050
2931"^DD",70050,70050.01,.01,0)
2932DESCRIPTION^Wx^^0;1
2933"^DD",70050,70050.01,.01,3)
2934DESCRIPTION OF THE EWD PAGE
2935"^DD",70050,70050.01,.01,"DT")
29363100301
2937"^DD",70050,70050.02,0)
2938EWD SOURCE SUB-FIELD^^.01^1
2939"^DD",70050,70050.02,0,"DT")
29403100301
2941"^DD",70050,70050.02,0,"NM","EWD SOURCE")
2942
2943"^DD",70050,70050.02,0,"UP")
294470050
2945"^DD",70050,70050.02,.01,0)
2946EWD SOURCE^WLx^^0;1
2947"^DD",70050,70050.02,.01,3)
2948EWD PAGE SOURCE CODE
2949"^DD",70050,70050.02,.01,"DT")
29503100301
2951"^DIC",70050,70050,0)
2952C0EWD ROUTINE MAP^70050
2953"^DIC",70050,70050,0,"GL")
2954^C0E(70050,
2955"^DIC",70050,"B","C0EWD ROUTINE MAP",70050)
2956
2957**END**
2958**END**
Note: See TracBrowser for help on using the repository browser.