Changeset 636 for FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMXGUT.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMXGUT.m
r628 r636 1 PXRMXGUT ; SLC/PJH - General utilities for reminder reports; 11/16/20072 ;;2.0;CLINICAL REMINDERS;**4 ,6**;Feb 04, 2005;Build 1231 PXRMXGUT ; SLC/PJH - General utilities for reminder reports; 05/31/2006 2 ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21 3 3 ; 4 4 ;======================================= 5 5 EOR ;End of report display. 6 I $E(IOST ,1,2)="C-",IO=IO(0) D6 I $E(IOST)="C",IO=IO(0) D 7 7 . S DIR(0)="EA" 8 8 . S DIR("A")="End of the report. Press ENTER/RETURN to continue..." … … 29 29 ; 30 30 ;======================================= 31 TIMING ;Print report timing data. 32 N IND 33 W !!,"Report timing data:" 34 S IND="" 35 F S IND=$O(^XTMP(PXRMXTMP,"TIMING",IND)) Q:IND="" W !," ",^XTMP(PXRMXTMP,"TIMING",IND) 36 Q 31 VLIST(SLIST,LIST,MESSAGE) ;Make sure all the elements of LIST are in 32 ;SLIST. If they are, then LIST is valid. The elements of LIST can be 33 ;separated by commas and spaces. 34 N IC,LE,LEN,VALID 35 S LIST=$TR(LIST,",","") 36 S LIST=$TR(LIST," ","") 37 ;Make the test case insensitive. 38 S SLIST=$$UP^XLFSTR(SLIST) 39 S LIST=$$UP^XLFSTR(LIST) 40 S VALID=1 41 S LEN=$L(LIST) 42 I LEN=0 D 43 . W !,"The list is empty!" 44 . S VALID=0 45 F IC=1:1:LEN D 46 . S LE=$E(LIST,IC,IC) 47 . I SLIST'[LE D 48 .. W !,LE,MESSAGE 49 .. S VALID=0 50 Q VALID 37 51 ; 38 52 ;======================================= … … 75 89 Q STR 76 90 ; 77 ;=======================================78 VLIST(SLIST,LIST,MESSAGE) ;Make sure all the elements of LIST are in79 ;SLIST. If they are, then LIST is valid. The elements of LIST can be80 ;separated by commas and spaces.81 N IC,LE,LEN,VALID82 S LIST=$TR(LIST,",","")83 S LIST=$TR(LIST," ","")84 ;Make the test case insensitive.85 S SLIST=$$UP^XLFSTR(SLIST)86 S LIST=$$UP^XLFSTR(LIST)87 S VALID=188 S LEN=$L(LIST)89 I LEN=0 D90 . W !,"The list is empty!"91 . S VALID=092 F IC=1:1:LEN D93 . S LE=$E(LIST,IC,IC)94 . I SLIST'[LE D95 .. W !,LE,MESSAGE96 .. S VALID=097 Q VALID98 ;
Note:
See TracChangeset
for help on using the changeset viewer.