FSCXMRE ;SLC/STAFF-NOIS Xrefs MRE ;12/27/96 09:21
;;1.1;NOIS;;Sep 06, 1998
;
AUTC(OP,FIELD,VALUE,NUM) ; from dd 7101.1
N USER,TIME,CALL
I OP="SET" D Q
.I FIELD="USER" D Q
..I VALUE S TIME=$P(^FSCD("MRE",NUM,0),U,2),CALL=$P(^(0),U,3) I TIME,CALL S ^FSCD("MRE","AUTC",VALUE,-TIME,CALL)=NUM
.I FIELD="TIME" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U),CALL=$P(^(0),U,3) I USER,CALL S ^FSCD("MRE","AUTC",USER,-VALUE,CALL)=NUM
.I FIELD="CALL" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U),TIME=$P(^(0),U,2) I USER,TIME S ^FSCD("MRE","AUTC",USER,-TIME,VALUE)=NUM
I OP="KILL" D Q
.I FIELD="USER" D Q
..I VALUE S TIME=$P(^FSCD("MRE",NUM,0),U,2),CALL=$P(^(0),U,3) I TIME,CALL K ^FSCD("MRE","AUTC",VALUE,-TIME,CALL)
.I FIELD="TIME" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U),CALL=$P(^(0),U,3) I USER,CALL K ^FSCD("MRE","AUTC",USER,-VALUE,CALL)
.I FIELD="CALL" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U),TIME=$P(^(0),U,2) I USER,TIME K ^FSCD("MRE","AUTC",USER,-TIME,VALUE)
Q
;
AUC(OP,FIELD,VALUE,NUM) ; from dd 7101.1
N USER,CALL
I OP="SET" D Q
.I FIELD="USER" D Q
..I VALUE S CALL=$P(^FSCD("MRE",NUM,0),U,3) I CALL S ^FSCD("MRE","AUC",VALUE,CALL)=NUM
.I FIELD="CALL" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U) I USER S ^FSCD("MRE","AUC",USER,VALUE)=NUM
I OP="KILL" D Q
.I FIELD="USER" D Q
..I VALUE S CALL=$P(^FSCD("MRE",NUM,0),U,3) I CALL K ^FSCD("MRE","AUC",VALUE,CALL)
.I FIELD="CALL" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U) I USER K ^FSCD("MRE","AUC",USER,VALUE)
Q
;
AUT(OP,FIELD,VALUE,NUM) ; from dd 7101.1
N USER,TIME
I OP="SET" D Q
.I FIELD="USER" D Q
..I VALUE S TIME=$P(^FSCD("MRE",NUM,0),U,2) I TIME S ^FSCD("MRE","AUT",VALUE)=TIME
.I FIELD="TIME" D Q
..I VALUE S USER=$P(^FSCD("MRE",NUM,0),U) I USER S ^FSCD("MRE","AUT",USER)=VALUE
I OP="KILL" D Q
.I FIELD="USER" D Q
..I VALUE K ^FSCD("MRE","AUT",VALUE)
.I FIELD="TIME" D Q
..S USER=$P(^FSCD("MRE",NUM,0),U) I USER K ^FSCD("MRE","AUT",USER)
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HFSCXMRE 2024 printed Dec 13, 2024@02:20:34 Page 2
FSCXMRE ;SLC/STAFF-NOIS Xrefs MRE ;12/27/96 09:21
+1 ;;1.1;NOIS;;Sep 06, 1998
+2 ;
AUTC(OP,FIELD,VALUE,NUM) ; from dd 7101.1
+1 NEW USER,TIME,CALL
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="USER"
Begin DoDot:2
+4 IF VALUE
SET TIME=$PIECE(^FSCD("MRE",NUM,0),U,2)
SET CALL=$PIECE(^(0),U,3)
IF TIME
IF CALL
SET ^FSCD("MRE","AUTC",VALUE,-TIME,CALL)=NUM
End DoDot:2
QUIT
+5 IF FIELD="TIME"
Begin DoDot:2
+6 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
SET CALL=$PIECE(^(0),U,3)
IF USER
IF CALL
SET ^FSCD("MRE","AUTC",USER,-VALUE,CALL)=NUM
End DoDot:2
QUIT
+7 IF FIELD="CALL"
Begin DoDot:2
+8 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
SET TIME=$PIECE(^(0),U,2)
IF USER
IF TIME
SET ^FSCD("MRE","AUTC",USER,-TIME,VALUE)=NUM
End DoDot:2
QUIT
End DoDot:1
QUIT
+9 IF OP="KILL"
Begin DoDot:1
+10 IF FIELD="USER"
Begin DoDot:2
+11 IF VALUE
SET TIME=$PIECE(^FSCD("MRE",NUM,0),U,2)
SET CALL=$PIECE(^(0),U,3)
IF TIME
IF CALL
KILL ^FSCD("MRE","AUTC",VALUE,-TIME,CALL)
End DoDot:2
QUIT
+12 IF FIELD="TIME"
Begin DoDot:2
+13 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
SET CALL=$PIECE(^(0),U,3)
IF USER
IF CALL
KILL ^FSCD("MRE","AUTC",USER,-VALUE,CALL)
End DoDot:2
QUIT
+14 IF FIELD="CALL"
Begin DoDot:2
+15 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
SET TIME=$PIECE(^(0),U,2)
IF USER
IF TIME
KILL ^FSCD("MRE","AUTC",USER,-TIME,VALUE)
End DoDot:2
QUIT
End DoDot:1
QUIT
+16 QUIT
+17 ;
AUC(OP,FIELD,VALUE,NUM) ; from dd 7101.1
+1 NEW USER,CALL
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="USER"
Begin DoDot:2
+4 IF VALUE
SET CALL=$PIECE(^FSCD("MRE",NUM,0),U,3)
IF CALL
SET ^FSCD("MRE","AUC",VALUE,CALL)=NUM
End DoDot:2
QUIT
+5 IF FIELD="CALL"
Begin DoDot:2
+6 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
IF USER
SET ^FSCD("MRE","AUC",USER,VALUE)=NUM
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="USER"
Begin DoDot:2
+9 IF VALUE
SET CALL=$PIECE(^FSCD("MRE",NUM,0),U,3)
IF CALL
KILL ^FSCD("MRE","AUC",VALUE,CALL)
End DoDot:2
QUIT
+10 IF FIELD="CALL"
Begin DoDot:2
+11 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
IF USER
KILL ^FSCD("MRE","AUC",USER,VALUE)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
AUT(OP,FIELD,VALUE,NUM) ; from dd 7101.1
+1 NEW USER,TIME
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="USER"
Begin DoDot:2
+4 IF VALUE
SET TIME=$PIECE(^FSCD("MRE",NUM,0),U,2)
IF TIME
SET ^FSCD("MRE","AUT",VALUE)=TIME
End DoDot:2
QUIT
+5 IF FIELD="TIME"
Begin DoDot:2
+6 IF VALUE
SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
IF USER
SET ^FSCD("MRE","AUT",USER)=VALUE
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="USER"
Begin DoDot:2
+9 IF VALUE
KILL ^FSCD("MRE","AUT",VALUE)
End DoDot:2
QUIT
+10 IF FIELD="TIME"
Begin DoDot:2
+11 SET USER=$PIECE(^FSCD("MRE",NUM,0),U)
IF USER
KILL ^FSCD("MRE","AUT",USER)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT