source: FOIAVistA/trunk/r/EVENT_CAPTURE-EC--ECT--ECX/ECSUN1N.m@ 1742

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

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1ECSUN1N ;BIR/JLP,RHK-Category and Procedure Summary (cont'd) ; 21 Mar 96
2 ;;2.0; EVENT CAPTURE ;**23**;8 May 96
3ALLU ;
4 S ECD=0,ECPG=1 F S ECD=$O(^ECK("APP",ECL,ECD)) Q:'ECD D SET,HEADER,PROC D:'ECOUT PAGE G:ECOUT END
5END I '$D(ECFLG) W !!,"No Category and Procedure Summary (Old File) data to report.",! I $E(IOST,1,2)="C-" W !!,"Press <RET> to contine " R X:DTIME
6 K ECFLG
7 S ECPG=0
8 Q
9HEADER ;
10 S ECFLG=1
11 W @IOF,!!,?25,"DSS UNIT AND PROCEDURE SUMMARY",!,?25,"Run Date: ",ECDATE,!,?25,"LOCATION: "_ECLN,!,?25,"SERVICE: "_ECSN,!,?25,"DSS UNIT: "_ECDN,! F I=1:1:80 W "-"
12 Q
13PROC ;
14 S ECP=0 F S ECP=$O(^ECK("APP",ECL,ECD,ECP)) Q:'ECP!(ECOUT) D Q:ECOUT
15 .S ECPN=$S($P($G(^ECP(+ECP,0)),"^")]"":$P(^(0),"^"),1:" ZZ #"_+ECP_" MISSING DATA")
16 .W !,?5,"Procedure: "_ECPN,!,?5,"Event Code: ",ECL,"-",ECD,"-",ECP,!,?5,"National Number: ",$S($P($G(^ECP(+ECP,0)),"^",2)]"":$P(^(0),"^",2),1:"NOT DEFINED"),!
17 .D:$Y+3>IOSL PAGE,HEADER:ECPG Q:ECOUT
18 Q
19PAGE ;
20 I $D(ECPG),$E(IOST,1,2)="C-" W !!,"Press <RET> to continue or ^ to quit " R X:DTIME I '$T!(X="^") S ECOUT=1,ECPG=0 Q
21 Q
22SET ;set var
23 S ECNODE=$G(^ECD(+ECD,0))
24 S ECDN=$S($P(ECNODE,"^")]"":$P(^(0),"^"),1:" ZZ #"_ECD_" MISSING DATA")
25 S ECS=+$P(ECNODE,"^",2),ECSN=$S($P($G(^DIC(49,ECS,0)),"^")]"":$P(^(0),"^"),1:"UNKNOWN")
26 Q
Note: See TracBrowser for help on using the repository browser.