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

FSCXREF.m

Go to the documentation of this file.
FSCXREF ;SLC/STAFF-NOIS Xrefs Call ;1/11/98  15:26
 ;;1.1;NOIS;;Sep 06, 1998
 ;
AOM(OP,FIELD,VALUE,CALL) ; from dd 7100
 N MOD,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S MOD=$P(^FSCD("CALL",CALL,0),U,8) I MOD S ^FSCD("CALL","AOM",MOD,CALL)=""
 .I FIELD="MOD" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOM",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S MOD=$P(^FSCD("CALL",CALL,0),U,8) I MOD K ^FSCD("CALL","AOM",MOD,CALL)
 .I FIELD="MOD" D  Q
 ..K ^FSCD("CALL","AOM",VALUE,CALL)
 Q
 ;
AOP(OP,FIELD,VALUE,CALL) ; from dd 7100
 N PACK,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK S ^FSCD("CALL","AOP",PACK,CALL)=""
 .I FIELD="PACK" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOP",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK K ^FSCD("CALL","AOP",PACK,CALL)
 .I FIELD="PACK" D  Q
 ..K ^FSCD("CALL","AOP",VALUE,CALL)
 Q
 ;
AOS(OP,FIELD,VALUE,CALL) ; from dd 7100
 N SITE,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S SITE=$P(^FSCD("CALL",CALL,0),U,5) I SITE S ^FSCD("CALL","AOS",SITE,CALL)=""
 .I FIELD="SITE" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOS",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S SITE=$P(^FSCD("CALL",CALL,0),U,5) I SITE K ^FSCD("CALL","AOS",SITE,CALL)
 .I FIELD="SITE" D  Q
 ..K ^FSCD("CALL","AOS",VALUE,CALL)
 Q
 ;
AOIS(OP,FIELD,VALUE,CALL) ; from dd 7100
 N ISC,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S ISC=$P(^FSCD("CALL",CALL,0),U,16) I ISC S ^FSCD("CALL","AOIS",ISC,CALL)=""
 .I FIELD="ISC" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOIS",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S ISC=$P(^FSCD("CALL",CALL,0),U,16) I ISC K ^FSCD("CALL","AOIS",ISC,CALL)
 .I FIELD="ISC" D  Q
 ..K ^FSCD("CALL","AOIS",VALUE,CALL)
 Q
 ;
AOISP(OP,FIELD,VALUE,CALL) ; from dd 7100
 N ISC,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S ISC=$P(^FSCD("CALL",CALL,120),U,10) I ISC S ^FSCD("CALL","AOISP",ISC,CALL)=""
 .I FIELD="ISC" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOISP",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S ISC=$P(^FSCD("CALL",CALL,120),U,10) I ISC K ^FSCD("CALL","AOISP",ISC,CALL)
 .I FIELD="ISC" D  Q
 ..K ^FSCD("CALL","AOISP",VALUE,CALL)
 Q
 ;
AOSC(OP,FIELD,VALUE,CALL) ; from dd 7100
 N SUB,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S SUB=$P(^FSCD("CALL",CALL,120),U,11) I SUB S ^FSCD("CALL","AOSC",SUB,CALL)=""
 .I FIELD="SUB" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOSC",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S SUB=$P(^FSCD("CALL",CALL,120),U,11) I SUB K ^FSCD("CALL","AOSC",SUB,CALL)
 .I FIELD="SUB" D  Q
 ..K ^FSCD("CALL","AOSC",VALUE,CALL)
 Q
 ;
AOID(OP,FIELD,VALUE,CALL) ;
 N ISC,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S ISC=$P(^FSCD("CALL",CALL,0),U,20) I ISC S ^FSCD("CALL","AOID",ISC,CALL)=""
 .I FIELD="ISC" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOID",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S ISC=$P(^FSCD("CALL",CALL,0),U,20) I ISC K ^FSCD("CALL","AOID",ISC,CALL)
 .I FIELD="ISC" D  Q
 ..K ^FSCD("CALL","AOID",VALUE,CALL)
 Q
 ;
AOU(OP,FIELD,VALUE,CALL) ; from dd 7100
 N SPEC,STATUS
 I OP="SET" D  Q
 .I FIELD="STATUS" D  Q
 ..I VALUE=1 S SPEC=$P(^FSCD("CALL",CALL,0),U,9) I SPEC S ^FSCD("CALL","AOU",SPEC,CALL)=""
 .I FIELD="SPEC" D  Q
 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=1 S ^FSCD("CALL","AOU",VALUE,CALL)=""
 I OP="KILL" D  Q
 .I FIELD="STATUS" D  Q
 ..S SPEC=$P(^FSCD("CALL",CALL,0),U,9) I SPEC K ^FSCD("CALL","AOU",SPEC,CALL)
 .I FIELD="SPEC" D  Q
 ..K ^FSCD("CALL","AOU",VALUE,CALL)
 Q