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