source: FOIAVistA/tag/r/NOIS-FSC/FSCQSX.m@ 1154

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

initial load of FOIAVistA 6/30/08 version

File size: 1.0 KB
Line 
1FSCQSX ;SLC/STAFF-NOIS Query Search Exists ;4/22/94 12:01
2 ;;1.1;NOIS;;Sep 06, 1998
3 ;
4EX ; from FSCQS
5 I LIST=1 D Q
6 .S NODE=+$P(CODE,";"),PIECE=$P(CODE,";",2)
7 .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
8 ..I $L($P($G(^FSCD("CALL",CALL,NODE)),U,PIECE)) X ACTION
9 I LIST=0 D Q
10 .S CVALUE="" F S CVALUE=$O(^FSCD("CALL",INDEX,CVALUE)) Q:CVALUE="" D
11 ..S CALL=0 F S CALL=$O(^FSCD("CALL",INDEX,CVALUE,CALL)) Q:CALL<1 D
12 ...I $D(^TMP("FSC USELIST",$J,CALL)) X ACTION
13 I LIST="" D Q
14 .S CVALUE="" F S CVALUE=$O(^FSCD("CALL",INDEX,CVALUE)) Q:CVALUE="" D
15 ..S CALL=0 F S CALL=$O(^FSCD("CALL",INDEX,CVALUE,CALL)) Q:CALL<1 X ACTION
16 Q
17NEX ; from FSCQS
18 I LIST=1!(LIST=0) D Q
19 .S NODE=+$P(CODE,";"),PIECE=$P(CODE,";",2)
20 .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
21 ..I '$L($P($G(^FSCD("CALL",CALL,NODE)),U,PIECE)) X ACTION
22 I LIST="" D Q
23 .S NODE=+$P(CODE,";"),PIECE=$P(CODE,";",2)
24 .S CALL=0 F S CALL=$O(^FSCD("CALL",CALL)) Q:CALL<1 D
25 ..I '$L($P($G(^FSCD("CALL",CALL,NODE)),U,PIECE)) X ACTION
26 Q
Note: See TracBrowser for help on using the repository browser.