FHINI0KR ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(115) 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(115.07,.01,3)
;;=Type a Number between 0 and 9999, 0 Decimal Digits
;;^DD(115.07,.01,21,0)
;;=^^2^2^2910708^^
;;^DD(115.07,.01,21,1,0)
;;=This field is merely the sequence in which the various orders
;;^DD(115.07,.01,21,2,0)
;;=were entered and has no meaning beyond that.
;;^DD(115.07,.01,"DT")
;;=2871018
;;^DD(115.07,1,0)
;;=DATE/TIME ORDERED^RD^^0;2^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
;;^DD(115.07,1,21,0)
;;=^^2^2^2910612^^^
;;^DD(115.07,1,21,1,0)
;;=This is the date/time at which the order was entered and is
;;^DD(115.07,1,21,2,0)
;;=captured automatically.
;;^DD(115.07,1,"DT")
;;=2871018
;;^DD(115.07,2,0)
;;=ENTERING CLERK^RP200'^VA(200,^0;3^Q
;;^DD(115.07,2,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,2,21,1,0)
;;=This is the person actually entering the order and is captured
;;^DD(115.07,2,21,2,0)
;;=automatically at time of entry.
;;^DD(115.07,2,"DT")
;;=2871018
;;^DD(115.07,3,0)
;;=SF MENU^RP118.1'^FH(118.1,^0;4^Q
;;^DD(115.07,3,21,0)
;;=^^4^4^2880718^^
;;^DD(115.07,3,21,1,0)
;;=This is the supplemental feeding menu of the
;;^DD(115.07,3,21,2,0)
;;=Supplemental Feeding Menu file (118.1) that was selected. If
;;^DD(115.07,3,21,3,0)
;;=other than 'Individualized', the items from the selected
;;^DD(115.07,3,21,4,0)
;;=menu were moved into this order.
;;^DD(115.07,3,"DT")
;;=2871018
;;^DD(115.07,10,0)
;;=10AM FEEDING #1^*P118'^FH(118,^0;5^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(115.07,10,12)
;;=Cannot select bulk nourishments
;;^DD(115.07,10,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.07,10,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,10,21,1,0)
;;=This is the first supplemental feeding ordered for the 10am
;;^DD(115.07,10,21,2,0)
;;=feeding.
;;^DD(115.07,10,"DT")
;;=2871018
;;^DD(115.07,11,0)
;;=10AM #1 QTY^NJ2,0^^0;6^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.07,11,3)
;;=Type a Number between 1 and 20, 0 Decimal Digits
;;^DD(115.07,11,21,0)
;;=^^1^1^2880710^^^
;;^DD(115.07,11,21,1,0)
;;=This is the ordered quantity of the first 10am feeding.
;;^DD(115.07,11,"DT")
;;=2871018
;;^DD(115.07,12,0)
;;=10AM FEEDING #2^*P118'^FH(118,^0;7^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(115.07,12,12)
;;=Cannot select bulk nourishments
;;^DD(115.07,12,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.07,12,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,12,21,1,0)
;;=This is the second supplemental feeding ordered for the 10am
;;^DD(115.07,12,21,2,0)
;;=feeding.
;;^DD(115.07,13,0)
;;=10AM #2 QTY^NJ2,0^^0;8^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.07,13,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(115.07,13,21,0)
;;=^^1^1^2880710^^
;;^DD(115.07,13,21,1,0)
;;=This is the ordered quantity for the second 10am feeding.
;;^DD(115.07,14,0)
;;=10AM FEEDING #3^*P118'^FH(118,^0;9^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(115.07,14,12)
;;=Cannot select bulk nourishments
;;^DD(115.07,14,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.07,14,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,14,21,1,0)
;;=This is the third supplemental feeding ordered for the 10am
;;^DD(115.07,14,21,2,0)
;;=feeding.
;;^DD(115.07,15,0)
;;=10AM #3 QTY^NJ2,0^^0;10^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.07,15,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(115.07,15,21,0)
;;=^^1^1^2880710^^
;;^DD(115.07,15,21,1,0)
;;=This is the ordered quantity for the third 10am feeding.
;;^DD(115.07,16,0)
;;=10AM FEEDING #4^*P118'^FH(118,^0;11^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(115.07,16,12)
;;=Cannot select bulk nourishments
;;^DD(115.07,16,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.07,16,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,16,21,1,0)
;;=This is the fourth supplemental feeding ordered for the 10am
;;^DD(115.07,16,21,2,0)
;;=feeding.
;;^DD(115.07,17,0)
;;=10AM #4 QTY^NJ2,0^^0;12^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.07,17,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(115.07,17,21,0)
;;=^^1^1^2880710^
;;^DD(115.07,17,21,1,0)
;;=This is the ordered quantity of the fourth 10am feeding.
;;^DD(115.07,18,0)
;;=2PM FEEDING #1^*P118'^FH(118,^0;13^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(115.07,18,12)
;;=Cannot select bulk nourishments
;;^DD(115.07,18,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.07,18,21,0)
;;=^^2^2^2880710^
;;^DD(115.07,18,21,1,0)
;;=This is the first supplemental feeding ordered for the 2pm
FHINI0KR ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(115)
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(115.07,.01,3)
+2 ;;=Type a Number between 0 and 9999, 0 Decimal Digits
+3 ;;^DD(115.07,.01,21,0)
+4 ;;=^^2^2^2910708^^
+5 ;;^DD(115.07,.01,21,1,0)
+6 ;;=This field is merely the sequence in which the various orders
+7 ;;^DD(115.07,.01,21,2,0)
+8 ;;=were entered and has no meaning beyond that.
+9 ;;^DD(115.07,.01,"DT")
+10 ;;=2871018
+11 ;;^DD(115.07,1,0)
+12 ;;=DATE/TIME ORDERED^RD^^0;2^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
+13 ;;^DD(115.07,1,21,0)
+14 ;;=^^2^2^2910612^^^
+15 ;;^DD(115.07,1,21,1,0)
+16 ;;=This is the date/time at which the order was entered and is
+17 ;;^DD(115.07,1,21,2,0)
+18 ;;=captured automatically.
+19 ;;^DD(115.07,1,"DT")
+20 ;;=2871018
+21 ;;^DD(115.07,2,0)
+22 ;;=ENTERING CLERK^RP200'^VA(200,^0;3^Q
+23 ;;^DD(115.07,2,21,0)
+24 ;;=^^2^2^2880710^
+25 ;;^DD(115.07,2,21,1,0)
+26 ;;=This is the person actually entering the order and is captured
+27 ;;^DD(115.07,2,21,2,0)
+28 ;;=automatically at time of entry.
+29 ;;^DD(115.07,2,"DT")
+30 ;;=2871018
+31 ;;^DD(115.07,3,0)
+32 ;;=SF MENU^RP118.1'^FH(118.1,^0;4^Q
+33 ;;^DD(115.07,3,21,0)
+34 ;;=^^4^4^2880718^^
+35 ;;^DD(115.07,3,21,1,0)
+36 ;;=This is the supplemental feeding menu of the
+37 ;;^DD(115.07,3,21,2,0)
+38 ;;=Supplemental Feeding Menu file (118.1) that was selected. If
+39 ;;^DD(115.07,3,21,3,0)
+40 ;;=other than 'Individualized', the items from the selected
+41 ;;^DD(115.07,3,21,4,0)
+42 ;;=menu were moved into this order.
+43 ;;^DD(115.07,3,"DT")
+44 ;;=2871018
+45 ;;^DD(115.07,10,0)
+46 ;;=10AM FEEDING #1^*P118'^FH(118,^0;5^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+47 ;;^DD(115.07,10,12)
+48 ;;=Cannot select bulk nourishments
+49 ;;^DD(115.07,10,12.1)
+50 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+51 ;;^DD(115.07,10,21,0)
+52 ;;=^^2^2^2880710^
+53 ;;^DD(115.07,10,21,1,0)
+54 ;;=This is the first supplemental feeding ordered for the 10am
+55 ;;^DD(115.07,10,21,2,0)
+56 ;;=feeding.
+57 ;;^DD(115.07,10,"DT")
+58 ;;=2871018
+59 ;;^DD(115.07,11,0)
+60 ;;=10AM #1 QTY^NJ2,0^^0;6^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+61 ;;^DD(115.07,11,3)
+62 ;;=Type a Number between 1 and 20, 0 Decimal Digits
+63 ;;^DD(115.07,11,21,0)
+64 ;;=^^1^1^2880710^^^
+65 ;;^DD(115.07,11,21,1,0)
+66 ;;=This is the ordered quantity of the first 10am feeding.
+67 ;;^DD(115.07,11,"DT")
+68 ;;=2871018
+69 ;;^DD(115.07,12,0)
+70 ;;=10AM FEEDING #2^*P118'^FH(118,^0;7^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+71 ;;^DD(115.07,12,12)
+72 ;;=Cannot select bulk nourishments
+73 ;;^DD(115.07,12,12.1)
+74 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+75 ;;^DD(115.07,12,21,0)
+76 ;;=^^2^2^2880710^
+77 ;;^DD(115.07,12,21,1,0)
+78 ;;=This is the second supplemental feeding ordered for the 10am
+79 ;;^DD(115.07,12,21,2,0)
+80 ;;=feeding.
+81 ;;^DD(115.07,13,0)
+82 ;;=10AM #2 QTY^NJ2,0^^0;8^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+83 ;;^DD(115.07,13,3)
+84 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+85 ;;^DD(115.07,13,21,0)
+86 ;;=^^1^1^2880710^^
+87 ;;^DD(115.07,13,21,1,0)
+88 ;;=This is the ordered quantity for the second 10am feeding.
+89 ;;^DD(115.07,14,0)
+90 ;;=10AM FEEDING #3^*P118'^FH(118,^0;9^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+91 ;;^DD(115.07,14,12)
+92 ;;=Cannot select bulk nourishments
+93 ;;^DD(115.07,14,12.1)
+94 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+95 ;;^DD(115.07,14,21,0)
+96 ;;=^^2^2^2880710^
+97 ;;^DD(115.07,14,21,1,0)
+98 ;;=This is the third supplemental feeding ordered for the 10am
+99 ;;^DD(115.07,14,21,2,0)
+100 ;;=feeding.
+101 ;;^DD(115.07,15,0)
+102 ;;=10AM #3 QTY^NJ2,0^^0;10^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+103 ;;^DD(115.07,15,3)
+104 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+105 ;;^DD(115.07,15,21,0)
+106 ;;=^^1^1^2880710^^
+107 ;;^DD(115.07,15,21,1,0)
+108 ;;=This is the ordered quantity for the third 10am feeding.
+109 ;;^DD(115.07,16,0)
+110 ;;=10AM FEEDING #4^*P118'^FH(118,^0;11^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+111 ;;^DD(115.07,16,12)
+112 ;;=Cannot select bulk nourishments
+113 ;;^DD(115.07,16,12.1)
+114 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+115 ;;^DD(115.07,16,21,0)
+116 ;;=^^2^2^2880710^
+117 ;;^DD(115.07,16,21,1,0)
+118 ;;=This is the fourth supplemental feeding ordered for the 10am
+119 ;;^DD(115.07,16,21,2,0)
+120 ;;=feeding.
+121 ;;^DD(115.07,17,0)
+122 ;;=10AM #4 QTY^NJ2,0^^0;12^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+123 ;;^DD(115.07,17,3)
+124 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+125 ;;^DD(115.07,17,21,0)
+126 ;;=^^1^1^2880710^
+127 ;;^DD(115.07,17,21,1,0)
+128 ;;=This is the ordered quantity of the fourth 10am feeding.
+129 ;;^DD(115.07,18,0)
+130 ;;=2PM FEEDING #1^*P118'^FH(118,^0;13^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+131 ;;^DD(115.07,18,12)
+132 ;;=Cannot select bulk nourishments
+133 ;;^DD(115.07,18,12.1)
+134 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+135 ;;^DD(115.07,18,21,0)
+136 ;;=^^2^2^2880710^
+137 ;;^DD(115.07,18,21,1,0)
+138 ;;=This is the first supplemental feeding ordered for the 2pm