ESPUCM2 ;DALISC/CKA -UNIFORM CRIME REPORT IN MAIL MESSAGE (CONT)- 3/93
;;1.0;POLICE & SECURITY;;Mar 31, 1994
EN Q ;CALLED FROM ESPUCM1
PRT ;PRINT REPORT CONTINUED- PRINTS 2ND PAGE
D HDR
S TOT=$G(^UTILITY("DIQ1",$J,912.41,DA,37,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,38,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,39,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,40,"E"))
S ESPX=" " D MSG S ESPX="Weapons Total # : "_TOT D MSG
S ESPX=" " D MSG S ESPX="Firearms : "_$G(^UTILITY("DIQ1",$J,912.41,DA,37,"E")) D MSG
S ESPX="Knives/Hatchets/Clubs : "_$G(^UTILITY("DIQ1",$J,912.41,DA,38,"E")) D MSG
S ESPX="Explosives : "_$G(^UTILITY("DIQ1",$J,912.41,DA,39,"E")) D MSG
S ESPX="Other : "_$G(^UTILITY("DIQ1",$J,912.41,DA,40,"E")) D MSG
S ESPX=" " D MSG S ESPX=$E(SPACES,1,3)_"Offender" D MSG
S ESPX=" " D MSG S ESPX="Employee: "_$G(^UTILITY("DIQ1",$J,912.41,DA,41,"E")) D MSG
S ESPX="Outsider: "_$G(^UTILITY("DIQ1",$J,912.41,DA,42,"E")) D MSG
S ESPX="Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,43,"E")) D MSG
S ESPX="Unknown : "_$G(^UTILITY("DIQ1",$J,912.41,DA,44,"E")) D MSG
S ESPX="Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,45,"E")) D MSG
S ESPX=" " D MSG S ESPX=$E(SPACES,1,25)_"DISTURBANCES Total # : "_$G(^UTILITY("DIQ1",$J,912.41,DA,46,"E")) D MSG
S ESPX=" " D MSG S ESPX="Bomb Threats : "_$G(^UTILITY("DIQ1",$J,912.41,DA,47,"E")) D MSG
S ESPX="Demonstrations : "_$G(^UTILITY("DIQ1",$J,912.41,DA,48,"E")) D MSG
S ESPX="Disorderly Conduct : "_$G(^UTILITY("DIQ1",$J,912.41,DA,49,"E")) D MSG
S ESPX="Employee Threat : "_$G(^UTILITY("DIQ1",$J,912.41,DA,50,"E")) D MSG
S ESPX="Other Threat : "_$G(^UTILITY("DIQ1",$J,912.41,DA,51,"E")) D MSG
S ESPX="Smoking Violation : "_$G(^UTILITY("DIQ1",$J,912.41,DA,52,"E")) D MSG
S ESPX="Trespassing : "_$G(^UTILITY("DIQ1",$J,912.41,DA,53,"E")) D MSG
S ESPX="Unauthorized Photograph : "_$G(^UTILITY("DIQ1",$J,912.41,DA,54,"E")) D MSG
S ESPX="Unauth/Poss/Use/Keys/Cards : "_$G(^UTILITY("DIQ1",$J,912.41,DA,55,"E")) D MSG
S ESPX=" " D MSG S ESPX=$E(SPACES,1,3)_"Offender" D MSG
S ESPX=" " D MSG S ESPX="Employee: "_$G(^UTILITY("DIQ1",$J,912.41,DA,56,"E")) D MSG
S ESPX="Outsider: "_$G(^UTILITY("DIQ1",$J,912.41,DA,57,"E")) D MSG
S ESPX="Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,58,"E")) D MSG
S ESPX="Unknown : "_$G(^UTILITY("DIQ1",$J,912.41,DA,59,"E")) D MSG
S ESPX="Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,60,"E")) D MSG
S ESPX=" " D MSG S ESPX=$E(SPACES,1,25)_"MANSLAUGHTER/MURDER Total # : "_($G(^UTILITY("DIQ1",$J,912.41,DA,61,"E"))+$G(^UTILITY("DIQ1",$J,912.41,DA,62,"E"))) D MSG
S ESPX=" " D MSG S ESPX="Manslaughter/Murder/Negligent : "_$G(^UTILITY("DIQ1",$J,912.41,DA,61,"E")) D MSG
S ESPX="Manslaughter/Murder/Non-Neg. : "_$G(^UTILITY("DIQ1",$J,912.41,DA,62,"E")) D MSG
S ESPX=" " D MSG S ESPX=$E(SPACES,1,3)_"Offender"_$E(SPACES,1,20)_"Victim" D MSG
S ESPX=" " D MSG S ESPX="Employee: "_$G(^UTILITY("DIQ1",$J,912.41,DA,63,"E"))_$E(SPACES,1,20)_"Employee : "_$G(^UTILITY("DIQ1",$J,912.41,DA,68,"E")) D MSG
S ESPX="Outsider: "_$G(^UTILITY("DIQ1",$J,912.41,DA,64,"E"))_$E(SPACES,1,20)_"Outsider : "_$G(^UTILITY("DIQ1",$J,912.41,DA,69,"E")) D MSG
S ESPX="Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,65,"E"))_$E(SPACES,1,20)_"Patient : "_$G(^UTILITY("DIQ1",$J,912.41,DA,70,"E")) D MSG
S ESPX="Unknown : "_$G(^UTILITY("DIQ1",$J,912.41,DA,66,"E"))_$E(SPACES,1,20)_"Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,71,"E")) D MSG
S ESPX="Visitor : "_$G(^UTILITY("DIQ1",$J,912.41,DA,67,"E")) D MSG
D PRT^ESPUCM3
QUIT
HDR ;PRINT HEADING
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
S ESPX=$E(SPACES,1,35)_"VA POLICE" D MSG S ESPX=$E(SPACES,1,33)_"UNIFORM CRIME REPORT" D MSG
S ESPX=" " D MSG S ESPX="VA Facility "_$P(^ESP(912.4,ESPIEN,1,1,0),U) D MSG
QUIT
MSG S ^TMP($J,"UCM",ESPL)=ESPX,ESPL=ESPL+1
QUIT
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HESPUCM2 4129 printed Dec 13, 2024@02:30:36 Page 2
ESPUCM2 ;DALISC/CKA -UNIFORM CRIME REPORT IN MAIL MESSAGE (CONT)- 3/93
+1 ;;1.0;POLICE & SECURITY;;Mar 31, 1994
EN ;CALLED FROM ESPUCM1
QUIT
PRT ;PRINT REPORT CONTINUED- PRINTS 2ND PAGE
+1 DO HDR
+2 SET TOT=$GET(^UTILITY("DIQ1",$JOB,912.41,DA,37,"E"))+$GET(^UTILITY("DIQ1",$JOB,912.41,DA,38,"E"))+$GET(^UTILITY("DIQ1",$JOB,912.41,DA,39,"E"))+$GET(^UTILITY("DIQ1",$JOB,912.41,DA,40,"E"))
+3 SET ESPX=" "
DO MSG
SET ESPX="Weapons Total # : "_TOT
DO MSG
+4 SET ESPX=" "
DO MSG
SET ESPX="Firearms : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,37,"E"))
DO MSG
+5 SET ESPX="Knives/Hatchets/Clubs : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,38,"E"))
DO MSG
+6 SET ESPX="Explosives : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,39,"E"))
DO MSG
+7 SET ESPX="Other : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,40,"E"))
DO MSG
+8 SET ESPX=" "
DO MSG
SET ESPX=$EXTRACT(SPACES,1,3)_"Offender"
DO MSG
+9 SET ESPX=" "
DO MSG
SET ESPX="Employee: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,41,"E"))
DO MSG
+10 SET ESPX="Outsider: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,42,"E"))
DO MSG
+11 SET ESPX="Patient : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,43,"E"))
DO MSG
+12 SET ESPX="Unknown : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,44,"E"))
DO MSG
+13 SET ESPX="Visitor : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,45,"E"))
DO MSG
+14 SET ESPX=" "
DO MSG
SET ESPX=$EXTRACT(SPACES,1,25)_"DISTURBANCES Total # : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,46,"E"))
DO MSG
+15 SET ESPX=" "
DO MSG
SET ESPX="Bomb Threats : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,47,"E"))
DO MSG
+16 SET ESPX="Demonstrations : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,48,"E"))
DO MSG
+17 SET ESPX="Disorderly Conduct : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,49,"E"))
DO MSG
+18 SET ESPX="Employee Threat : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,50,"E"))
DO MSG
+19 SET ESPX="Other Threat : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,51,"E"))
DO MSG
+20 SET ESPX="Smoking Violation : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,52,"E"))
DO MSG
+21 SET ESPX="Trespassing : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,53,"E"))
DO MSG
+22 SET ESPX="Unauthorized Photograph : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,54,"E"))
DO MSG
+23 SET ESPX="Unauth/Poss/Use/Keys/Cards : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,55,"E"))
DO MSG
+24 SET ESPX=" "
DO MSG
SET ESPX=$EXTRACT(SPACES,1,3)_"Offender"
DO MSG
+25 SET ESPX=" "
DO MSG
SET ESPX="Employee: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,56,"E"))
DO MSG
+26 SET ESPX="Outsider: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,57,"E"))
DO MSG
+27 SET ESPX="Patient : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,58,"E"))
DO MSG
+28 SET ESPX="Unknown : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,59,"E"))
DO MSG
+29 SET ESPX="Visitor : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,60,"E"))
DO MSG
+30 SET ESPX=" "
DO MSG
SET ESPX=$EXTRACT(SPACES,1,25)_"MANSLAUGHTER/MURDER Total # : "_($GET(^UTILITY("DIQ1",$JOB,912.41,DA,61,"E"))+$GET(^UTILITY("DIQ1",$JOB,912.41,DA,62,"E")))
DO MSG
+31 SET ESPX=" "
DO MSG
SET ESPX="Manslaughter/Murder/Negligent : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,61,"E"))
DO MSG
+32 SET ESPX="Manslaughter/Murder/Non-Neg. : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,62,"E"))
DO MSG
+33 SET ESPX=" "
DO MSG
SET ESPX=$EXTRACT(SPACES,1,3)_"Offender"_$EXTRACT(SPACES,1,20)_"Victim"
DO MSG
+34 SET ESPX=" "
DO MSG
SET ESPX="Employee: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,63,"E"))_$EXTRACT(SPACES,1,20)_"Employee : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,68,"E"))
DO MSG
+35 SET ESPX="Outsider: "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,64,"E"))_$EXTRACT(SPACES,1,20)_"Outsider : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,69,"E"))
DO MSG
+36 SET ESPX="Patient : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,65,"E"))_$EXTRACT(SPACES,1,20)_"Patient : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,70,"E"))
DO MSG
+37 SET ESPX="Unknown : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,66,"E"))_$EXTRACT(SPACES,1,20)_"Visitor : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,71,"E"))
DO MSG
+38 SET ESPX="Visitor : "_$GET(^UTILITY("DIQ1",$JOB,912.41,DA,67,"E"))
DO MSG
+39 DO PRT^ESPUCM3
+40 QUIT
HDR ;PRINT HEADING
+1 SET PAGE=PAGE+1
SET ESPX=$EXTRACT(SPACES,1,25)_"DEPARTMENT OF VETERANS AFFAIRS"_$EXTRACT(SPACES,1,(IOM-65))_"PAGE: "_$JUSTIFY(PAGE,3)
DO MSG
+2 SET ESPX=$EXTRACT(SPACES,1,35)_"VA POLICE"
DO MSG
SET ESPX=$EXTRACT(SPACES,1,33)_"UNIFORM CRIME REPORT"
DO MSG
+3 SET ESPX=" "
DO MSG
SET ESPX="VA Facility "_$PIECE(^ESP(912.4,ESPIEN,1,1,0),U)
DO MSG
+4 QUIT
MSG SET ^TMP($JOB,"UCM",ESPL)=ESPX
SET ESPL=ESPL+1
+1 QUIT