source: WorldVistAEHR/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTCO2.m@ 1297

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

initial load of WorldVistAEHR

File size: 1.1 KB
RevLine 
[613]1DGPTCO2 ;ALB/MJK - Census Status Report ; 15 APR 90
2 ;;5.3;Registration;;Aug 13, 1993
3 ;
4DIV ; -- ask for div to print
5 K DGCHOICE("DIV")
6 I $D(^DG(43,1,"GL")),'$P(^("GL"),U,2) S DGCHOICE("DIV")=1 G DIVQ
7 S DIC="^DG(40.8,",VAUTNI=2,VAUTSTR="division",VAUTVB="DGCHOICE(""DIV"")"
8 D FIRST^VAUTOMA,CHK:Y=-1
9DIVQ Q
10 ;
11CHK ; -- ask how far to ^ out
12 I DGCHOICE("DIV")=0,'$O(DGCHOICE("DIV",0)) G CHK1
13ASK W !!,"Continue using your selection(s)" S %=2 D YN^DICN G CHKQ:%=1
14 I '% W !?5,"Answer 'YES' to use selections you made or 'NO' to stop process." G ASK
15CHK1 K DGCHOICE("DIV")
16CHKQ Q
17 ;
18STATUS ; -- ask for status to print
19 K DGCHOICE("STATUS")
20 S DIR(0)="SA^0:Open;1:Closed;2:Released;3:Transmitted;9:All",DIR("A")="Census Status: ",DIR("B")="All"
21 S DIR("?",1)="Select one of the following:"
22 S DIR("?",2)=" 0 - for only 'Open' records"
23 S DIR("?",3)=" 1 - for only 'Closed' records"
24 S DIR("?",4)=" 2 - for only 'Released' records"
25 S DIR("?",5)=" 3 - for only 'Transmitted' records"
26 S DIR("?")=" OR 9 - to select ALL statuses"
27 W ! D ^DIR G STATUSQ:$D(DTOUT)!$D(DUOUT)
28 S DGCHOICE("STATUS")=$P($P(DIR(0),Y_":",2),";")
29STATUSQ K DIR Q
30 ;
Note: See TracBrowser for help on using the repository browser.