1 | ECSUM ;BIR/JLP,RHK-Category and Procedure Summary ;30 Apr 96
|
---|
2 | ;;2.0; EVENT CAPTURE ;**4,19,33,47**;8 May 96
|
---|
3 | LOC K ECL S EC1=0 D ^ECL S:$D(LOC(2)) EC1=1 K LOC I '$D(ECL) S ECOUT=1 G END
|
---|
4 | UNIT ;set var and sel dss unit
|
---|
5 | S ECJLP=0
|
---|
6 | S (ECOUT,ECALL)=0,ECPG=1
|
---|
7 | W @IOF F Q=0:0 D Q:%
|
---|
8 | .W !!,"Do you want to list all DSS Units for "_ECLN S %=1 D YN^DICN Q:%
|
---|
9 | .W !!?5,"Enter <RET> to list all your DSS Units for this location, or"
|
---|
10 | .W !?11,"NO to select a specific DSS Unit"
|
---|
11 | G:%<0 END I %=1 S ECALL=1 G ECSCN
|
---|
12 | W @IOF,! K DIC S DIC=724,DIC(0)="QEAMZ",DIC("A")="Select DSS Unit: "
|
---|
13 | S:ECL DIC("S")="I $D(^ECJ(""AP"",ECL,+Y))"
|
---|
14 | D ^DIC K DIC G:Y<0 END S ECD=+Y,ECDN=$P(Y,"^",2)
|
---|
15 | S ECDN=ECDN_$S($P($G(^ECD(+ECD,0)),"^",6):" **Inactive**",1:"")
|
---|
16 | S ECS=+$P(^ECD(ECD,0),"^",2),ECJLP=+$P(^(0),"^",11)
|
---|
17 | S ECSN=$S($P($G(^DIC(49,ECS,0)),"^")]"":$P(^(0),"^"),1:"UNKNOWN")
|
---|
18 | SEL ;
|
---|
19 | I 'ECJLP S ECC=0,ECCN="None" G ECSCN
|
---|
20 | W @IOF F Q=0:0 D Q:%
|
---|
21 | .W !!,"Do you want to list all categories for "_ECDN S %=1 D YN^DICN Q:%
|
---|
22 | .W !!,"Enter <RET> if you would like to list all categories for this "
|
---|
23 | .W "DSS Unit,",!," or NO to select a specific category"
|
---|
24 | G:%<0 END I %=1 S ECC="ALL" G ECSCN
|
---|
25 | W @IOF,! K DIC S DIC=726,DIC(0)="QEAMZ",DIC("A")="Select Category for "
|
---|
26 | S DIC("A")=DIC("A")_ECDN_" DSS Unit: "
|
---|
27 | S:ECD DIC("S")="I $D(^ECJ(""AP"",ECL,ECD,+Y))"
|
---|
28 | D ^DIC K DIC G:Y<0 END S ECC=+Y,ECCN=$P(Y,"^",2)
|
---|
29 | ECSCN ;Event Codes Screens to display, ALB/JAM-10/16/01
|
---|
30 | K DIR
|
---|
31 | S DIR(0)="SO^A:Active Event Code Screens;I:Inactive Event Code Screens"
|
---|
32 | S DIR(0)=DIR(0)_";B:Both",DIR("B")="A"
|
---|
33 | S DIR("A")="Event Code Screen to display"
|
---|
34 | S DIR("?",1)="Enter an A for Active Event Code Screens, I for Inactive "
|
---|
35 | S DIR("?",1)=DIR("?",1)_"Code Screens,"
|
---|
36 | S DIR("?")="B for a consolidated report of all Event Code Screens, or "
|
---|
37 | S DIR("?")=DIR("?")_"^ to quit."
|
---|
38 | S DIR("??")="ECSUM^"
|
---|
39 | D ^DIR K DIR I $D(DIRUT) G END
|
---|
40 | S ECSCN=Y
|
---|
41 | DEV W !! K IOP,POP,IO("Q"),%ZIS,ZTSK
|
---|
42 | S %ZIS="QM",%ZIS("A")="Select Device: " D ^%ZIS I POP S ECOUT=1 G END
|
---|
43 | I $D(IO("Q")) K IO("Q") D G END
|
---|
44 | .S ZTDESC="CATEGORY AND PROCEDURE SUMMARY",ZTRTN="START^ECSUM",ZTIO=ION
|
---|
45 | .D SAVE,^%ZTLOAD,HOME^%ZIS K ZTSK
|
---|
46 | U IO
|
---|
47 | START ;
|
---|
48 | S %H=$H D YX^%DTC S ECRDT=Y
|
---|
49 | S ECOUT=0,ECPG=1 I ECALL D ^ECSUM1 G CLEAR
|
---|
50 | D SUM2^ECSUM1
|
---|
51 | CLEAR I $E(IOST,1,2)'="C-" G END
|
---|
52 | G:ECOUT END
|
---|
53 | I ECPG W !!!!!,"Press <RET> to continue " R X:DTIME I '$T!(X="^") S ECOUT=1 G END
|
---|
54 | G:ECALL END
|
---|
55 | ASK ;
|
---|
56 | W @IOF F Q=0:0 D I % Q
|
---|
57 | .W !!,"Would you like to list another DSS Unit for this Location"
|
---|
58 | .S %=2 D YN^DICN I % Q
|
---|
59 | .W !!,"Enter YES to list another DSS Unit or <RET> to continue"
|
---|
60 | G:%<0 END I %=1 D G UNIT
|
---|
61 | .K EC4,ECD,ECDN,ECC,ECCN,ECP,ECPN,ECSY,ECSYN,NATN,ECS,ECSN,ECFILE,ECSCN
|
---|
62 | K EC4,ECD,ECDN,ECC,ECCN,ECP,ECPN,ECSY,ECSYN,NATN,ECS,ECSN,ECFILE,ECSCN
|
---|
63 | I EC1 G LOC
|
---|
64 | END ;
|
---|
65 | D ^ECKILL Q:$D(ECGUI) W @IOF D ^%ZISC S:$D(ZTQUEUED) ZTREQ="@"
|
---|
66 | Q
|
---|
67 | SAVE ;
|
---|
68 | S (ZTSAVE("ECA*"),ZTSAVE("ECJLP"),ZTSAVE("ECC*"),ZTSAVE("ECD*"),ZTSAVE("ECL*"),ZTSAVE("ECM*"),ZTSAVE("ECP*"),ZTSAVE("ECS*"),ZTSAVE("EC4"))=""
|
---|
69 | Q
|
---|