FHINI0M6 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(118.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(118.1,13,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,13,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,13,21,0)
;;=^^1^1^2880710^^
;;^DD(118.1,13,21,1,0)
;;=This is the fourth supplemental feeding item for the 10am feeding.
;;^DD(118.1,13.5,0)
;;=10AM #4 QTY^NJ2,0^^1;8^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,13.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,13.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,13.5,21,1,0)
;;=This is the quantity of the fourth 10am feeding item.
;;^DD(118.1,14,0)
;;=2PM FEEDING #1^*P118'^FH(118,^1;9^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,14,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,14,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,14,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,14,21,1,0)
;;=This is the first supplemental feeding item for the 2pm feeding.
;;^DD(118.1,14.5,0)
;;=2PM #1 QTY^NJ2,0^^1;10^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,14.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,14.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,14.5,21,1,0)
;;=This is the quantity of the first 2pm feeding item.
;;^DD(118.1,15,0)
;;=2PM FEEDING #2^*P118'^FH(118,^1;11^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,15,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,15,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,15,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,15,21,1,0)
;;=This is the second supplemental feeding item for the 2pm feeding.
;;^DD(118.1,15.5,0)
;;=2PM #2 QTY^NJ2,0^^1;12^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,15.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,15.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,15.5,21,1,0)
;;=This is the quantity of the second 2pm feeding item.
;;^DD(118.1,16,0)
;;=2PM FEEDING #3^*P118'^FH(118,^1;13^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,16,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,16,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,16,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,16,21,1,0)
;;=This is the third supplemental feeding item for the 2pm feeding.
;;^DD(118.1,16.5,0)
;;=2PM #3 QTY^NJ2,0^^1;14^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,16.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,16.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,16.5,21,1,0)
;;=This is the quantity of the third 2pm feeding item.
;;^DD(118.1,17,0)
;;=2PM FEEDING #4^*P118'^FH(118,^1;15^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,17,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,17,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,17,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,17,21,1,0)
;;=This is the fourth supplemental feeding item for the 2pm feeding.
;;^DD(118.1,17.5,0)
;;=2PM #4 QTY^NJ2,0^^1;16^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,17.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,17.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,17.5,21,1,0)
;;=This is the quantity of the fourth 2pm feeding item.
;;^DD(118.1,18,0)
;;=8PM FEEDING #1^*P118'^FH(118,^1;17^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,18,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,18,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,18,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,18,21,1,0)
;;=This is the first supplemental feeding item for the 8pm feeding.
;;^DD(118.1,18.5,0)
;;=8PM #1 QTY^NJ2,0^^1;18^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,18.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,18.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,18.5,21,1,0)
;;=This is the quantity of the first 8pm feeding item.
;;^DD(118.1,19,0)
;;=8PM FEEDING #2^*P118'^FH(118,^1;19^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(118.1,19,12)
;;=Cannot select bulk nourishments
;;^DD(118.1,19,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(118.1,19,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,19,21,1,0)
;;=This is the second supplemental feeding item for the 8pm feeding.
;;^DD(118.1,19.5,0)
;;=8PM #2 QTY^NJ2,0^^1;20^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
;;^DD(118.1,19.5,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
;;^DD(118.1,19.5,21,0)
;;=^^1^1^2880710^
;;^DD(118.1,19.5,21,1,0)
;;=This is the quantity of the second 8pm feeding item.
;;^DD(118.1,20,0)
;;=8PM FEEDING #3^*P118'^FH(118,^1;21^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
FHINI0M6 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(118.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(118.1,13,12)
+2 ;;=Cannot select bulk nourishments
+3 ;;^DD(118.1,13,12.1)
+4 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+5 ;;^DD(118.1,13,21,0)
+6 ;;=^^1^1^2880710^^
+7 ;;^DD(118.1,13,21,1,0)
+8 ;;=This is the fourth supplemental feeding item for the 10am feeding.
+9 ;;^DD(118.1,13.5,0)
+10 ;;=10AM #4 QTY^NJ2,0^^1;8^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+11 ;;^DD(118.1,13.5,3)
+12 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+13 ;;^DD(118.1,13.5,21,0)
+14 ;;=^^1^1^2880710^
+15 ;;^DD(118.1,13.5,21,1,0)
+16 ;;=This is the quantity of the fourth 10am feeding item.
+17 ;;^DD(118.1,14,0)
+18 ;;=2PM FEEDING #1^*P118'^FH(118,^1;9^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+19 ;;^DD(118.1,14,12)
+20 ;;=Cannot select bulk nourishments
+21 ;;^DD(118.1,14,12.1)
+22 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+23 ;;^DD(118.1,14,21,0)
+24 ;;=^^1^1^2880710^
+25 ;;^DD(118.1,14,21,1,0)
+26 ;;=This is the first supplemental feeding item for the 2pm feeding.
+27 ;;^DD(118.1,14.5,0)
+28 ;;=2PM #1 QTY^NJ2,0^^1;10^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+29 ;;^DD(118.1,14.5,3)
+30 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+31 ;;^DD(118.1,14.5,21,0)
+32 ;;=^^1^1^2880710^
+33 ;;^DD(118.1,14.5,21,1,0)
+34 ;;=This is the quantity of the first 2pm feeding item.
+35 ;;^DD(118.1,15,0)
+36 ;;=2PM FEEDING #2^*P118'^FH(118,^1;11^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+37 ;;^DD(118.1,15,12)
+38 ;;=Cannot select bulk nourishments
+39 ;;^DD(118.1,15,12.1)
+40 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+41 ;;^DD(118.1,15,21,0)
+42 ;;=^^1^1^2880710^
+43 ;;^DD(118.1,15,21,1,0)
+44 ;;=This is the second supplemental feeding item for the 2pm feeding.
+45 ;;^DD(118.1,15.5,0)
+46 ;;=2PM #2 QTY^NJ2,0^^1;12^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+47 ;;^DD(118.1,15.5,3)
+48 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+49 ;;^DD(118.1,15.5,21,0)
+50 ;;=^^1^1^2880710^
+51 ;;^DD(118.1,15.5,21,1,0)
+52 ;;=This is the quantity of the second 2pm feeding item.
+53 ;;^DD(118.1,16,0)
+54 ;;=2PM FEEDING #3^*P118'^FH(118,^1;13^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+55 ;;^DD(118.1,16,12)
+56 ;;=Cannot select bulk nourishments
+57 ;;^DD(118.1,16,12.1)
+58 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+59 ;;^DD(118.1,16,21,0)
+60 ;;=^^1^1^2880710^
+61 ;;^DD(118.1,16,21,1,0)
+62 ;;=This is the third supplemental feeding item for the 2pm feeding.
+63 ;;^DD(118.1,16.5,0)
+64 ;;=2PM #3 QTY^NJ2,0^^1;14^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+65 ;;^DD(118.1,16.5,3)
+66 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+67 ;;^DD(118.1,16.5,21,0)
+68 ;;=^^1^1^2880710^
+69 ;;^DD(118.1,16.5,21,1,0)
+70 ;;=This is the quantity of the third 2pm feeding item.
+71 ;;^DD(118.1,17,0)
+72 ;;=2PM FEEDING #4^*P118'^FH(118,^1;15^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+73 ;;^DD(118.1,17,12)
+74 ;;=Cannot select bulk nourishments
+75 ;;^DD(118.1,17,12.1)
+76 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+77 ;;^DD(118.1,17,21,0)
+78 ;;=^^1^1^2880710^
+79 ;;^DD(118.1,17,21,1,0)
+80 ;;=This is the fourth supplemental feeding item for the 2pm feeding.
+81 ;;^DD(118.1,17.5,0)
+82 ;;=2PM #4 QTY^NJ2,0^^1;16^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+83 ;;^DD(118.1,17.5,3)
+84 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+85 ;;^DD(118.1,17.5,21,0)
+86 ;;=^^1^1^2880710^
+87 ;;^DD(118.1,17.5,21,1,0)
+88 ;;=This is the quantity of the fourth 2pm feeding item.
+89 ;;^DD(118.1,18,0)
+90 ;;=8PM FEEDING #1^*P118'^FH(118,^1;17^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+91 ;;^DD(118.1,18,12)
+92 ;;=Cannot select bulk nourishments
+93 ;;^DD(118.1,18,12.1)
+94 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+95 ;;^DD(118.1,18,21,0)
+96 ;;=^^1^1^2880710^
+97 ;;^DD(118.1,18,21,1,0)
+98 ;;=This is the first supplemental feeding item for the 8pm feeding.
+99 ;;^DD(118.1,18.5,0)
+100 ;;=8PM #1 QTY^NJ2,0^^1;18^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+101 ;;^DD(118.1,18.5,3)
+102 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+103 ;;^DD(118.1,18.5,21,0)
+104 ;;=^^1^1^2880710^
+105 ;;^DD(118.1,18.5,21,1,0)
+106 ;;=This is the quantity of the first 8pm feeding item.
+107 ;;^DD(118.1,19,0)
+108 ;;=8PM FEEDING #2^*P118'^FH(118,^1;19^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+109 ;;^DD(118.1,19,12)
+110 ;;=Cannot select bulk nourishments
+111 ;;^DD(118.1,19,12.1)
+112 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+113 ;;^DD(118.1,19,21,0)
+114 ;;=^^1^1^2880710^
+115 ;;^DD(118.1,19,21,1,0)
+116 ;;=This is the second supplemental feeding item for the 8pm feeding.
+117 ;;^DD(118.1,19.5,0)
+118 ;;=8PM #2 QTY^NJ2,0^^1;20^K:+X'=X!(X>20)!(X<1)!(X?.E1"."1N.N) X
+119 ;;^DD(118.1,19.5,3)
+120 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 20
+121 ;;^DD(118.1,19.5,21,0)
+122 ;;=^^1^1^2880710^
+123 ;;^DD(118.1,19.5,21,1,0)
+124 ;;=This is the quantity of the second 8pm feeding item.
+125 ;;^DD(118.1,20,0)
+126 ;;=8PM FEEDING #3^*P118'^FH(118,^1;21^S DIC("S")="I $P(^(0),U,3)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X