source: WorldVistAEHR/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMVPTR.m@ 634

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

revised back to 6/30/08 version

File size: 1.2 KB
RevLine 
[623]1PXRMVPTR ; SLC/PKR - Routines for dealing with variable pointers. ; 02/06/2001
2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
3 ;
4 ;==================================================
5BLDALIST(FILE,FIELD,LIST) ;Build a list of variable pointer information
6 ;indexed by the abbreviation.
7 N ABBR,FN,IND,ROOT,TEMP
8 S IND=0
9 F S IND=$O(^DD(FILE,FIELD,"V",IND)) Q:+IND=0 D
10 . S TEMP=^DD(FILE,FIELD,"V",IND,0)
11 . S FN=$P(TEMP,U,1)
12 . S ROOT=$$ROOT^DILFD(FN)
13 . S ROOT=$P(ROOT,"^",2)
14 . S ABBR=$P(TEMP,U,4)
15 . S LIST(ABBR)=TEMP
16 Q
17 ;
18 ;==================================================
19BLDNLIST(FILE,FIELD,LIST) ;Build a list of variable pointer information
20 ;indexed by the file number.
21 N FN,IND,ROOT,TEMP
22 S IND=0
23 F S IND=$O(^DD(FILE,FIELD,"V",IND)) Q:+IND=0 D
24 . S TEMP=^DD(FILE,FIELD,"V",IND,0)
25 . S FN=$P(TEMP,U,1)
26 . S ROOT=$$ROOT^DILFD(FN)
27 . S ROOT=$P(ROOT,"^",2)
28 . S LIST(FN)=TEMP
29 Q
30 ;
31 ;==================================================
32BLDRLIST(FILE,FIELD,LIST) ;Build a list of variable pointer information
33 ;indexed by the root.
34 N FN,IND,ROOT,TEMP
35 S IND=0
36 F S IND=$O(^DD(FILE,FIELD,"V",IND)) Q:+IND=0 D
37 . S TEMP=^DD(FILE,FIELD,"V",IND,0)
38 . S FN=$P(TEMP,U,1)
39 . S ROOT=$$ROOT^DILFD(FN)
40 . S ROOT=$P(ROOT,"^",2)
41 . S LIST(ROOT)=TEMP
42 Q
43 ;
Note: See TracBrowser for help on using the repository browser.