FHINI0M3 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(118) 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(118,20,21,2,0)
;;=computed field which obtains the value from the recipe file based
;;^DD(118,20,21,3,0)
;;=upon the 'Corresponding Recipe' pointer.
;;^DD(118,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(118,99,1,0)
;;=^.1
;;^DD(118,99,1,1,0)
;;=118^AD^MUMPS
;;^DD(118,99,1,1,1)
;;=K:X'="Y" ^FH(118,DA,"I")
;;^DD(118,99,1,1,2)
;;=K ^FH(118,DA,"I")
;;^DD(118,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(118,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(118,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(118,99,21,0)
;;=^^2^2^2880717^
;;^DD(118,99,21,1,0)
;;=This field, when answered YES, means that further selection of
;;^DD(118,99,21,2,0)
;;=this item by dietetic personnel is prohibited.
;;^DD(118,99,"DT")
;;=2860813
;;^DD(118.01,0)
;;=SYNONYM SUB-FIELD^^.01^1
;;^DD(118.01,0,"IX","B",118.01,.01)
;;=
;;^DD(118.01,0,"NM","SYNONYM")
;;=
;;^DD(118.01,0,"UP")
;;=118
;;^DD(118.01,.01,0)
;;=SYNONYM^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X
;;^DD(118.01,.01,1,0)
;;=^.1
;;^DD(118.01,.01,1,1,0)
;;=118.01^B
;;^DD(118.01,.01,1,1,1)
;;=S ^FH(118,DA(1),"S","B",$E(X,1,30),DA)=""
;;^DD(118.01,.01,1,1,2)
;;=K ^FH(118,DA(1),"S","B",$E(X,1,30),DA)
;;^DD(118.01,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(118.01,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the SYNONYM field.
;;^DD(118.01,.01,1,2,0)
;;=118^B^MNEMONIC
;;^DD(118.01,.01,1,2,1)
;;=S:'$D(^FH(118,"B",$E(X,1,30),DA(1),DA)) ^(DA)=1
;;^DD(118.01,.01,1,2,2)
;;=I $D(^FH(118,"B",$E(X,1,30),DA(1),DA)),^(DA) K ^(DA)
;;^DD(118.01,.01,1,2,"%D",0)
;;=^^1^1^2911118^
;;^DD(118.01,.01,1,2,"%D",1,0)
;;=This is the normal B cross-reference of the SYNONYM field.
;;^DD(118.01,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(118.01,.01,21,0)
;;=^^1^1^2901217^
;;^DD(118.01,.01,21,1,0)
;;=This field contains a synonym for the supplemental feeding.
;;^DD(118.01,.01,"DT")
;;=2900918
FHINI0M3 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(118)
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(118,20,21,2,0)
+2 ;;=computed field which obtains the value from the recipe file based
+3 ;;^DD(118,20,21,3,0)
+4 ;;=upon the 'Corresponding Recipe' pointer.
+5 ;;^DD(118,99,0)
+6 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+7 ;;^DD(118,99,1,0)
+8 ;;=^.1
+9 ;;^DD(118,99,1,1,0)
+10 ;;=118^AD^MUMPS
+11 ;;^DD(118,99,1,1,1)
+12 ;;=K:X'="Y" ^FH(118,DA,"I")
+13 ;;^DD(118,99,1,1,2)
+14 ;;=K ^FH(118,DA,"I")
+15 ;;^DD(118,99,1,1,"%D",0)
+16 ;;=^^2^2^2940818^
+17 ;;^DD(118,99,1,1,"%D",1,0)
+18 ;;=This cross-reference is used to create an 'I' node for
+19 ;;^DD(118,99,1,1,"%D",2,0)
+20 ;;=inactive entries.
+21 ;;^DD(118,99,21,0)
+22 ;;=^^2^2^2880717^
+23 ;;^DD(118,99,21,1,0)
+24 ;;=This field, when answered YES, means that further selection of
+25 ;;^DD(118,99,21,2,0)
+26 ;;=this item by dietetic personnel is prohibited.
+27 ;;^DD(118,99,"DT")
+28 ;;=2860813
+29 ;;^DD(118.01,0)
+30 ;;=SYNONYM SUB-FIELD^^.01^1
+31 ;;^DD(118.01,0,"IX","B",118.01,.01)
+32 ;;=
+33 ;;^DD(118.01,0,"NM","SYNONYM")
+34 ;;=
+35 ;;^DD(118.01,0,"UP")
+36 ;;=118
+37 ;;^DD(118.01,.01,0)
+38 ;;=SYNONYM^MF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3) X
+39 ;;^DD(118.01,.01,1,0)
+40 ;;=^.1
+41 ;;^DD(118.01,.01,1,1,0)
+42 ;;=118.01^B
+43 ;;^DD(118.01,.01,1,1,1)
+44 ;;=S ^FH(118,DA(1),"S","B",$E(X,1,30),DA)=""
+45 ;;^DD(118.01,.01,1,1,2)
+46 ;;=K ^FH(118,DA(1),"S","B",$E(X,1,30),DA)
+47 ;;^DD(118.01,.01,1,1,"%D",0)
+48 ;;=^^1^1^2911118^
+49 ;;^DD(118.01,.01,1,1,"%D",1,0)
+50 ;;=This is the normal B cross-reference of the SYNONYM field.
+51 ;;^DD(118.01,.01,1,2,0)
+52 ;;=118^B^MNEMONIC
+53 ;;^DD(118.01,.01,1,2,1)
+54 ;;=S:'$D(^FH(118,"B",$E(X,1,30),DA(1),DA)) ^(DA)=1
+55 ;;^DD(118.01,.01,1,2,2)
+56 ;;=I $D(^FH(118,"B",$E(X,1,30),DA(1),DA)),^(DA) K ^(DA)
+57 ;;^DD(118.01,.01,1,2,"%D",0)
+58 ;;=^^1^1^2911118^
+59 ;;^DD(118.01,.01,1,2,"%D",1,0)
+60 ;;=This is the normal B cross-reference of the SYNONYM field.
+61 ;;^DD(118.01,.01,3)
+62 ;;=Answer must be 3-30 characters in length.
+63 ;;^DD(118.01,.01,21,0)
+64 ;;=^^1^1^2901217^
+65 ;;^DD(118.01,.01,21,1,0)
+66 ;;=This field contains a synonym for the supplemental feeding.
+67 ;;^DD(118.01,.01,"DT")
+68 ;;=2900918