source: FOIAVistA/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMRST.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1PXRMRST ; SLC/PKR - Rule Set test routines. ;02/16/2006
2 ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21
3 ;
4 ;===========================================================
5EXIT ; -- exit code
6 K ^TMP("PXRMRST",$J)
7 D CLEAN^VALM10
8 D FULL^VALM1
9 S VALMBCK="R"
10 Q
11 ;
12 ;===========================================================
13HDR ; -- header code
14 S VALMHDR(1)="Rule Set Test"
15 S VALMSG="+ Next Screen - Prev Screen ?? More Actions"
16 Q
17 ;
18 ;===========================================================
19HELP ; -- help code
20 S X="?" D DISP^XQORM1 W !!
21 Q
22 ;
23 ;===========================================================
24RSTEST(RULESET) ;Test a rule set and show the user the results.
25 N BEG,END,IND,NL,OUTPUT,VALMCNT
26 D DATES^PXRMEUT(.BEG,.END,"Patient List") Q:$D(DTOUT)!$D(DUOUT)
27 D DOCDATES^PXRMEUT1(RULESET,BEG,END,.NL,.OUTPUT)
28 K ^TMP("PXRMRST",$J)
29 S ^TMP("PXRMRST",$J,1,0)="List Build Beginning Date: "_$$FMTE^XLFDT(BEG,"5Z")
30 S ^TMP("PXRMRST",$J,2,0)="List Build Ending Date: "_$$FMTE^XLFDT(END,"5Z")
31 F IND=1:1:NL S ^TMP("PXRMRST",$J,IND+2,0)=OUTPUT(IND)
32 S VALMCNT=NL+2
33 D EN^VALM("PXRM RULE SET TEST")
34 Q
35 ;
36 ;===========================================================
37RSTESTS ;Select a rule set for testing.
38 N IND,RULESET,VALMY
39 D EN^VALM2(XQORNOD(0))
40 ;If there is no list quit.
41 I '$D(VALMY) Q
42 S IND="",PXRMDONE=0
43 F S IND=$O(VALMY(IND)) Q:(+IND=0)!(PXRMDONE) D
44 .;Get the rule set ien.
45 . S RULESET=^TMP("PXRMLRM",$J,"IDX",IND,IND)
46 . D RSTEST^PXRMRST(RULESET)
47 S VALMBCK="R"
48 Q
49 ;
Note: See TracBrowser for help on using the repository browser.