fixed bug in FIELDS, added $G for ^DD fields without .01

This commit is contained in:
george 2009-01-25 20:53:20 +00:00
parent 7c4cbf2eb7
commit 7bd9c61f1e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ FIELDS(C0CFRTN,C0CF) ; RETURNS AN ARRAY OF THE FIELDS IN FILE C0CF,
. ;W "1: "_C0CFJ," ",C0CFI,!
. F S C0CFI=$O(^DD(C0CFJ,C0CFI)) Q:+C0CFI=0 D ; EVERY FIELD
. . ;W "2: "_C0CFJ," ",C0CFI,!
. . S C0CFN=$P(^DD(C0CFJ,C0CFI,0),"^",1) ;PULL FIELD NAME FROM ^DD
. . S C0CFN=$P($G(^DD(C0CFJ,C0CFI,0)),"^",1) ;PULL FIELD NAME FROM ^DD
. . ;W "N: ",C0CFN,!
. . ;I C0CFN="STR" W C0CFN," ",C0CFJ,!
. . I $D(@C0CFRTN@(C0CFN)) D ; IS THIS A DUPLICATE?