FHINI0L9 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(116.1) 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(116.112,.01,1,1,2)
;;=K ^FH(116.1,DA(2),"RE",DA(1),"D","B",$E(X,1,30),DA)
;;^DD(116.112,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.112,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the SERVICE POINT field.
;;^DD(116.112,.01,21,0)
;;=^^2^2^2911118^^^^
;;^DD(116.112,.01,21,1,0)
;;=This is the Service Point for which popularity values are
;;^DD(116.112,.01,21,2,0)
;;=applicable.
;;^DD(116.112,.01,"DT")
;;=2911204
;;^DD(116.112,1,0)
;;=POPULARITY %^NJ5,1^^0;2^K:+X'=X!(X>200)!(X<0)!(X?.E1"."2N.N) X
;;^DD(116.112,1,3)
;;=Type a Number between 0 and 200, 1 Decimal Digit
;;^DD(116.112,1,21,0)
;;=^^2^2^2911203^^^
;;^DD(116.112,1,21,1,0)
;;=This is the percentage of orders for this Service Point
;;^DD(116.112,1,21,2,0)
;;=which will select, or have selected, this recipe.
;;^DD(116.112,1,"DT")
;;=2911203
;;^DD(116.12,0)
;;=RECIPE CATEGORY SUB-FIELD^^1^2
;;^DD(116.12,0,"DT")
;;=2950329
;;^DD(116.12,0,"IX","B",116.12,.01)
;;=
;;^DD(116.12,0,"NM","RECIPE CATEGORY")
;;=
;;^DD(116.12,0,"UP")
;;=116.11
;;^DD(116.12,.01,0)
;;=RECIPE CATEGORY^MRP114.1'^FH(114.1,^0;1^Q
;;^DD(116.12,.01,1,0)
;;=^.1
;;^DD(116.12,.01,1,1,0)
;;=116.12^B
;;^DD(116.12,.01,1,1,1)
;;=S ^FH(116.1,DA(2),"RE",DA(1),"R","B",$E(X,1,30),DA)=""
;;^DD(116.12,.01,1,1,2)
;;=K ^FH(116.1,DA(2),"RE",DA(1),"R","B",$E(X,1,30),DA)
;;^DD(116.12,.01,21,0)
;;=^^2^2^2950605^^
;;^DD(116.12,.01,21,1,0)
;;=This is the Recipe Category (File 114.1) for the associated
;;^DD(116.12,.01,21,2,0)
;;=Production Diets in this meal.
;;^DD(116.12,.01,"DT")
;;=2950329
;;^DD(116.12,1,0)
;;=PRODUCTION DIETS^RFX^^0;2^K:$L(X)>200!($L(X)<1) X I $D(X) D EN2^FHPRC1
;;^DD(116.12,1,3)
;;=
;;^DD(116.12,1,4)
;;=D EN3^FHPRC1
;;^DD(116.12,1,21,0)
;;=^^4^4^2950329^^^^
;;^DD(116.12,1,21,1,0)
;;=This is a list of the production diets which will receive the
;;^DD(116.12,1,21,2,0)
;;=recipe. It is a syntactically complex field containing the
;;^DD(116.12,1,21,3,0)
;;=production diet code and any specialized tray and cafeteria %'s
;;^DD(116.12,1,21,4,0)
;;=associated with that production diet.
;;^DD(116.12,1,"DT")
;;=2950330
FHINI0L9 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(116.1)
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(116.112,.01,1,1,2)
+2 ;;=K ^FH(116.1,DA(2),"RE",DA(1),"D","B",$E(X,1,30),DA)
+3 ;;^DD(116.112,.01,1,1,"%D",0)
+4 ;;=^^1^1^2911118^
+5 ;;^DD(116.112,.01,1,1,"%D",1,0)
+6 ;;=This is the normal B cross-reference of the SERVICE POINT field.
+7 ;;^DD(116.112,.01,21,0)
+8 ;;=^^2^2^2911118^^^^
+9 ;;^DD(116.112,.01,21,1,0)
+10 ;;=This is the Service Point for which popularity values are
+11 ;;^DD(116.112,.01,21,2,0)
+12 ;;=applicable.
+13 ;;^DD(116.112,.01,"DT")
+14 ;;=2911204
+15 ;;^DD(116.112,1,0)
+16 ;;=POPULARITY %^NJ5,1^^0;2^K:+X'=X!(X>200)!(X<0)!(X?.E1"."2N.N) X
+17 ;;^DD(116.112,1,3)
+18 ;;=Type a Number between 0 and 200, 1 Decimal Digit
+19 ;;^DD(116.112,1,21,0)
+20 ;;=^^2^2^2911203^^^
+21 ;;^DD(116.112,1,21,1,0)
+22 ;;=This is the percentage of orders for this Service Point
+23 ;;^DD(116.112,1,21,2,0)
+24 ;;=which will select, or have selected, this recipe.
+25 ;;^DD(116.112,1,"DT")
+26 ;;=2911203
+27 ;;^DD(116.12,0)
+28 ;;=RECIPE CATEGORY SUB-FIELD^^1^2
+29 ;;^DD(116.12,0,"DT")
+30 ;;=2950329
+31 ;;^DD(116.12,0,"IX","B",116.12,.01)
+32 ;;=
+33 ;;^DD(116.12,0,"NM","RECIPE CATEGORY")
+34 ;;=
+35 ;;^DD(116.12,0,"UP")
+36 ;;=116.11
+37 ;;^DD(116.12,.01,0)
+38 ;;=RECIPE CATEGORY^MRP114.1'^FH(114.1,^0;1^Q
+39 ;;^DD(116.12,.01,1,0)
+40 ;;=^.1
+41 ;;^DD(116.12,.01,1,1,0)
+42 ;;=116.12^B
+43 ;;^DD(116.12,.01,1,1,1)
+44 ;;=S ^FH(116.1,DA(2),"RE",DA(1),"R","B",$E(X,1,30),DA)=""
+45 ;;^DD(116.12,.01,1,1,2)
+46 ;;=K ^FH(116.1,DA(2),"RE",DA(1),"R","B",$E(X,1,30),DA)
+47 ;;^DD(116.12,.01,21,0)
+48 ;;=^^2^2^2950605^^
+49 ;;^DD(116.12,.01,21,1,0)
+50 ;;=This is the Recipe Category (File 114.1) for the associated
+51 ;;^DD(116.12,.01,21,2,0)
+52 ;;=Production Diets in this meal.
+53 ;;^DD(116.12,.01,"DT")
+54 ;;=2950329
+55 ;;^DD(116.12,1,0)
+56 ;;=PRODUCTION DIETS^RFX^^0;2^K:$L(X)>200!($L(X)<1) X I $D(X) D EN2^FHPRC1
+57 ;;^DD(116.12,1,3)
+58 ;;=
+59 ;;^DD(116.12,1,4)
+60 ;;=D EN3^FHPRC1
+61 ;;^DD(116.12,1,21,0)
+62 ;;=^^4^4^2950329^^^^
+63 ;;^DD(116.12,1,21,1,0)
+64 ;;=This is a list of the production diets which will receive the
+65 ;;^DD(116.12,1,21,2,0)
+66 ;;=recipe. It is a syntactically complex field containing the
+67 ;;^DD(116.12,1,21,3,0)
+68 ;;=production diet code and any specialized tray and cafeteria %'s
+69 ;;^DD(116.12,1,21,4,0)
+70 ;;=associated with that production diet.
+71 ;;^DD(116.12,1,"DT")
+72 ;;=2950330