source: FOIAVistA/trunk/r/POLICE_AND_SECURITY-ES/ESPUCM1.m@ 1671

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

initial load of FOIAVistA 6/30/08 version

File size: 4.3 KB
Line 
1ESPUCM1 ;DALISC/CKA -UNIFORM CRIME REPORT IN MAIL MESSAGE (CONT)- 4/93
2 ;;1.0;POLICE & SECURITY;;Mar 31, 1994
3EN Q ;CALLED FROM ESPUCM
4PRT ;PRINT REPORT CONTINUED- PRINTS FIRST PAGE
5 S DIC="^ESP(912.4,"_ESPIEN_",1,",DA=ESPN,DR="1:188",DIQ(0)="E" D EN^DIQ1 Q:'$D(^UTILITY("DIQ1",$J,912.41,DA))
6 S ESPX=" " D MSG S ESPX=$E(SPACES,1,25)_"ASSAULTS Total # : "_$G(^UTILITY("DIQ1",$J,912.41,DA,1,"E")) D MSG
7 S ESPX=" " D MSG S ESPX="Aggravated : "_$G(^UTILITY("DIQ1",$J,912.41,DA,2,"E")) D MSG
8 S ESPX="Dangerous : "_$G(^UTILITY("DIQ1",$J,912.41,DA,3,"E")) D MSG
9 S ESPX="Kidnapping : "_$G(^UTILITY("DIQ1",$J,912.41,DA,4,"E")) D MSG
10 S ESPX="No Weapon : "_$G(^UTILITY("DIQ1",$J,912.41,DA,5,"E")) D MSG
11 S ESPX="Simple : "_$G(^UTILITY("DIQ1",$J,912.41,DA,6,"E")) D MSG
12 S ESPX=" " D MSG S ESPX=$E(SPACES,1,3)_"Offender"_$E(SPACES,1,20)_"Victim" D MSG
13 S ESPX=" " D MSG S ESPX="Employee: "_$G(^UTILITY("DIQ1",$J,912.41,DA,7,"E"))_$E(SPACES,1,10)_"Employee : "_$G(^UTILITY("DIQ1",$J,912.41,DA,12,"E")) D MSG
14 S ESPX="Outsider: "_$G(^UTILITY("DIQ1",$J,912.41,DA,8,"E"))_$E(SPACES,1,10)_"Police Officer : "_$G(^UTILITY("DIQ1",$J,912.41,DA,13,"E")) D MSG
15 S ESPX="Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,9,"E"))_$E(SPACES,1,10)_"Outsider : "_$G(^UTILITY("DIQ1",$J,912.41,DA,14,"E")) D MSG
16 S ESPX="Unknown : "_$G(^UTILITY("DIQ1",$J,912.41,DA,10,"E"))_$E(SPACES,1,10)_"Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,15,"E")) D MSG
17 S ESPX="Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,11,"E"))_$E(SPACES,1,10)_"Unknown : "_$G(^UTILITY("DIQ1",$J,912.41,DA,16,"E")) D MSG
18 S ESPX=$E(SPACES,1,21)_"Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,17,"E")) D MSG
19 S ESPX=" " D MSG S ESPX=$E(SPACES,1,25)_"BURGLARIES Total # : "_$G(^UTILITY("DIQ1",$J,912.41,DA,18,"E")) D MSG
20 S ESPX=" " D MSG S ESPX="All Other Areas : "_$G(^UTILITY("DIQ1",$J,912.41,DA,19,"E")) D MSG
21 S ESPX="Canteen : "_$G(^UTILITY("DIQ1",$J,912.41,DA,20,"E")) D MSG
22 S ESPX="Agent Cashier : "_$G(^UTILITY("DIQ1",$J,912.41,DA,21,"E")) D MSG
23 S ESPX="Locker Areas : "_$G(^UTILITY("DIQ1",$J,912.41,DA,22,"E")) D MSG
24 S ESPX="Office : "_$G(^UTILITY("DIQ1",$J,912.41,DA,23,"E")) D MSG
25 S ESPX="Pharmacy : "_$G(^UTILITY("DIQ1",$J,912.41,DA,24,"E")) D MSG
26 S ESPX="Vehicles : "_$G(^UTILITY("DIQ1",$J,912.41,DA,25,"E")) D MSG
27 S ESPX="Burglary Total $ Loss : "_$G(^UTILITY("DIQ1",$J,912.41,DA,26,"E")) D MSG
28 S ESPX="Burglary Total $ Recovered : "_$G(^UTILITY("DIQ1",$J,912.41,DA,27,"E")) D MSG
29 S ESPX=" " D MSG S ESPX="CONTRABAND Total # : "_$G(^UTILITY("DIQ1",$J,912.41,DA,28,"E")) D MSG
30 S TOT=$G(^UTILITY("DIQ1",$J,912.41,DA,29,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,30,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,31,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,32,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,33,"E"))
31 S ESPX=" " D MSG S ESPX="Drugs Total # : "_TOT D MSG
32 S ESPX=" " D MSG S ESPX="Forged Prescriptions : "_$G(^UTILITY("DIQ1",$J,912.41,DA,29,"E")) D MSG
33 S ESPX="Introduction : "_$G(^UTILITY("DIQ1",$J,912.41,DA,30,"E")) D MSG
34 S ESPX="Possession : "_$G(^UTILITY("DIQ1",$J,912.41,DA,31,"E")) D MSG
35 S ESPX="Sale : "_$G(^UTILITY("DIQ1",$J,912.41,DA,32,"E")) D MSG
36 S ESPX="Under the Influence : "_$G(^UTILITY("DIQ1",$J,912.41,DA,33,"E")) D MSG
37 S TOT=$G(^UTILITY("DIQ1",$J,912.41,DA,34,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,35,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,36,"E"))
38 S ESPX=" " D MSG S ESPX="Alcohol Total # : "_TOT D MSG
39 S ESPX=" " D MSG S ESPX="Introduction : "_$G(^UTILITY("DIQ1",$J,912.41,DA,34,"E")) D MSG
40 S ESPX="Possession : "_$G(^UTILITY("DIQ1",$J,912.41,DA,35,"E")) D MSG
41 S ESPX="Under the Influence : "_$G(^UTILITY("DIQ1",$J,912.41,DA,36,"E")) D MSG
42 D PRT^ESPUCM2
43 QUIT
44HDR ;PRINT HEADING
45 S PAGE=PAGE+1 S ESPX=$E(SPACES,1,25)_"DEPARTMENT OF VETERANS AFFAIRS"_$E(SPACES,1,(IOM-65))_"PAGE: "_$J(PAGE,3) D MSG
46 S ESPX=$E(SPACES,1,35)_"VA POLICE" D MSG S ESPX=$E(SPACES,1,33)_"UNIFORM CRIME REPORT" D MSG
47 S ESPX=" " D MSG S ESPX="VA Facility "_$P(^ESP(912.4,ESPIEN,1,1,0),U) D MSG
48 QUIT
49MSG S ^TMP($J,"UCM",ESPL)=ESPX,ESPL=ESPL+1
50 QUIT
Note: See TracBrowser for help on using the repository browser.