INPUT TRANSFORM: K:$L(X)>30!($L(X)<3) X I $D(X) K DG20NAME S DG20NAME=X,(X,DG20NAME)=$$FORMAT^DPTNAME(.DG20NAME,3,30) K:'$L(X) X,DG20NAME S:$D(X) DGNEWVAL=X
LAST EDITED: NOV 16, 2011
HELP-PROMPT: Answer must be 3-30 characters in length.
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
CROSS-REFERENCE: 90002.11^B
1)= S ^BCHRPAT("B",$E(X,1,30),DA)=""
2)= K ^BCHRPAT("B",$E(X,1,30),DA)
CROSS-REFERENCE: ^^TRIGGER^90002.11^.09
1)= K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^BCHRPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y S X=DIV S X="CHR"_DA S DIH=$G(^BCHRPAT(DIV(0),0)),DIV=X S $P(^(0),U,9)=DIV,DIH=90002.11,DIG=.09 D ^DICR
2)= K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^BCHRPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,9),X=X S DIU=X K Y S X=DIV S X="CHR"_DA S DIH=$G(^BCHRPAT(DIV(0),0)),DIV=X S $P(^(0),U,9)=DIV,DIH=90002.11,DIG=.09 D ^DICR
CREATE VALUE)= S X="CHR"_DA
DELETE VALUE)= S X="CHR"_DA
FIELD)= #.09
CROSS-REFERENCE: 90002.11^C^SOUNDEX
1)= S I=$E(X,1,27) D SOU^DICM S ^BCHRPAT("C",X_I,DA)=""
2)= S I=$E(X,1,27) D SOU^DICM K ^BCHRPAT("C",X_I,DA)
CROSS-REFERENCE: 90002.11^D^KWIC
1)= S %1=1 F %=1:1:$L(X)+1 S I=$E(X,%) I "(,.?! '-/&:;)"[I S I=$E($E(X,%1,%-1),1,30),%1=%+1 I $L(I)>2,^DD("KWIC")'[I S ^BCHRPAT("D",I,DA)=""
2)= S %1=1 F %=1:1:$L(X)+1 S I=$E(X,%) I "(,.?! '-/&:;)"[I S I=$E($E(X,%1,%-1),1,30),%1=%+1 I $L(I)>2 K ^BCHRPAT("D",I,DA)