source: ccr/trunk/p/C0CE0_1_0_0_T2.KID@ 728

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

added missing routine C0CRICH

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