source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNPSR22.m@ 1783

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

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1SPNPSR22 ;HIRMFO/DAD,WAA-HUNT: SCI NETWORK ;8/1/95 14:16
2 ;;2.0;Spinal Cord Dysfunction;;01/02/1997
3 ;
4EN1(D0,SCI) ; *** Search entry point
5 ; Input:
6 ; ACTION,SEQUENCE = Search ACTION,SEQUENCE number
7 ; D0 = SCD (SPINAL CORD) REGISTRY file (#154) IEN
8 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"SCI NETWORK",X) = 1/0 ^ SCI NETWORK
9 ; SCI = 1/0
10 ; Output:
11 ; $S( D0_Meets_Search_Criteria : 1 , 1 : 0 )
12 ;
13 N SPNLNET,I,MEETSRCH,VA,VADM,VAERR
14 S MEETSRCH=0
15 S SPNLNET=+$P($G(^SPNL(154,+D0,1)),U)
16 I SCI[SPNLNET S MEETSRCH=1
17 Q MEETSRCH
18 ;
19EN2(ACTION,SEQUENCE) ; *** Prompt entry point
20 ; Input:
21 ; ACTION,SEQUENCE = Search ACTION,SEQUENCE number
22 ; Output:
23 ; SPNLEXIT = $S( User_Abort/Timeout : 1 , 1 : 0 )
24 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"SCI NETWORK",X) = 1/0 ^ SCI NETWORK
25 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0) = $$EN1^SPNPSR22(D0,SCI)
26 ;
27 ; Select the state
28 N SPNLNET
29 S SPNLEXIT=0 D
30 .N DIR
31 .S DIR(0)="SAO^A:SCI Network;B:Non-SCI Network;C:Both A and B"
32 .S DIR("A")="Select SCI Network: "
33 .S DIR("A",1)="SCI Network Status"
34 .S DIR("A",2)=" A) SCI Network"
35 .S DIR("A",3)=" B) Non-SCI Network"
36 .S DIR("A",4)=" C) Both A and B"
37 .D ^DIR
38 .I $D(DTOUT)!($D(DUOUT)) S SPNLEXIT=1
39 .I Y="" Q
40 .Q
41 I 'SPNLEXIT,Y'="" D
42 .S SPNLNET=$S(Y="A":"1^SCI Network",Y="B":"0^Non-SCI Network",1:"10^SCI & Non-SCI Networks")
43 .S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"SCI NETWORK",+SPNLNET)=SPNLNET
44 .S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0)="$$EN1^SPNPSR22(D0,"_$P(SPNLNET,U)_")"
45 .Q
46 Q
Note: See TracBrowser for help on using the repository browser.