source: WorldVistAEHR/trunk/r/NETWORK_HEALTH_EXCHANGE-AFJX/AFJXMBOX.m@ 1474

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1AFJXMBOX ;FO-OAKLAND/GMB-SEARCH for PREVIOUSLY COMPLETED NETWORK HEALTH EX's ;03/17/2003 07:46
2 ;;5.1;Network Health Exchange;**2,11,34**;Jan 23, 1996
3 ; Totally rewritten 3/2003. (Previously FJ/CWS.)
4 ; Called from ^AFJXWCP1 & ^AFJXWCPM
5ENTER ;
6 N AXNHEDUZ,AXABORT
7 S AXABORT=0
8 S AXNHEDUZ=$$FIND1^DIC(200,"","X","NETWORK,HEALTH EXCHANGE","B")
9 F D Q:AXABORT
10 . N DIR,X,Y,AXLIST,AXCNT
11 . W @IOF
12 . S DIR(0)="SO^Y:Your Own;A:All"
13 . S DIR("A")="Select the requests to list"
14 . S DIR("B")="Your Own"
15 . D ^DIR I $D(DIRUT) S AXABORT=1 Q
16 . D LIST^AFJXMABX(AXNHEDUZ,Y,.AXLIST,.AXCNT) Q:'AXCNT
17 . D CHOOSE(.AXLIST,AXCNT)
18 Q
19CHOOSE(AXLIST,AXCNT) ;
20 N DIR,X,Y,AXWHICH
21 W !
22 S DIR(0)="LCO^1:"_AXCNT
23 S DIR("A")="Select the reports you'd like to print"
24 D ^DIR Q:$D(DIRUT)
25 S AXWHICH=Y
26 N AXSAVE,I,ZTSK
27 W !
28 F I="AXLIST(","AXWHICH" S AXSAVE(I)=""
29 D EN^XUTMDEVQ("PRINT^AFJXMBOX","AFJX Print Completed NHE Results",.AXSAVE,,1)
30 Q:'$D(ZTSK)
31 W !,"Print queued. Task number: ",ZTSK
32 D WAIT^XMXUTIL
33 Q
34PRINT ;
35 N AXI,AXRANGE,AXJ,AXMZ,AXPAGE,AXABORT
36 S AXABORT=0
37 F AXI=1:1:$L(AXWHICH,",")-1 D Q:AXABORT
38 . S AXRANGE=$P(AXWHICH,",",AXI)
39 . F AXJ=$P(AXRANGE,"-",1):1:$S(AXRANGE["-":$P(AXRANGE,"-",2),1:AXRANGE) D Q:AXABORT
40 . . D REPORT(AXLIST(AXJ),.AXPAGE,.AXABORT)
41 Q
42REPORT(AXMZ,AXPAGE,AXABORT) ;
43 N AXI,AXTXT
44 S (AXI,AXPAGE)=0,AXI=3
45 D PHDR^AFJXMABX(AXMZ,.AXPAGE)
46 F S AXI=$O(^XMB(3.9,AXMZ,2,AXI)) Q:'AXI S AXTXT=$G(^(AXI,0)) D Q:AXABORT
47 . I $Y+3+($E(IOST,1,2)="C-")>IOSL D Q:AXABORT
48 . . I $E(IOST,1,2)="C-" W ! D PAGE^XMXUTIL(.AXABORT) Q:AXABORT
49 . . D PHDR^AFJXMABX(AXMZ,.AXPAGE)
50 . W !,AXTXT
51 I 'AXABORT,$E(IOST,1,2)="C-" D PAGE^XMXUTIL(.AXABORT)
52 Q
Note: See TracBrowser for help on using the repository browser.