FHINI006 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(111.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(111.116,1,21,1,0)
;;=This is the selected quantity for the Recipe Category. This quantity
;;^DD(111.116,1,21,2,0)
;;=determines the amount of the recipe on the Tray Ticket. If a zero
;;^DD(111.116,1,21,3,0)
;;=is entered, the recipe is omitted.
;;^DD(111.116,1,"DT")
;;=2940706
;;^DD(111.117,0)
;;=EVENING MODIFICATIONS SUB-FIELD^^1^2
;;^DD(111.117,0,"DT")
;;=2940706
;;^DD(111.117,0,"IX","B",111.117,.01)
;;=
;;^DD(111.117,0,"NM","EVENING MODIFICATIONS")
;;=
;;^DD(111.117,0,"UP")
;;=111.1
;;^DD(111.117,.01,0)
;;=EVENING MODIFICATIONS^MP114.1'^FH(114.1,^0;1^Q
;;^DD(111.117,.01,1,0)
;;=^.1
;;^DD(111.117,.01,1,1,0)
;;=111.117^B
;;^DD(111.117,.01,1,1,1)
;;=S ^FH(111.1,DA(1),"E","B",$E(X,1,30),DA)=""
;;^DD(111.117,.01,1,1,2)
;;=K ^FH(111.1,DA(1),"E","B",$E(X,1,30),DA)
;;^DD(111.117,.01,21,0)
;;=^^5^5^2940526^^^
;;^DD(111.117,.01,21,1,0)
;;=This is the Recipe Category selected from the file (114.1) for the
;;^DD(111.117,.01,21,2,0)
;;=evening meal for the selected diet modifications. It determines
;;^DD(111.117,.01,21,3,0)
;;=which recipes each patient under the diet modifications will
;;^DD(111.117,.01,21,4,0)
;;=receive on the Tray Ticket. This Recipe Category is also used
;;^DD(111.117,.01,21,5,0)
;;=in producing the Diet Cards.
;;^DD(111.117,.01,"DT")
;;=2940103
;;^DD(111.117,1,0)
;;=QUANTITY^RNJ4,2^^0;2^K:+X'=X!(X>9.99)!(X<0)!(X?.E1"."3N.N) X
;;^DD(111.117,1,3)
;;=Type a Number between 0 and 9.99, 2 Decimal Digits
;;^DD(111.117,1,21,0)
;;=^^3^3^2940526^
;;^DD(111.117,1,21,1,0)
;;=This is the selected quantity for the Recipe Category. This quantity
;;^DD(111.117,1,21,2,0)
;;=determines the amount of the recipe on the Tray Ticket. If a zero
;;^DD(111.117,1,21,3,0)
;;=is entered, the recipe is omitted.
;;^DD(111.117,1,"DT")
;;=2940706
;;^DD(111.119,0)
;;=DIET RESTRICTION SUB-FIELD^^1^2
;;^DD(111.119,0,"DT")
;;=2950418
;;^DD(111.119,0,"IX","B",111.119,.01)
;;=
;;^DD(111.119,0,"NM","DIET RESTRICTION")
;;=
;;^DD(111.119,0,"UP")
;;=111.1
;;^DD(111.119,.01,0)
;;=DIET RESTRICTION^M*P115.2'^FH(115.2,^0;1^S DIC("S")="I $P(^(0),U,2)=""D""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(111.119,.01,1,0)
;;=^.1
;;^DD(111.119,.01,1,1,0)
;;=111.119^B
;;^DD(111.119,.01,1,1,1)
;;=S ^FH(111.1,DA(1),"RES","B",$E(X,1,30),DA)=""
;;^DD(111.119,.01,1,1,2)
;;=K ^FH(111.1,DA(1),"RES","B",$E(X,1,30),DA)
;;^DD(111.119,.01,12)
;;=This screen allows the user to only select the dislikes from the Food Preference file.
;;^DD(111.119,.01,12.1)
;;=S DIC("S")="I $P(^(0),U,2)=""D"""
;;^DD(111.119,.01,21,0)
;;=^^1^1^2950403^^^^
;;^DD(111.119,.01,21,1,0)
;;=This is the dislike food preference from the file (115.2).
;;^DD(111.119,.01,"DT")
;;=2950403
;;^DD(111.119,1,0)
;;=MEALS^RFX^^0;2^S:$P("ALL",X,1)="" X="BNE" S %=X,X="" S:%["B" X="B" S:%["N" X=X_"N" S:%["E" X=X_"E" K:$L(%)'=$L(X) X K %
;;^DD(111.119,1,3)
;;=Answer should be a string of meals (e.g., B or BN or BNE) or A for all meals.
;;^DD(111.119,1,21,0)
;;=^^2^2^2950418^^^
;;^DD(111.119,1,21,1,0)
;;=This field contains the meals (B N and E) for which this diet
;;^DD(111.119,1,21,2,0)
;;=restriction is applicable.
;;^DD(111.119,1,"DT")
;;=2950418
;;^DD(111.12,0)
;;=ASSOCIATED STANDING ORDERS (N) SUB-FIELD^^1^2
;;^DD(111.12,0,"DT")
;;=2940722
;;^DD(111.12,0,"IX","B",111.12,.01)
;;=
;;^DD(111.12,0,"NM","ASSOCIATED STANDING ORDERS (N)")
;;=
;;^DD(111.12,0,"UP")
;;=111.1
;;^DD(111.12,.01,0)
;;=ASSOCIATED STANDING ORDERS (N)^MP118.3'^FH(118.3,^0;1^Q
;;^DD(111.12,.01,1,0)
;;=^.1
;;^DD(111.12,.01,1,1,0)
;;=111.12^B
;;^DD(111.12,.01,1,1,1)
;;=S ^FH(111.1,DA(1),"NS","B",$E(X,1,30),DA)=""
;;^DD(111.12,.01,1,1,2)
;;=K ^FH(111.1,DA(1),"NS","B",$E(X,1,30),DA)
;;^DD(111.12,.01,21,0)
;;=^^3^3^2950717^^
;;^DD(111.12,.01,21,1,0)
;;=The Standing Orders on this multiple will all be added to the patient's
;;^DD(111.12,.01,21,2,0)
;;=Standing Order entries for the meal noon when this diet or diet
;;^DD(111.12,.01,21,3,0)
;;=modification is ordered for the patient.
;;^DD(111.12,.01,"DT")
;;=2940721
;;^DD(111.12,1,0)
;;=QUANTITY^NJ1,0^^0;2^K:+X'=X!(X>9)!(X<1)!(X?.E1"."1N.N) X
;;^DD(111.12,1,3)
;;=Type a Number between 1 and 9, 0 Decimal Digits
;;^DD(111.12,1,21,0)
;;=^^1^1^2940722^
;;^DD(111.12,1,21,1,0)
;;=This is the quantity of the Standing Order.
;;^DD(111.12,1,"DT")
;;=2940722
;;^DD(111.13,0)
;;=ASSOCIATED STANDING ORDERS (E) SUB-FIELD^^1^2
;;^DD(111.13,0,"DT")
;;=2940722
;;^DD(111.13,0,"IX","B",111.13,.01)
;;=
;;^DD(111.13,0,"NM","ASSOCIATED STANDING ORDERS (E)")
;;=
FHINI006 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(111.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(111.116,1,21,1,0)
+2 ;;=This is the selected quantity for the Recipe Category. This quantity
+3 ;;^DD(111.116,1,21,2,0)
+4 ;;=determines the amount of the recipe on the Tray Ticket. If a zero
+5 ;;^DD(111.116,1,21,3,0)
+6 ;;=is entered, the recipe is omitted.
+7 ;;^DD(111.116,1,"DT")
+8 ;;=2940706
+9 ;;^DD(111.117,0)
+10 ;;=EVENING MODIFICATIONS SUB-FIELD^^1^2
+11 ;;^DD(111.117,0,"DT")
+12 ;;=2940706
+13 ;;^DD(111.117,0,"IX","B",111.117,.01)
+14 ;;=
+15 ;;^DD(111.117,0,"NM","EVENING MODIFICATIONS")
+16 ;;=
+17 ;;^DD(111.117,0,"UP")
+18 ;;=111.1
+19 ;;^DD(111.117,.01,0)
+20 ;;=EVENING MODIFICATIONS^MP114.1'^FH(114.1,^0;1^Q
+21 ;;^DD(111.117,.01,1,0)
+22 ;;=^.1
+23 ;;^DD(111.117,.01,1,1,0)
+24 ;;=111.117^B
+25 ;;^DD(111.117,.01,1,1,1)
+26 ;;=S ^FH(111.1,DA(1),"E","B",$E(X,1,30),DA)=""
+27 ;;^DD(111.117,.01,1,1,2)
+28 ;;=K ^FH(111.1,DA(1),"E","B",$E(X,1,30),DA)
+29 ;;^DD(111.117,.01,21,0)
+30 ;;=^^5^5^2940526^^^
+31 ;;^DD(111.117,.01,21,1,0)
+32 ;;=This is the Recipe Category selected from the file (114.1) for the
+33 ;;^DD(111.117,.01,21,2,0)
+34 ;;=evening meal for the selected diet modifications. It determines
+35 ;;^DD(111.117,.01,21,3,0)
+36 ;;=which recipes each patient under the diet modifications will
+37 ;;^DD(111.117,.01,21,4,0)
+38 ;;=receive on the Tray Ticket. This Recipe Category is also used
+39 ;;^DD(111.117,.01,21,5,0)
+40 ;;=in producing the Diet Cards.
+41 ;;^DD(111.117,.01,"DT")
+42 ;;=2940103
+43 ;;^DD(111.117,1,0)
+44 ;;=QUANTITY^RNJ4,2^^0;2^K:+X'=X!(X>9.99)!(X<0)!(X?.E1"."3N.N) X
+45 ;;^DD(111.117,1,3)
+46 ;;=Type a Number between 0 and 9.99, 2 Decimal Digits
+47 ;;^DD(111.117,1,21,0)
+48 ;;=^^3^3^2940526^
+49 ;;^DD(111.117,1,21,1,0)
+50 ;;=This is the selected quantity for the Recipe Category. This quantity
+51 ;;^DD(111.117,1,21,2,0)
+52 ;;=determines the amount of the recipe on the Tray Ticket. If a zero
+53 ;;^DD(111.117,1,21,3,0)
+54 ;;=is entered, the recipe is omitted.
+55 ;;^DD(111.117,1,"DT")
+56 ;;=2940706
+57 ;;^DD(111.119,0)
+58 ;;=DIET RESTRICTION SUB-FIELD^^1^2
+59 ;;^DD(111.119,0,"DT")
+60 ;;=2950418
+61 ;;^DD(111.119,0,"IX","B",111.119,.01)
+62 ;;=
+63 ;;^DD(111.119,0,"NM","DIET RESTRICTION")
+64 ;;=
+65 ;;^DD(111.119,0,"UP")
+66 ;;=111.1
+67 ;;^DD(111.119,.01,0)
+68 ;;=DIET RESTRICTION^M*P115.2'^FH(115.2,^0;1^S DIC("S")="I $P(^(0),U,2)=""D""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+69 ;;^DD(111.119,.01,1,0)
+70 ;;=^.1
+71 ;;^DD(111.119,.01,1,1,0)
+72 ;;=111.119^B
+73 ;;^DD(111.119,.01,1,1,1)
+74 ;;=S ^FH(111.1,DA(1),"RES","B",$E(X,1,30),DA)=""
+75 ;;^DD(111.119,.01,1,1,2)
+76 ;;=K ^FH(111.1,DA(1),"RES","B",$E(X,1,30),DA)
+77 ;;^DD(111.119,.01,12)
+78 ;;=This screen allows the user to only select the dislikes from the Food Preference file.
+79 ;;^DD(111.119,.01,12.1)
+80 ;;=S DIC("S")="I $P(^(0),U,2)=""D"""
+81 ;;^DD(111.119,.01,21,0)
+82 ;;=^^1^1^2950403^^^^
+83 ;;^DD(111.119,.01,21,1,0)
+84 ;;=This is the dislike food preference from the file (115.2).
+85 ;;^DD(111.119,.01,"DT")
+86 ;;=2950403
+87 ;;^DD(111.119,1,0)
+88 ;;=MEALS^RFX^^0;2^S:$P("ALL",X,1)="" X="BNE" S %=X,X="" S:%["B" X="B" S:%["N" X=X_"N" S:%["E" X=X_"E" K:$L(%)'=$L(X) X K %
+89 ;;^DD(111.119,1,3)
+90 ;;=Answer should be a string of meals (e.g., B or BN or BNE) or A for all meals.
+91 ;;^DD(111.119,1,21,0)
+92 ;;=^^2^2^2950418^^^
+93 ;;^DD(111.119,1,21,1,0)
+94 ;;=This field contains the meals (B N and E) for which this diet
+95 ;;^DD(111.119,1,21,2,0)
+96 ;;=restriction is applicable.
+97 ;;^DD(111.119,1,"DT")
+98 ;;=2950418
+99 ;;^DD(111.12,0)
+100 ;;=ASSOCIATED STANDING ORDERS (N) SUB-FIELD^^1^2
+101 ;;^DD(111.12,0,"DT")
+102 ;;=2940722
+103 ;;^DD(111.12,0,"IX","B",111.12,.01)
+104 ;;=
+105 ;;^DD(111.12,0,"NM","ASSOCIATED STANDING ORDERS (N)")
+106 ;;=
+107 ;;^DD(111.12,0,"UP")
+108 ;;=111.1
+109 ;;^DD(111.12,.01,0)
+110 ;;=ASSOCIATED STANDING ORDERS (N)^MP118.3'^FH(118.3,^0;1^Q
+111 ;;^DD(111.12,.01,1,0)
+112 ;;=^.1
+113 ;;^DD(111.12,.01,1,1,0)
+114 ;;=111.12^B
+115 ;;^DD(111.12,.01,1,1,1)
+116 ;;=S ^FH(111.1,DA(1),"NS","B",$E(X,1,30),DA)=""
+117 ;;^DD(111.12,.01,1,1,2)
+118 ;;=K ^FH(111.1,DA(1),"NS","B",$E(X,1,30),DA)
+119 ;;^DD(111.12,.01,21,0)
+120 ;;=^^3^3^2950717^^
+121 ;;^DD(111.12,.01,21,1,0)
+122 ;;=The Standing Orders on this multiple will all be added to the patient's
+123 ;;^DD(111.12,.01,21,2,0)
+124 ;;=Standing Order entries for the meal noon when this diet or diet
+125 ;;^DD(111.12,.01,21,3,0)
+126 ;;=modification is ordered for the patient.
+127 ;;^DD(111.12,.01,"DT")
+128 ;;=2940721
+129 ;;^DD(111.12,1,0)
+130 ;;=QUANTITY^NJ1,0^^0;2^K:+X'=X!(X>9)!(X<1)!(X?.E1"."1N.N) X
+131 ;;^DD(111.12,1,3)
+132 ;;=Type a Number between 1 and 9, 0 Decimal Digits
+133 ;;^DD(111.12,1,21,0)
+134 ;;=^^1^1^2940722^
+135 ;;^DD(111.12,1,21,1,0)
+136 ;;=This is the quantity of the Standing Order.
+137 ;;^DD(111.12,1,"DT")
+138 ;;=2940722
+139 ;;^DD(111.13,0)
+140 ;;=ASSOCIATED STANDING ORDERS (E) SUB-FIELD^^1^2
+141 ;;^DD(111.13,0,"DT")
+142 ;;=2940722
+143 ;;^DD(111.13,0,"IX","B",111.13,.01)
+144 ;;=
+145 ;;^DD(111.13,0,"NM","ASSOCIATED STANDING ORDERS (E)")
+146 ;;=