1 | PXRMVPTR ; SLC/PKR - Routines for dealing with variable pointers. ; 02/06/2001
|
---|
2 | ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
|
---|
3 | ;
|
---|
4 | ;==================================================
|
---|
5 | BLDALIST(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 | ;==================================================
|
---|
19 | BLDNLIST(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 | ;==================================================
|
---|
32 | BLDRLIST(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 | ;
|
---|