source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNPSR14.m@ 1334

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

initial load of FOIAVistA 6/30/08 version

File size: 1.4 KB
Line 
1SPNPSR14 ;HIRMFO/DAD,WAA-HUNT: FEE BASIS ;8/7/95 10:36
2 ;;2.0;Spinal Cord Dysfunction;**10**;01/02/1997
3 ;
4EN1(D0,BDATE,EDATE) ; *** 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,"BEGINNING DATE") = Date ^ Date_(Ext)
9 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"ENDING DATE") = Date ^ Date_(Ext)
10 ; BDATE = Beginning date
11 ; EDATE = Ending date
12 ; Output:
13 ; $S( D0_Meets_Search_Criteria : 1 , 1 : 0 )
14 ;
15 N DATE,MEETSRCH
16 S MEETSRCH=0
17 S DATE("BEG")=BDATE
18 S DATE("END")=EDATE
19 S DATE("FEE")=+$O(^FBAAC(D0,"AB",9999999.9999-DATE("END")))
20 S DATE("FEE")=$S(DATE("FEE"):9999999.9999-DATE("FEE"),1:0)
21 I DATE("FEE"),DATE("FEE")'<DATE("BEG") S MEETSRCH=1
22 Q MEETSRCH
23 ;
24EN2(ACTION,SEQUENCE) ; *** Prompt entry point
25 ; Input:
26 ; ACTION,SEQUENCE = Search ACTION,SEQUENCE number
27 ; Output:
28 ; SPNLEXIT = $S( User_Abort/Timeout : 1 , 1 : 0 )
29 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"BEGINNING DATE") = Date ^ Date_(Ext)
30 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,"ENDING DATE") = Date ^ Date_(Ext)
31 ; ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0) = $$EN1^SPNPSR14(D0,BDATE,EDATE)
32 ;
33 K ^TMP($J,"SPNPRT",ACTION,SEQUENCE)
34 S (BDATE,EDATE)=""
35 D EN1^SPNPSR00(ACTION,SEQUENCE,.BDATE,.EDATE)
36 I $G(BDATE)'="" I $G(EDATE)'="" S ^TMP($J,"SPNPRT",ACTION,SEQUENCE,0)="$$EN1^SPNPSR14(D0,"_BDATE_","_EDATE_")"
37 Q
Note: See TracBrowser for help on using the repository browser.