source: WorldVistAEHR/trunk/r/EVENT_CAPTURE-EC--ECT--ECX/ECDSS3.m@ 1361

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

initial load of WorldVistAEHR

File size: 1.5 KB
Line 
1ECDSS3 ;BIR/RHK,JPW-Active/Inactive Category Report ; 5/22/01 11:14am
2 ;;2.0; EVENT CAPTURE ;**25**;8 May 96
3 ; Routine to report active and inactive procedures
4START ; Routine execution
5 N ECRAS S ECRAS=1 ;roll and scroll flag
6 S DIR(0)="SO^A:Active Categories;I:Inactive Categories;B:Both"
7 S DIR("A")="Select Report"
8 S DIR("?",1)="Enter an A for Active Categories, I for Inactive Categories,"
9 S DIR("?")="B for a consolidated report of all categories, or ^ to quit."
10 S DIR("??")="ECDSS3^"
11 D ^DIR K DIR I $D(DIRUT) G END
12 S ECRTN=Y
13ACT ;list active cats (LISTA)
14INACT ;list inactive cats (LISTI)
15ALL ;list all cats (LISTB)
16 W ! D PRINT W @IOF
17 Q
18PRINT ;starts print for RPC
19 I ECRTN="A" D LISTA
20 I ECRTN="I" D LISTI
21 I ECRTN="B" D LISTB
22END ; Kill variables and exit
23 D ^ECKILL
24 Q
25LISTA ;list active categories
26 K DIC S DIC="^EC(726,",FLDS=".01",BY=".01",(FR,TO)="",L=0,DHD="LIST OF ACTIVE LOCAL CATEGORIES",DIS(0)="I '$P(^EC(726,D0,0),""^"",3)" D EN1^DIP
27 I $D(ECRAS) W !!,"Press <RET> to continue " R X:DTIME
28 Q
29LISTI ;list inactive categories
30 K DIC S DIC="^EC(726,",FLDS=".01,2;""INACTIVE DATE""",BY=".01",(FR,TO)="",L=0,DHD="LIST OF INACTIVE LOCAL CATEGORIES",DIS(0)="I +$P(^EC(726,D0,0),""^"",3)" D EN1^DIP
31 I $D(ECRAS) W !!,"Press <RET> to continue " R X:DTIME
32 Q
33LISTB ;list all cats
34 K DIC S DIC="^EC(726,",FLDS=".01,2;""INACTIVE DATE""",BY=".01",(FR,TO)="",L=0,DHD="LIST OF ALL LOCAL CATEGORIRES" D EN1^DIP
35 I $D(ECRAS) W !!,"Press <RET> to continue " R X:DTIME
36 Q
Note: See TracBrowser for help on using the repository browser.