source: ccr/trunk/p/C0CE0_1_0_0_T4.KID@ 1112

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

update to distribute only application mapping records with each application

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