FHINI0KG ; ; 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
;;^DIC(115,0,"GL")
;;=^FHPT(
;;^DIC("B","DIETETICS PATIENT",115)
;;=
;;^DIC(115,"%D",0)
;;=^^4^4^2920623^^
;;^DIC(115,"%D",1,0)
;;=This file contains all dietetic orders for each admission of a
;;^DIC(115,"%D",2,0)
;;=patient. It includes diet orders, consult requests, supplemental
;;^DIC(115,"%D",3,0)
;;=feedings, early/late tray requests, and tubefeedings. It also
;;^DIC(115,"%D",4,0)
;;=contains any food allergies entered for the patient.
;;^DD(115,0)
;;=FIELD^^12^5
;;^DD(115,0,"DDA")
;;=N
;;^DD(115,0,"DT")
;;=2950926
;;^DD(115,0,"IX","ADLT",115.05,.01)
;;=
;;^DD(115,0,"IX","ADR",115.03,.01)
;;=
;;^DD(115,0,"IX","ADRU",115.03,4)
;;=
;;^DD(115,0,"IX","ADRV",115.03,7)
;;=
;;^DD(115,0,"IX","ADTF",115.01,1.3)
;;=
;;^DD(115,0,"IX","AIS",115.01,9)
;;=
;;^DD(115,0,"IX","AOO",115.06,4)
;;=
;;^DD(115,0,"IX","ASP",115.08,1)
;;=
;;^DD(115,0,"IX","ASP1",115.08,5)
;;=
;;^DD(115,0,"IX","AW",115.01,13)
;;=
;;^DD(115,0,"NM","DIETETICS PATIENT")
;;=
;;^DD(115,0,"PT",119.8,2)
;;=
;;^DD(115,.01,0)
;;=NAME^RP2'X^DPT(^0;1^K:X<1 X S:$D(X) DINUM=X
;;^DD(115,.01,1,0)
;;=^.1^^0
;;^DD(115,.01,3)
;;=
;;^DD(115,.01,21,0)
;;=^^2^2^2880710^
;;^DD(115,.01,21,1,0)
;;=This is a pointer to the main ^DPT file and has the same internal
;;^DD(115,.01,21,2,0)
;;=number as that file. Thus, the patient's name is the ^DPT name.
;;^DD(115,1,0)
;;=ADMISSION^115.01D^^A;0
;;^DD(115,1,21,0)
;;=^^2^2^2910708^^^^
;;^DD(115,1,21,1,0)
;;=This multiple contains all dietetic information pertaining
;;^DD(115,1,21,2,0)
;;=to this particular admission.
;;^DD(115,1,"DT")
;;=2920103
;;^DD(115,10,0)
;;=FOOD PREFERENCES^115.09PA^^P;0
;;^DD(115,10,21,0)
;;=^^1^1^2881201^^
;;^DD(115,10,21,1,0)
;;=This multiple contains the food preferences selected by the patient.
;;^DD(115,11,0)
;;=NUTRITION ASSESSMENT^115.011D^^N;0
;;^DD(115,11,21,0)
;;=^^2^2^2920520^^^^
;;^DD(115,11,21,1,0)
;;=This field contains Nutrition Assessments performed
;;^DD(115,11,21,2,0)
;;=for this patient.
;;^DD(115,12,0)
;;=NUTRITION STATUS^115.012D^^S;0
;;^DD(115,12,21,0)
;;=^^2^2^2891113^^^
;;^DD(115,12,21,1,0)
;;=This multiple contains the nutrition assessment
;;^DD(115,12,21,2,0)
;;=statuses that have been entered for this patient.
;;^DD(115.01,0)
;;=ADMISSION SUB-FIELD^NL^100^23
;;^DD(115.01,0,"DT")
;;=2950926
;;^DD(115.01,0,"NM","ADMISSION")
;;=
;;^DD(115.01,0,"UP")
;;=115
;;^DD(115.01,.01,0)
;;=ADMISSION^D^^0;1^S %DT="ET" D ^%DT S X=Y K:Y<1 X
;;^DD(115.01,.01,21,0)
;;=^^3^3^2911204^^^^
;;^DD(115.01,.01,21,1,0)
;;=This is the date/time of admission. The admission has the same
;;^DD(115.01,.01,21,2,0)
;;=date/time and internal number as the corresponding MAS
;;^DD(115.01,.01,21,3,0)
;;=admission stored in ^DPT.
;;^DD(115.01,1.1,0)
;;=CURRENT DIET ORDER^NJ5,0I^^0;2^K:+X'=X!(X>99999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.01,1.1,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99999
;;^DD(115.01,1.1,9)
;;=^
;;^DD(115.01,1.1,21,0)
;;=^^2^2^2950613^^^^
;;^DD(115.01,1.1,21,1,0)
;;=This field is actually a pointer to the current diet order
;;^DD(115.01,1.1,21,2,0)
;;=stored in Field 3.
;;^DD(115.01,1.1,"DT")
;;=2880515
;;^DD(115.01,1.2,0)
;;=DIET ORDER EXPIRATION^DI^^0;3^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
;;^DD(115.01,1.2,9)
;;=^
;;^DD(115.01,1.2,21,0)
;;=^^3^3^2950613^^^^
;;^DD(115.01,1.2,21,1,0)
;;=This field contains the date/time of expiration of the current
;;^DD(115.01,1.2,21,2,0)
;;=diet pointed to by Field 1.1. If null, the current diet has
;;^DD(115.01,1.2,21,3,0)
;;=no expiration date/time.
;;^DD(115.01,1.2,"DT")
;;=2880515
;;^DD(115.01,1.3,0)
;;=CURRENT TF ORDER^NJ5,0I^^0;4^K:+X'=X!(X>99999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.01,1.3,1,0)
;;=^.1
;;^DD(115.01,1.3,1,1,0)
;;=115^ADTF^MUMPS
;;^DD(115.01,1.3,1,1,1)
;;=S ^FHPT("ADTF",DA(1),DA)=""
;;^DD(115.01,1.3,1,1,2)
;;=K ^FHPT("ADTF",DA(1),DA)
;;^DD(115.01,1.3,1,1,"%D",0)
;;=^^2^2^2940824^
;;^DD(115.01,1.3,1,1,"%D",1,0)
;;=This is a list of Patients by Admission who have a current
;;^DD(115.01,1.3,1,1,"%D",2,0)
;;=Tubefeeding Order.
;;^DD(115.01,1.3,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99999
;;^DD(115.01,1.3,9)
;;=^
;;^DD(115.01,1.3,21,0)
;;=3^^3^3^2950613^^^
;;^DD(115.01,1.3,21,1,0)
;;=This field is actually a pointer to the current Tubefeeding Order
;;^DD(115.01,1.3,21,2,0)
;;=stored in Field 40. If null, no current tubefeeding order
;;^DD(115.01,1.3,21,3,0)
;;=exists.
;;^DD(115.01,1.3,"DT")
;;=2850718
;;^DD(115.01,2.1,0)
;;=CURRENT SERVICE^SI^C:CAFETERIA;T:TRAY;D:DINING ROOM;^0;5^Q
;;^DD(115.01,2.1,21,0)
;;=^^3^3^2920512^^^^
FHINI0KG ; ; 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 ;;^DIC(115,0,"GL")
+2 ;;=^FHPT(
+3 ;;^DIC("B","DIETETICS PATIENT",115)
+4 ;;=
+5 ;;^DIC(115,"%D",0)
+6 ;;=^^4^4^2920623^^
+7 ;;^DIC(115,"%D",1,0)
+8 ;;=This file contains all dietetic orders for each admission of a
+9 ;;^DIC(115,"%D",2,0)
+10 ;;=patient. It includes diet orders, consult requests, supplemental
+11 ;;^DIC(115,"%D",3,0)
+12 ;;=feedings, early/late tray requests, and tubefeedings. It also
+13 ;;^DIC(115,"%D",4,0)
+14 ;;=contains any food allergies entered for the patient.
+15 ;;^DD(115,0)
+16 ;;=FIELD^^12^5
+17 ;;^DD(115,0,"DDA")
+18 ;;=N
+19 ;;^DD(115,0,"DT")
+20 ;;=2950926
+21 ;;^DD(115,0,"IX","ADLT",115.05,.01)
+22 ;;=
+23 ;;^DD(115,0,"IX","ADR",115.03,.01)
+24 ;;=
+25 ;;^DD(115,0,"IX","ADRU",115.03,4)
+26 ;;=
+27 ;;^DD(115,0,"IX","ADRV",115.03,7)
+28 ;;=
+29 ;;^DD(115,0,"IX","ADTF",115.01,1.3)
+30 ;;=
+31 ;;^DD(115,0,"IX","AIS",115.01,9)
+32 ;;=
+33 ;;^DD(115,0,"IX","AOO",115.06,4)
+34 ;;=
+35 ;;^DD(115,0,"IX","ASP",115.08,1)
+36 ;;=
+37 ;;^DD(115,0,"IX","ASP1",115.08,5)
+38 ;;=
+39 ;;^DD(115,0,"IX","AW",115.01,13)
+40 ;;=
+41 ;;^DD(115,0,"NM","DIETETICS PATIENT")
+42 ;;=
+43 ;;^DD(115,0,"PT",119.8,2)
+44 ;;=
+45 ;;^DD(115,.01,0)
+46 ;;=NAME^RP2'X^DPT(^0;1^K:X<1 X S:$D(X) DINUM=X
+47 ;;^DD(115,.01,1,0)
+48 ;;=^.1^^0
+49 ;;^DD(115,.01,3)
+50 ;;=
+51 ;;^DD(115,.01,21,0)
+52 ;;=^^2^2^2880710^
+53 ;;^DD(115,.01,21,1,0)
+54 ;;=This is a pointer to the main ^DPT file and has the same internal
+55 ;;^DD(115,.01,21,2,0)
+56 ;;=number as that file. Thus, the patient's name is the ^DPT name.
+57 ;;^DD(115,1,0)
+58 ;;=ADMISSION^115.01D^^A;0
+59 ;;^DD(115,1,21,0)
+60 ;;=^^2^2^2910708^^^^
+61 ;;^DD(115,1,21,1,0)
+62 ;;=This multiple contains all dietetic information pertaining
+63 ;;^DD(115,1,21,2,0)
+64 ;;=to this particular admission.
+65 ;;^DD(115,1,"DT")
+66 ;;=2920103
+67 ;;^DD(115,10,0)
+68 ;;=FOOD PREFERENCES^115.09PA^^P;0
+69 ;;^DD(115,10,21,0)
+70 ;;=^^1^1^2881201^^
+71 ;;^DD(115,10,21,1,0)
+72 ;;=This multiple contains the food preferences selected by the patient.
+73 ;;^DD(115,11,0)
+74 ;;=NUTRITION ASSESSMENT^115.011D^^N;0
+75 ;;^DD(115,11,21,0)
+76 ;;=^^2^2^2920520^^^^
+77 ;;^DD(115,11,21,1,0)
+78 ;;=This field contains Nutrition Assessments performed
+79 ;;^DD(115,11,21,2,0)
+80 ;;=for this patient.
+81 ;;^DD(115,12,0)
+82 ;;=NUTRITION STATUS^115.012D^^S;0
+83 ;;^DD(115,12,21,0)
+84 ;;=^^2^2^2891113^^^
+85 ;;^DD(115,12,21,1,0)
+86 ;;=This multiple contains the nutrition assessment
+87 ;;^DD(115,12,21,2,0)
+88 ;;=statuses that have been entered for this patient.
+89 ;;^DD(115.01,0)
+90 ;;=ADMISSION SUB-FIELD^NL^100^23
+91 ;;^DD(115.01,0,"DT")
+92 ;;=2950926
+93 ;;^DD(115.01,0,"NM","ADMISSION")
+94 ;;=
+95 ;;^DD(115.01,0,"UP")
+96 ;;=115
+97 ;;^DD(115.01,.01,0)
+98 ;;=ADMISSION^D^^0;1^S %DT="ET" D ^%DT S X=Y K:Y<1 X
+99 ;;^DD(115.01,.01,21,0)
+100 ;;=^^3^3^2911204^^^^
+101 ;;^DD(115.01,.01,21,1,0)
+102 ;;=This is the date/time of admission. The admission has the same
+103 ;;^DD(115.01,.01,21,2,0)
+104 ;;=date/time and internal number as the corresponding MAS
+105 ;;^DD(115.01,.01,21,3,0)
+106 ;;=admission stored in ^DPT.
+107 ;;^DD(115.01,1.1,0)
+108 ;;=CURRENT DIET ORDER^NJ5,0I^^0;2^K:+X'=X!(X>99999)!(X<1)!(X?.E1"."1N.N) X
+109 ;;^DD(115.01,1.1,3)
+110 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99999
+111 ;;^DD(115.01,1.1,9)
+112 ;;=^
+113 ;;^DD(115.01,1.1,21,0)
+114 ;;=^^2^2^2950613^^^^
+115 ;;^DD(115.01,1.1,21,1,0)
+116 ;;=This field is actually a pointer to the current diet order
+117 ;;^DD(115.01,1.1,21,2,0)
+118 ;;=stored in Field 3.
+119 ;;^DD(115.01,1.1,"DT")
+120 ;;=2880515
+121 ;;^DD(115.01,1.2,0)
+122 ;;=DIET ORDER EXPIRATION^DI^^0;3^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
+123 ;;^DD(115.01,1.2,9)
+124 ;;=^
+125 ;;^DD(115.01,1.2,21,0)
+126 ;;=^^3^3^2950613^^^^
+127 ;;^DD(115.01,1.2,21,1,0)
+128 ;;=This field contains the date/time of expiration of the current
+129 ;;^DD(115.01,1.2,21,2,0)
+130 ;;=diet pointed to by Field 1.1. If null, the current diet has
+131 ;;^DD(115.01,1.2,21,3,0)
+132 ;;=no expiration date/time.
+133 ;;^DD(115.01,1.2,"DT")
+134 ;;=2880515
+135 ;;^DD(115.01,1.3,0)
+136 ;;=CURRENT TF ORDER^NJ5,0I^^0;4^K:+X'=X!(X>99999)!(X<1)!(X?.E1"."1N.N) X
+137 ;;^DD(115.01,1.3,1,0)
+138 ;;=^.1
+139 ;;^DD(115.01,1.3,1,1,0)
+140 ;;=115^ADTF^MUMPS
+141 ;;^DD(115.01,1.3,1,1,1)
+142 ;;=S ^FHPT("ADTF",DA(1),DA)=""
+143 ;;^DD(115.01,1.3,1,1,2)
+144 ;;=K ^FHPT("ADTF",DA(1),DA)
+145 ;;^DD(115.01,1.3,1,1,"%D",0)
+146 ;;=^^2^2^2940824^
+147 ;;^DD(115.01,1.3,1,1,"%D",1,0)
+148 ;;=This is a list of Patients by Admission who have a current
+149 ;;^DD(115.01,1.3,1,1,"%D",2,0)
+150 ;;=Tubefeeding Order.
+151 ;;^DD(115.01,1.3,3)
+152 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99999
+153 ;;^DD(115.01,1.3,9)
+154 ;;=^
+155 ;;^DD(115.01,1.3,21,0)
+156 ;;=3^^3^3^2950613^^^
+157 ;;^DD(115.01,1.3,21,1,0)
+158 ;;=This field is actually a pointer to the current Tubefeeding Order
+159 ;;^DD(115.01,1.3,21,2,0)
+160 ;;=stored in Field 40. If null, no current tubefeeding order
+161 ;;^DD(115.01,1.3,21,3,0)
+162 ;;=exists.
+163 ;;^DD(115.01,1.3,"DT")
+164 ;;=2850718
+165 ;;^DD(115.01,2.1,0)
+166 ;;=CURRENT SERVICE^SI^C:CAFETERIA;T:TRAY;D:DINING ROOM;^0;5^Q
+167 ;;^DD(115.01,2.1,21,0)
+168 ;;=^^3^3^2920512^^^^