source: WorldVistAEHR/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNPSR09.m@ 824

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

initial load of WorldVistAEHR

File size: 1.3 KB
Line 
1SPNPSR09 ;HIRMFO/DAD,WAA-HUNT: DIAGNOSIS ;5/22/2003
2 ;;2.0;Spinal Cord Dysfunction;**20**;01/02/1997
3 ;
4EN1(D0,SPNETO) ; *** 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,"ETIOLOGY") = Internal ^ External
9 ; SPNETO = Internal ETIOLOGY
10 ; Output:
11 ; $S( D0_Meets_Search_Criteria : 1 , 1 : 0 )
12 ;
13 N D1,DFN,ETIOLOGY,MEETSRCH
14 S MEETSRCH=0
15 S MEETSRCH=$$EN2^SPNLUTL1(D0,$P($G(^SPNL(154.03,SPNETO,0)),U))
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,"ETIOLOGY") = Internal ^ External
24 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0) = $$EN1^SPNPSR(D0,SPNETO)
25 ;
26 N DIR,DIRUT,DTOUT,DUOUT,ETIOLOGY
27 K ^TMP($J,"SPNPRT",ACTION,SEQUENCE),DIR
28 S DIR(0)="POA^154.03:AEMNQZ"
29 S DIR("A")="SCD Etiology : "
30 S DIR("?")="Enter an etiology from the list shown"
31 D ^DIR S ETIOLOGY=Y,SPNETO=+ETIOLOGY
32 S SPNLEXIT=$S($D(DTOUT):1,$D(DUOUT):1,1:0)
33 I 'SPNLEXIT,Y'="" D
34 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"ETIOLOGY")=ETIOLOGY
35 . S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0)="$$EN1^SPNPSR09(D0,"_SPNETO_")"
36 . Q
37 Q
Note: See TracBrowser for help on using the repository browser.