source: FOIAVistA/tag/r/NOIS-FSC/FSCXREFM.m@ 1282

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

initial load of FOIAVistA 6/30/08 version

File size: 2.6 KB
Line 
1FSCXREFM ;SLC/STAFF-NOIS Xrefs Misc ;5/26/98 14:37
2 ;;1.1;NOIS;;Sep 06, 1998
3 ;
4AEP(OP,FIELD,VALUE,CALL) ; from dd 7100
5 N PACK,STATUS
6 I OP="SET" D Q
7 .I FIELD="STATUS" D Q
8 ..I VALUE=5 S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK S ^FSCD("CALL","AEP",PACK,CALL)=""
9 .I FIELD="PACK" D Q
10 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,17) I STATUS=5 S ^FSCD("CALL","AEP",VALUE,CALL)=""
11 I OP="KILL" D Q
12 .I FIELD="STATUS" D Q
13 ..S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK K ^FSCD("CALL","AEP",PACK,CALL)
14 .I FIELD="PACK" D Q
15 ..K ^FSCD("CALL","AEP",VALUE,CALL)
16 Q
17 ;
18ACN(OP,FIELD,VALUE,CALL) ; from dd 7100
19 N CONTACT,STATUS
20 I OP="SET" D Q
21 .I FIELD="STATUS" D Q
22 ..I VALUE,VALUE'=2 S CONTACT=$P(^FSCD("CALL",CALL,0),U,6) I CONTACT S ^FSCD("CALL","ACN",CONTACT,CALL)=""
23 .I FIELD="CONTACT" D Q
24 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS,STATUS'=2 S ^FSCD("CALL","ACN",VALUE,CALL)=""
25 I OP="KILL" D Q
26 .I FIELD="STATUS" D Q
27 ..S CONTACT=$P(^FSCD("CALL",CALL,0),U,6) I CONTACT K ^FSCD("CALL","ACN",CONTACT,CALL)
28 .I FIELD="CONTACT" D Q
29 ..K ^FSCD("CALL","ACN",VALUE,CALL)
30 Q
31 ;
32AEN(OP,FIELD,VALUE,CALL) ; from dd 7100
33 N ENTRYP,STATUS
34 I OP="SET" D Q
35 .I FIELD="STATUS" D Q
36 ..I VALUE,VALUE'=2 S ENTRYP=+$P($G(^FSCD("CALL",CALL,120)),U,20) I ENTRYP S ^FSCD("CALL","AEN",ENTRYP,CALL)=""
37 .I FIELD="ENTRYP" D Q
38 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS,STATUS'=2 S ^FSCD("CALL","AEN",VALUE,CALL)=""
39 I OP="KILL" D Q
40 .I FIELD="STATUS" D Q
41 ..S ENTRYP=$P($G(^FSCD("CALL",CALL,120)),U,20) I ENTRYP K ^FSCD("CALL","AEN",ENTRYP,CALL)
42 .I FIELD="ENTRYP" D Q
43 ..K ^FSCD("CALL","AEN",VALUE,CALL)
44 Q
45 ;
46ANS(OP,FIELD,VALUE,CALL) ; from dd 7100
47 N SITE,STATUS
48 I OP="SET" D Q
49 .I FIELD="STATUS" D Q
50 ..I VALUE,VALUE'=2 S SITE=$P(^FSCD("CALL",CALL,0),U,5) I SITE S ^FSCD("CALL","ANS",SITE,CALL)=""
51 .I FIELD="SITE" D Q
52 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS,STATUS'=2 S ^FSCD("CALL","ANS",VALUE,CALL)=""
53 I OP="KILL" D Q
54 .I FIELD="STATUS" D Q
55 ..S SITE=$P(^FSCD("CALL",CALL,0),U,5) I SITE K ^FSCD("CALL","ANS",SITE,CALL)
56 .I FIELD="SITE" D Q
57 ..K ^FSCD("CALL","ANS",VALUE,CALL)
58 Q
59 ;
60ANDS(OP,FIELD,VALUE,CALL) ; from dd 7100
61 N SPECD,STATUS
62 I OP="SET" D Q
63 .I FIELD="STATUS" D Q
64 ..I VALUE,VALUE'=2 S SPECD=$P(^FSCD("CALL",CALL,0),U,21) I SPECD S ^FSCD("CALL","ANDS",SPECD,CALL)=""
65 .I FIELD="SPECD" D Q
66 ..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS,STATUS'=2 S ^FSCD("CALL","ANDS",VALUE,CALL)=""
67 I OP="KILL" D Q
68 .I FIELD="STATUS" D Q
69 ..S SPECD=$P(^FSCD("CALL",CALL,0),U,21) I SPECD K ^FSCD("CALL","ANDS",SPECD,CALL)
70 .I FIELD="SPECD" D Q
71 ..K ^FSCD("CALL","ANDS",VALUE,CALL)
72 Q
Note: See TracBrowser for help on using the repository browser.