FHINI0KI ; ; 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.01,18,0)
;;=DISCHARGE DATE/TIME^D^^0;14^S %DT="ESTX" D ^%DT S X=Y K:Y<1 X
;;^DD(115.01,18,21,0)
;;=^^3^3^2911223^^
;;^DD(115.01,18,21,1,0)
;;=This is the date/time a discharge was processed. It may differ from the
;;^DD(115.01,18,21,2,0)
;;=date/time selected by the MAS clerk. It is used if the discharge is
;;^DD(115.01,18,21,3,0)
;;=deleted.
;;^DD(115.01,18,"DT")
;;=2911129
;;^DD(115.01,20,0)
;;=SUPPLEMENTAL FEEDING^115.07^^SF;0
;;^DD(115.01,20,12)
;;=Cannot select bulk nourishments
;;^DD(115.01,20,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.01,20,21,0)
;;=^^2^2^2910708^^^^
;;^DD(115.01,20,21,1,0)
;;=This multiple contains the various supplemental feeding orders
;;^DD(115.01,20,21,2,0)
;;=which have been entered for the patient.
;;^DD(115.01,20,"DT")
;;=2850604
;;^DD(115.01,30,0)
;;=STANDING ORDERS^115.08^^SP;0
;;^DD(115.01,30,12)
;;=Cannot select bulk nourishments
;;^DD(115.01,30,12.1)
;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
;;^DD(115.01,30,21,0)
;;=^^2^2^2950317^^^^
;;^DD(115.01,30,21,1,0)
;;=This field contains standing orders entered for the patient
;;^DD(115.01,30,21,2,0)
;;=during this admission.
;;^DD(115.01,40,0)
;;=TUBEFEEDING^115.04D^^TF;0
;;^DD(115.01,40,21,0)
;;=^^2^2^2910509^^^^
;;^DD(115.01,40,21,1,0)
;;=This multiple contains all tubefeeding orders entered during
;;^DD(115.01,40,21,2,0)
;;=this admission.
;;^DD(115.01,50,0)
;;=EARLY/LATE TRAY^115.05D^^EL;0
;;^DD(115.01,50,21,0)
;;=^^2^2^2910612^^^^
;;^DD(115.01,50,21,1,0)
;;=This multiple contains all early/late tray requests ordered
;;^DD(115.01,50,21,2,0)
;;=for this patient.
;;^DD(115.01,80,0)
;;=CONSULTATION^115.03IDA^^DR;0
;;^DD(115.01,80,21,0)
;;=^^2^2^2880909^^^
;;^DD(115.01,80,21,1,0)
;;=This multiple contains all of the dietetic consults ordered
;;^DD(115.01,80,21,2,0)
;;=during this admission.
;;^DD(115.01,85,0)
;;=ADDITIONAL ORDERS^115.06A^^OO;0
;;^DD(115.01,85,21,0)
;;=^^1^1^2950222^^^^
;;^DD(115.01,85,21,1,0)
;;=This multiple contains all Additional Orders entered during this admission.
;;^DD(115.01,99,0)
;;=DATE/TIME TICKET LAST PRINTED^D^^0;15^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
;;^DD(115.01,99,21,0)
;;=^^5^5^2950420^^^^
;;^DD(115.01,99,21,1,0)
;;=This is the date/time of the last Tray Ticket generated for this
;;^DD(115.01,99,21,2,0)
;;=patient. It is used, when the user only want to print the ticket
;;^DD(115.01,99,21,3,0)
;;=for the patient when there is a diet order, supplemental feeding,
;;^DD(115.01,99,21,4,0)
;;=food preference, isolation, standing order, or location change after
;;^DD(115.01,99,21,5,0)
;;=this date/time.
;;^DD(115.01,99,"DT")
;;=2940926
;;^DD(115.01,100,0)
;;=DATE/TIME CARD LAST PRINTED^D^^0;16^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
;;^DD(115.01,100,21,0)
;;=^^5^5^2950420^^^^
;;^DD(115.01,100,21,1,0)
;;=This is the date/time of the last diet card generated for this
;;^DD(115.01,100,21,2,0)
;;=patient. It is used, when the user only want to print the card
;;^DD(115.01,100,21,3,0)
;;=for the patient when there is a diet order, supplemental feeding,
;;^DD(115.01,100,21,4,0)
;;=food preference, isolation, standing order, or location change after
;;^DD(115.01,100,21,5,0)
;;=this date/time.
;;^DD(115.01,100,"DT")
;;=2940926
;;^DD(115.011,0)
;;=NUTRITION ASSESSMENT SUB-FIELD^^102^35
;;^DD(115.011,0,"IX","B",115.011,.01)
;;=
;;^DD(115.011,0,"NM","NUTRITION ASSESSMENT")
;;=
;;^DD(115.011,0,"UP")
;;=115
;;^DD(115.011,.01,0)
;;=NUTRITION ASSESSMENT^D^^0;1^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
;;^DD(115.011,.01,1,0)
;;=^.1
;;^DD(115.011,.01,1,1,0)
;;=115.011^B
;;^DD(115.011,.01,1,1,1)
;;=S ^FHPT(DA(1),"N","B",$E(X,1,30),DA)=""
;;^DD(115.011,.01,1,1,2)
;;=K ^FHPT(DA(1),"N","B",$E(X,1,30),DA)
;;^DD(115.011,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(115.011,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NUTRITION ASSESSMENT field.
;;^DD(115.011,.01,21,0)
;;=^^2^2^2891107^^^
;;^DD(115.011,.01,21,1,0)
;;=This field contains the date the nutrition assessment was
;;^DD(115.011,.01,21,2,0)
;;=performed.
;;^DD(115.011,.01,"DT")
;;=2891107
;;^DD(115.011,1,0)
;;=SEX^RS^M:MALE;F:FEMALE;^0;2^Q
;;^DD(115.011,1,21,0)
;;=^^2^2^2891121^
;;^DD(115.011,1,21,1,0)
;;=This field contains a M or F corresponding to the sex of
;;^DD(115.011,1,21,2,0)
;;=the subject.
;;^DD(115.011,1,"DT")
;;=2890702
;;^DD(115.011,2,0)
;;=AGE^RNJ6,2^^0;3^K:+X'=X!(X>140)!(X<0)!(X?.E1"."3N.N) X
;;^DD(115.011,2,3)
;;=Type a Number between 0 and 140, 2 Decimal Digits
;;^DD(115.011,2,21,0)
;;=^^2^2^2891121^
FHINI0KI ; ; 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.01,18,0)
+2 ;;=DISCHARGE DATE/TIME^D^^0;14^S %DT="ESTX" D ^%DT S X=Y K:Y<1 X
+3 ;;^DD(115.01,18,21,0)
+4 ;;=^^3^3^2911223^^
+5 ;;^DD(115.01,18,21,1,0)
+6 ;;=This is the date/time a discharge was processed. It may differ from the
+7 ;;^DD(115.01,18,21,2,0)
+8 ;;=date/time selected by the MAS clerk. It is used if the discharge is
+9 ;;^DD(115.01,18,21,3,0)
+10 ;;=deleted.
+11 ;;^DD(115.01,18,"DT")
+12 ;;=2911129
+13 ;;^DD(115.01,20,0)
+14 ;;=SUPPLEMENTAL FEEDING^115.07^^SF;0
+15 ;;^DD(115.01,20,12)
+16 ;;=Cannot select bulk nourishments
+17 ;;^DD(115.01,20,12.1)
+18 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+19 ;;^DD(115.01,20,21,0)
+20 ;;=^^2^2^2910708^^^^
+21 ;;^DD(115.01,20,21,1,0)
+22 ;;=This multiple contains the various supplemental feeding orders
+23 ;;^DD(115.01,20,21,2,0)
+24 ;;=which have been entered for the patient.
+25 ;;^DD(115.01,20,"DT")
+26 ;;=2850604
+27 ;;^DD(115.01,30,0)
+28 ;;=STANDING ORDERS^115.08^^SP;0
+29 ;;^DD(115.01,30,12)
+30 ;;=Cannot select bulk nourishments
+31 ;;^DD(115.01,30,12.1)
+32 ;;=S DIC("S")="I $P(^(0),U,3)'=""Y"""
+33 ;;^DD(115.01,30,21,0)
+34 ;;=^^2^2^2950317^^^^
+35 ;;^DD(115.01,30,21,1,0)
+36 ;;=This field contains standing orders entered for the patient
+37 ;;^DD(115.01,30,21,2,0)
+38 ;;=during this admission.
+39 ;;^DD(115.01,40,0)
+40 ;;=TUBEFEEDING^115.04D^^TF;0
+41 ;;^DD(115.01,40,21,0)
+42 ;;=^^2^2^2910509^^^^
+43 ;;^DD(115.01,40,21,1,0)
+44 ;;=This multiple contains all tubefeeding orders entered during
+45 ;;^DD(115.01,40,21,2,0)
+46 ;;=this admission.
+47 ;;^DD(115.01,50,0)
+48 ;;=EARLY/LATE TRAY^115.05D^^EL;0
+49 ;;^DD(115.01,50,21,0)
+50 ;;=^^2^2^2910612^^^^
+51 ;;^DD(115.01,50,21,1,0)
+52 ;;=This multiple contains all early/late tray requests ordered
+53 ;;^DD(115.01,50,21,2,0)
+54 ;;=for this patient.
+55 ;;^DD(115.01,80,0)
+56 ;;=CONSULTATION^115.03IDA^^DR;0
+57 ;;^DD(115.01,80,21,0)
+58 ;;=^^2^2^2880909^^^
+59 ;;^DD(115.01,80,21,1,0)
+60 ;;=This multiple contains all of the dietetic consults ordered
+61 ;;^DD(115.01,80,21,2,0)
+62 ;;=during this admission.
+63 ;;^DD(115.01,85,0)
+64 ;;=ADDITIONAL ORDERS^115.06A^^OO;0
+65 ;;^DD(115.01,85,21,0)
+66 ;;=^^1^1^2950222^^^^
+67 ;;^DD(115.01,85,21,1,0)
+68 ;;=This multiple contains all Additional Orders entered during this admission.
+69 ;;^DD(115.01,99,0)
+70 ;;=DATE/TIME TICKET LAST PRINTED^D^^0;15^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
+71 ;;^DD(115.01,99,21,0)
+72 ;;=^^5^5^2950420^^^^
+73 ;;^DD(115.01,99,21,1,0)
+74 ;;=This is the date/time of the last Tray Ticket generated for this
+75 ;;^DD(115.01,99,21,2,0)
+76 ;;=patient. It is used, when the user only want to print the ticket
+77 ;;^DD(115.01,99,21,3,0)
+78 ;;=for the patient when there is a diet order, supplemental feeding,
+79 ;;^DD(115.01,99,21,4,0)
+80 ;;=food preference, isolation, standing order, or location change after
+81 ;;^DD(115.01,99,21,5,0)
+82 ;;=this date/time.
+83 ;;^DD(115.01,99,"DT")
+84 ;;=2940926
+85 ;;^DD(115.01,100,0)
+86 ;;=DATE/TIME CARD LAST PRINTED^D^^0;16^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
+87 ;;^DD(115.01,100,21,0)
+88 ;;=^^5^5^2950420^^^^
+89 ;;^DD(115.01,100,21,1,0)
+90 ;;=This is the date/time of the last diet card generated for this
+91 ;;^DD(115.01,100,21,2,0)
+92 ;;=patient. It is used, when the user only want to print the card
+93 ;;^DD(115.01,100,21,3,0)
+94 ;;=for the patient when there is a diet order, supplemental feeding,
+95 ;;^DD(115.01,100,21,4,0)
+96 ;;=food preference, isolation, standing order, or location change after
+97 ;;^DD(115.01,100,21,5,0)
+98 ;;=this date/time.
+99 ;;^DD(115.01,100,"DT")
+100 ;;=2940926
+101 ;;^DD(115.011,0)
+102 ;;=NUTRITION ASSESSMENT SUB-FIELD^^102^35
+103 ;;^DD(115.011,0,"IX","B",115.011,.01)
+104 ;;=
+105 ;;^DD(115.011,0,"NM","NUTRITION ASSESSMENT")
+106 ;;=
+107 ;;^DD(115.011,0,"UP")
+108 ;;=115
+109 ;;^DD(115.011,.01,0)
+110 ;;=NUTRITION ASSESSMENT^D^^0;1^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
+111 ;;^DD(115.011,.01,1,0)
+112 ;;=^.1
+113 ;;^DD(115.011,.01,1,1,0)
+114 ;;=115.011^B
+115 ;;^DD(115.011,.01,1,1,1)
+116 ;;=S ^FHPT(DA(1),"N","B",$E(X,1,30),DA)=""
+117 ;;^DD(115.011,.01,1,1,2)
+118 ;;=K ^FHPT(DA(1),"N","B",$E(X,1,30),DA)
+119 ;;^DD(115.011,.01,1,1,"%D",0)
+120 ;;=^^1^1^2911118^
+121 ;;^DD(115.011,.01,1,1,"%D",1,0)
+122 ;;=This is the normal B cross-reference of the NUTRITION ASSESSMENT field.
+123 ;;^DD(115.011,.01,21,0)
+124 ;;=^^2^2^2891107^^^
+125 ;;^DD(115.011,.01,21,1,0)
+126 ;;=This field contains the date the nutrition assessment was
+127 ;;^DD(115.011,.01,21,2,0)
+128 ;;=performed.
+129 ;;^DD(115.011,.01,"DT")
+130 ;;=2891107
+131 ;;^DD(115.011,1,0)
+132 ;;=SEX^RS^M:MALE;F:FEMALE;^0;2^Q
+133 ;;^DD(115.011,1,21,0)
+134 ;;=^^2^2^2891121^
+135 ;;^DD(115.011,1,21,1,0)
+136 ;;=This field contains a M or F corresponding to the sex of
+137 ;;^DD(115.011,1,21,2,0)
+138 ;;=the subject.
+139 ;;^DD(115.011,1,"DT")
+140 ;;=2890702
+141 ;;^DD(115.011,2,0)
+142 ;;=AGE^RNJ6,2^^0;3^K:+X'=X!(X>140)!(X<0)!(X?.E1"."3N.N) X
+143 ;;^DD(115.011,2,3)
+144 ;;=Type a Number between 0 and 140, 2 Decimal Digits
+145 ;;^DD(115.011,2,21,0)
+146 ;;=^^2^2^2891121^