Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DGPTCO2

DGPTCO2.m

Go to the documentation of this file.
  1. DGPTCO2 ;ALB/MJK - Census Status Report ; 15 APR 90
  1. ;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
  1. ;
  1. DIV ; -- ask for div to print
  1. K DGCHOICE("DIV")
  1. I $D(^DG(43,1,"GL")),'$P(^("GL"),U,2) S DGCHOICE("DIV")=1 G DIVQ
  1. S DIC="^DG(40.8,",VAUTNI=2,VAUTSTR="division",VAUTVB="DGCHOICE(""DIV"")"
  1. D FIRST^VAUTOMA,CHK:Y=-1
  1. DIVQ Q
  1. ;
  1. CHK ; -- ask how far to ^ out
  1. I DGCHOICE("DIV")=0,'$O(DGCHOICE("DIV",0)) G CHK1
  1. ASK W !!,"Continue using your selection(s)" S %=2 D YN^DICN G CHKQ:%=1
  1. I '% W !?5,"Answer 'YES' to use selections you made or 'NO' to stop process." G ASK
  1. CHK1 K DGCHOICE("DIV")
  1. CHKQ Q
  1. ;
  1. STATUS ; -- ask for status to print
  1. K DGCHOICE("STATUS")
  1. S DIR(0)="SA^0:Open;1:Closed;2:Released;3:Transmitted;9:All",DIR("A")="Census Status: ",DIR("B")="All"
  1. S DIR("?",1)="Select one of the following:"
  1. S DIR("?",2)=" 0 - for only 'Open' records"
  1. S DIR("?",3)=" 1 - for only 'Closed' records"
  1. S DIR("?",4)=" 2 - for only 'Released' records"
  1. S DIR("?",5)=" 3 - for only 'Transmitted' records"
  1. S DIR("?")=" OR 9 - to select ALL statuses"
  1. W ! D ^DIR G STATUSQ:$D(DTOUT)!$D(DUOUT)
  1. S DGCHOICE("STATUS")=$P($P(DIR(0),Y_":",2),";")
  1. STATUSQ K DIR Q
  1. ;