source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNPSR12.m@ 1068

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

initial load of FOIAVistA 6/30/08 version

File size: 1.4 KB
Line 
1SPNPSR12 ;HIRMFO/DAD,WAA-HUNT: REGISTRATION STATUS ;8/7/95 15:30
2 ;;2.0;Spinal Cord Dysfunction;;01/02/1997
3 ;
4EN1(D0,SPNSTAT) ; *** 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,"REGISTRATION STATUS") = Int ^ Ext
9 ; SPNSTAT = Patient Registration Status
10 ; Output:
11 ; $S( D0_Meets_Search_Criteria : 1 , 1 : 0 )
12 ;
13 N MEETSRCH
14 S MEETSRCH=0
15 I SPNSTAT=$P($G(^SPNL(154,D0,0)),U,3) S MEETSRCH=1
16 Q MEETSRCH
17 ;
18EN2(ACTION,SEQUENCE) ; *** Prompt entry point
19 ; Input:
20 ; ACTION,SEQUENCE = Search ACTION,SEQUENCE number
21 ; Output:
22 ; SPNLEXIT = $S( User_Abort/Timeout : 1 , 1 : 0 )
23 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"REGISTRATION STATUS") = Int ^ Ext
24 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"REGISTRATION STATUS") = $$EN1^SPNPSR12(D0,SPNSTAT)
25 ;
26 N DIR,DIRUT,DTOUT,DUOUT,REGSTAT
27 S SPNLEXIT=0
28 K ^TMP($J,"SPNPRT",ACTION,SEQUENCE),DIR
29 S DIR(0)="SOAM^0:NOT SCD;1:SCD - CURRENTLY SERVED;2:SCD - NOT CURRENTLY SERVED;"
30 S DIR("A")="Registration status: "
31 S DIR("?")="Enter the desired registration status 0-2"
32 D ^DIR S REGSTAT=Y_U_$G(Y(0))
33 S SPNLEXIT=$S($D(DTOUT):1,$D(DUOUT):1,1:0)
34 I 'SPNLEXIT,Y'="" D
35 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"REGISTRATION STATUS")=REGSTAT
36 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0)="$$EN1^SPNPSR12(D0,"_$P(REGSTAT,U)_")"
37 . Q
38 Q
Note: See TracBrowser for help on using the repository browser.