source: WorldVistAEHR/trunk/r/POLICE_AND_SECURITY-ES/ESPUCFP1.m@ 642

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

initial load of WorldVistAEHR

File size: 5.0 KB
Line 
1ESPUCFP1 ;DALISC/CKA -PRINT UNIFORM CRIME REPORT (CONT)- 3/99
2 ;;1.0;POLICE & SECURITY;**27**;Mar 31, 1994
3EN Q ;CALLED FROM ESPUCFP
4PRT ;PRINT REPORT CONTINUED- PRINTS FIRST PAGE
5 S DIC="^ESP(912.3,"_ESPIEN_",1,",DA=ESPN,DR="1:188",DIQ(0)="E" D EN^DIQ1 Q:'$D(^UTILITY("DIQ1",$J,912.31,DA))
6 W !!?25,"ASSAULTS Total # : ",$G(^UTILITY("DIQ1",$J,912.31,DA,1,"E"))
7 W !!,"Aggravated : ",$G(^UTILITY("DIQ1",$J,912.31,DA,2,"E"))
8 W ?40,"Dangerous : ",$G(^UTILITY("DIQ1",$J,912.31,DA,3,"E"))
9 W !,"Kidnapping : ",$G(^UTILITY("DIQ1",$J,912.31,DA,4,"E"))
10 W ?40,"No Weapon : ",$G(^UTILITY("DIQ1",$J,912.31,DA,5,"E"))
11 W !,"Simple : ",$G(^UTILITY("DIQ1",$J,912.31,DA,6,"E"))
12 W !!,?15,"Offender",?50,"Victim"
13 W !!?10,"Employee: ",$G(^UTILITY("DIQ1",$J,912.31,DA,7,"E")),?45,"Employee : ",$G(^UTILITY("DIQ1",$J,912.31,DA,12,"E"))
14 W !?10,"Outsider: ",$G(^UTILITY("DIQ1",$J,912.31,DA,8,"E")),?45,"Police Officer : ",$G(^UTILITY("DIQ1",$J,912.31,DA,13,"E"))
15 W !?10,"Patient : ",$G(^UTILITY("DIQ1",$J,912.31,DA,9,"E")),?45,"Outsider : ",$G(^UTILITY("DIQ1",$J,912.31,DA,14,"E"))
16 W !?10,"Unknown : ",$G(^UTILITY("DIQ1",$J,912.31,DA,10,"E")),?45,"Patient : ",$G(^UTILITY("DIQ1",$J,912.31,DA,15,"E"))
17 W !?10,"Visitor : ",$G(^UTILITY("DIQ1",$J,912.31,DA,11,"E")),?45,"Unknown : ",$G(^UTILITY("DIQ1",$J,912.31,DA,16,"E"))
18 W !,?45,"Visitor : ",$G(^UTILITY("DIQ1",$J,912.31,DA,17,"E"))
19 I $Y+10>IOSL D HDR1 Q:END
20 W !!!?25,"BURGLARIES Total # : ",$G(^UTILITY("DIQ1",$J,912.31,DA,18,"E"))
21 W !!,"All Other Areas : ",$G(^UTILITY("DIQ1",$J,912.31,DA,19,"E"))
22 W ?40,"Canteen : ",$G(^UTILITY("DIQ1",$J,912.31,DA,20,"E"))
23 W !,"Agent Cashier : ",$G(^UTILITY("DIQ1",$J,912.31,DA,21,"E"))
24 W ?40,"Locker Areas : ",$G(^UTILITY("DIQ1",$J,912.31,DA,22,"E"))
25 W !,"Office : ",$G(^UTILITY("DIQ1",$J,912.31,DA,23,"E"))
26 W ?40,"Pharmacy : ",$G(^UTILITY("DIQ1",$J,912.31,DA,24,"E"))
27 W !,"Vehicles : ",$G(^UTILITY("DIQ1",$J,912.31,DA,25,"E"))
28 W ?40,"Burglary Total $ Loss : ",$G(^UTILITY("DIQ1",$J,912.31,DA,26,"E"))
29 W !?40,"Burglary Total $ Recovered : ",$G(^UTILITY("DIQ1",$J,912.31,DA,27,"E"))
30 W !!
31 I $Y+15>IOSL D HDR1 Q:END
32 W !?25,"CONTRABAND Total # : ",$G(^UTILITY("DIQ1",$J,912.31,DA,28,"E"))
33 S TOT=$G(^UTILITY("DIQ1",$J,912.31,DA,29,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,30,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,31,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,32,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,33,"E"))
34 W !!,"Drugs Total # : ",TOT
35 W ?40,"Forged Prescriptions : ",$G(^UTILITY("DIQ1",$J,912.31,DA,29,"E"))
36 W !?40,"Introduction : ",$G(^UTILITY("DIQ1",$J,912.31,DA,30,"E"))
37 W !?40,"Possession : ",$G(^UTILITY("DIQ1",$J,912.31,DA,31,"E"))
38 W !?40,"Sale : ",$G(^UTILITY("DIQ1",$J,912.31,DA,32,"E"))
39 W !?40,"Under the Influence : ",$G(^UTILITY("DIQ1",$J,912.31,DA,33,"E"))
40 S TOT=$G(^UTILITY("DIQ1",$J,912.31,DA,34,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,35,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,36,"E"))
41 W !!,"Alcohol Total # : ",TOT
42 W ?40,"Introduction : ",$G(^UTILITY("DIQ1",$J,912.31,DA,34,"E"))
43 W !?40,"Possession : ",$G(^UTILITY("DIQ1",$J,912.31,DA,35,"E"))
44 W !?40,"Under the Influence : ",$G(^UTILITY("DIQ1",$J,912.31,DA,36,"E"))
45 S TOT=$G(^UTILITY("DIQ1",$J,912.31,DA,37,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,38,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,39,"E"))+$G(^UTILITY("DIQ1",$J,912.31,DA,40,"E"))
46 W !!,"Weapons Total # : ",TOT
47 W ?40,"Firearms : ",$G(^UTILITY("DIQ1",$J,912.31,DA,37,"E"))
48 W !?40,"Knives/Hatchets/Clubs : ",$G(^UTILITY("DIQ1",$J,912.31,DA,38,"E"))
49 W !?40,"Explosives : ",$G(^UTILITY("DIQ1",$J,912.31,DA,39,"E"))
50 W !?40,"Other : ",$G(^UTILITY("DIQ1",$J,912.31,DA,40,"E"))
51 I $Y+7>IOSL D HDR1 Q:END
52 W !,?15,"Offender"
53 W !!?10,"Employee: ",$G(^UTILITY("DIQ1",$J,912.31,DA,41,"E"))
54 W !?10,"Outsider: ",$G(^UTILITY("DIQ1",$J,912.31,DA,42,"E"))
55 W !?10,"Patient : ",$G(^UTILITY("DIQ1",$J,912.31,DA,43,"E"))
56 W !?10,"Unknown : ",$G(^UTILITY("DIQ1",$J,912.31,DA,44,"E"))
57 W !?10,"Visitor : ",$G(^UTILITY("DIQ1",$J,912.31,DA,45,"E"))
58 D PRT^ESPUCFP2
59 QUIT
60EX W !!,"Done." Q
61HDR ;PRINT HEADING
62 I $E(IOST,1,2)="C-" W !,"Press RETURN to continue or '^' to exit: " R X:DTIME S END='$T!(X="^") Q:END
63 S PAGE=PAGE+1 W @IOF,!?25,"UNIFORM CRIME REPORT",?70,"Page ",$J(PAGE,3)
64 S ESPFACI=$P(^ESP(912.3,ESPIEN,1,ESPN,0),U)
65 S ESPFACI=$P($G(^DG(40.8,ESPFACI,0)),U,1)
66 W !!,"VA Facility ",ESPFACI
67BDT W ?45,"BEGINNING DATE: ",$G(^UTILITY("DIQ1",$J,912.3,ESPIEN,.01,"E"))
68EDT W !,"Date/Time Printed",?45,"ENDING DATE: ",$G(^UTILITY("DIQ1",$J,912.3,ESPIEN,.02,"E"))
69 D NOW^%DTC S Y=% X ^DD("DD") W !,$P(Y,":",1,2)
70 QUIT
71HDR1 I $E(IOST,1,2)="C-" W !,"Press RETURN to continue or '^' to exit: " R X:DTIME S END='$T!(X="^") Q:END
72 S PAGE=PAGE+1 W @IOF,!?25,"UNIFORM CRIME REPORT",?70,"PAGE ",$J(PAGE,3)
73 QUIT
Note: See TracBrowser for help on using the repository browser.