source: WorldVistAEHR/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNPSR29.m@ 1046

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

initial load of WorldVistAEHR

File size: 1.3 KB
Line 
1SPNPSR29 ;SD/WDE/ Annual Rehab VA search ;04/14/2001
2 ;;2.0;Spinal Cord Dysfunction;**15**;01/02/1997
3 ;
4EN1(D0,SPNFANN) ; *** 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,"ADDITIONAL CARE VA") = Internal ^ External
9 ; SPNFANN = Internal VALUE
10 ; Output:
11 ; $S( D0_Meets_Search_Criteria : 1 , 1 : 0 )
12 ;
13 N DFN,MEETSRCH,SPNTEST,VA,VADM,VAERR
14 S MEETSRCH=0
15 ;
16 ;
17 S SPNTEST=$P($G(^SPNL(154,+D0,3)),U,3)
18 I SPNTEST]"",SPNTEST=SPNFANN S MEETSRCH=1
19 Q MEETSRCH
20 ;
21EN2(ACTION,SEQUENCE) ; *** Prompt entry point
22 ; Input:
23 ; ACTION,SEQUENCE = Search ACTION,SEQUENCE number
24 ; Output:
25 ; SPNLEXIT = $S( User_Abort/Timeout : 1 , 1 : 0 )
26 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"ANNUAL REHAB VA") = Internal ^ External
27 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0) = $$EN1^SPNPSR(D0,SPNTEST)
28 ;
29 N DIR,DIRUT,DTOUT,DUOUT
30 K ^TMP($J,"SPNPRT",ACTION,SEQUENCE),DIR
31 S DIR(0)="POA^4:AEMNQZ"
32 S DIR("A")="Annual Rehab VA Facility: "
33 S DIR("?")="Enter a Facility from the list shown"
34 D ^DIR S SPNFANN=Y I Y<1 S SPNLEXIT=1 Q:Y<1
35 S SPNLEXIT=$S($D(DTOUT):1,$D(DUOUT):1,1:0)
36 I 'SPNLEXIT,Y'="" D
37 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"ANNUAL REHAB VA")=SPNFANN
38 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0)="$$EN1^SPNPSR29(D0,"""_$P(SPNFANN,U)_""")"
39 Q
Note: See TracBrowser for help on using the repository browser.