Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: OOPSESR

OOPSESR.m

Go to the documentation of this file.
  1. OOPSESR ;WIOFO/CAH-EDIT STUB RECORD ;12/14/99
  1. ;;2.0;ASISTS;;Jun 03, 2002
  1. EN1(CALLER) ;Entry for Edit Stub Routine
  1. N DIC,Y
  1. S DIC("S")="I '(+$TR($$SIGNED^OOPSESR(Y),""^""))"
  1. S DIC="^OOPS(2260,",DIC(0)="AEMZ" D ^DIC Q:Y=-1
  1. K DIC
  1. S IEN=+Y
  1. Q:'IEN
  1. EDIT ;EDIT STUB
  1. D ^OOPSDIS
  1. S DA=IEN,DR="",DIE=2260
  1. N REC,NDR S REC=DA
  1. S DR(1,2260,5)="3 1. TYPE OF INCIDENT..........."
  1. S DR(1,2260,10)="6 2. DATE OF BIRTH.............."
  1. S DR(1,2260,15)="5 3. SSN........................"
  1. S DR(1,2260,20)="7 4. SEX........................"
  1. S DR(1,2260,25)="8 5. HOME STREET ADDRESS........"
  1. S DR(1,2260,26)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=8"
  1. S DR(1,2260,30)="9 6. CITY......................."
  1. S DR(1,2260,31)="I X'="""",'$$VCHAR^OOPSUTL4(X) W !,""Invalid character entered, (~,`,@,#,$,%,*,_,|,\,},{,[,],>, or <),"",!,""please edit."",! S Y=9"
  1. S DR(1,2260,35)="10 7. STATE......................"
  1. S DR(1,2260,40)="11 8. ZIP CODE..................."
  1. S DR(1,2260,45)="12 9. HOME PHONE NUMBER.........."
  1. ; Patch 8 - add error checking for DOL requirement
  1. S DR(1,2260,46)="I $TR(X,""/-*#"","""")'?10N W !?3,""Phone number must include area code and 7 digits only. Example 703-123-8789"" S Y=12"
  1. S DR(1,2260,50)="13 10. STATION NUMBER............."
  1. S DR(1,2260,55)="53 11. SUPERVISOR................."
  1. S DR(1,2260,60)="53.1 12. SECONDARY SUPERVISOR......."
  1. S NDR=DR
  1. L +^OOPS(2260,DA):2
  1. I $T D ^DIE
  1. L -^OOPS(2260,REC)
  1. E W !,"File is currently locked by another user"
  1. K DA,DR,DIE,REC,NDR
  1. Q
  1. SIGNED(IEN) ;Check to see if 2162, CA1 or CA2 is signed.
  1. N CHECK
  1. S CHECK=""
  1. F I=45,49,120,170,222,266 D
  1. .S CHECK=CHECK_$S($$GET1^DIQ(2260,IEN,I,"I")'="":1,1:0)_U
  1. Q CHECK