FHINI002 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(111) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DD(111,6,3)
;;=ANSWER MUST BE 1-12 CHARACTERS IN LENGTH
;;^DD(111,6,21,0)
;;=^^3^3^2880709^
;;^DD(111,6,21,1,0)
;;=This is an abbreviated label title used on diet cards; the
;;^DD(111,6,21,2,0)
;;=terminology and abbreviations will normally be those used
;;^DD(111,6,21,3,0)
;;=by dietetic personnel.
;;^DD(111,6,"DT")
;;=2850202
;;^DD(111,10,0)
;;=ALTERNATE NAME^111.01^^AN;0
;;^DD(111,10,21,0)
;;=^^3^3^2880714^^
;;^DD(111,10,21,1,0)
;;=This field may be used for any number of alternate names for
;;^DD(111,10,21,2,0)
;;=the diet modification. These alternative names will normally
;;^DD(111,10,21,3,0)
;;=be those used by ward/medical personnel.
;;^DD(111,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(111,99,1,0)
;;=^.1
;;^DD(111,99,1,1,0)
;;=111^AC^MUMPS
;;^DD(111,99,1,1,1)
;;=K:X'="Y" ^FH(111,DA,"I")
;;^DD(111,99,1,1,2)
;;=K ^FH(111,DA,"I")
;;^DD(111,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(111,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(111,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(111,99,21,0)
;;=^^2^2^2931116^^
;;^DD(111,99,21,1,0)
;;=This field, if answered YES, will prohibit further selection
;;^DD(111,99,21,2,0)
;;=of this diet modification by ward personnel.
;;^DD(111,99,"DT")
;;=2860813
;;^DD(111.01,0)
;;=ALTERNATE NAME SUB-FIELD^NL^.01^1
;;^DD(111.01,0,"NM","ALTERNATE NAME")
;;=
;;^DD(111.01,0,"UP")
;;=111
;;^DD(111.01,.01,0)
;;=ALTERNATE NAME^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<1) X
;;^DD(111.01,.01,1,0)
;;=^.1
;;^DD(111.01,.01,1,1,0)
;;=111^B^MNEMONIC
;;^DD(111.01,.01,1,1,1)
;;=S:'$D(^FH(111,"B",$E(X,1,30),DA(1),DA)) ^(DA)=1
;;^DD(111.01,.01,1,1,2)
;;=I $D(^FH(111,"B",$E(X,1,30),DA(1),DA)),^(DA) K ^(DA)
;;^DD(111.01,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(111.01,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the ALTERNATE NAME field.
;;^DD(111.01,.01,3)
;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
;;^DD(111.01,.01,21,0)
;;=^^1^1^2880714^
;;^DD(111.01,.01,21,1,0)
;;=This field contains an alternate name for the diet.
;;^DD(111.01,.01,"DT")
;;=2900510
FHINI002 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(111)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(111,6,3)
+2 ;;=ANSWER MUST BE 1-12 CHARACTERS IN LENGTH
+3 ;;^DD(111,6,21,0)
+4 ;;=^^3^3^2880709^
+5 ;;^DD(111,6,21,1,0)
+6 ;;=This is an abbreviated label title used on diet cards; the
+7 ;;^DD(111,6,21,2,0)
+8 ;;=terminology and abbreviations will normally be those used
+9 ;;^DD(111,6,21,3,0)
+10 ;;=by dietetic personnel.
+11 ;;^DD(111,6,"DT")
+12 ;;=2850202
+13 ;;^DD(111,10,0)
+14 ;;=ALTERNATE NAME^111.01^^AN;0
+15 ;;^DD(111,10,21,0)
+16 ;;=^^3^3^2880714^^
+17 ;;^DD(111,10,21,1,0)
+18 ;;=This field may be used for any number of alternate names for
+19 ;;^DD(111,10,21,2,0)
+20 ;;=the diet modification. These alternative names will normally
+21 ;;^DD(111,10,21,3,0)
+22 ;;=be those used by ward/medical personnel.
+23 ;;^DD(111,99,0)
+24 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+25 ;;^DD(111,99,1,0)
+26 ;;=^.1
+27 ;;^DD(111,99,1,1,0)
+28 ;;=111^AC^MUMPS
+29 ;;^DD(111,99,1,1,1)
+30 ;;=K:X'="Y" ^FH(111,DA,"I")
+31 ;;^DD(111,99,1,1,2)
+32 ;;=K ^FH(111,DA,"I")
+33 ;;^DD(111,99,1,1,"%D",0)
+34 ;;=^^2^2^2940818^
+35 ;;^DD(111,99,1,1,"%D",1,0)
+36 ;;=This cross-reference is used to create an 'I' node for
+37 ;;^DD(111,99,1,1,"%D",2,0)
+38 ;;=inactive entries.
+39 ;;^DD(111,99,21,0)
+40 ;;=^^2^2^2931116^^
+41 ;;^DD(111,99,21,1,0)
+42 ;;=This field, if answered YES, will prohibit further selection
+43 ;;^DD(111,99,21,2,0)
+44 ;;=of this diet modification by ward personnel.
+45 ;;^DD(111,99,"DT")
+46 ;;=2860813
+47 ;;^DD(111.01,0)
+48 ;;=ALTERNATE NAME SUB-FIELD^NL^.01^1
+49 ;;^DD(111.01,0,"NM","ALTERNATE NAME")
+50 ;;=
+51 ;;^DD(111.01,0,"UP")
+52 ;;=111
+53 ;;^DD(111.01,.01,0)
+54 ;;=ALTERNATE NAME^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<1) X
+55 ;;^DD(111.01,.01,1,0)
+56 ;;=^.1
+57 ;;^DD(111.01,.01,1,1,0)
+58 ;;=111^B^MNEMONIC
+59 ;;^DD(111.01,.01,1,1,1)
+60 ;;=S:'$D(^FH(111,"B",$E(X,1,30),DA(1),DA)) ^(DA)=1
+61 ;;^DD(111.01,.01,1,1,2)
+62 ;;=I $D(^FH(111,"B",$E(X,1,30),DA(1),DA)),^(DA) K ^(DA)
+63 ;;^DD(111.01,.01,1,1,"%D",0)
+64 ;;=^^1^1^2911118^
+65 ;;^DD(111.01,.01,1,1,"%D",1,0)
+66 ;;=This is the normal B cross-reference of the ALTERNATE NAME field.
+67 ;;^DD(111.01,.01,3)
+68 ;;=ANSWER MUST BE 1-30 CHARACTERS IN LENGTH
+69 ;;^DD(111.01,.01,21,0)
+70 ;;=^^1^1^2880714^
+71 ;;^DD(111.01,.01,21,1,0)
+72 ;;=This field contains an alternate name for the diet.
+73 ;;^DD(111.01,.01,"DT")
+74 ;;=2900510