FHINI0MZ ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(119.8) 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(119.8,0,"GL")
;;=^FH(119.8,
;;^DIC("B","DIETETIC EVENTS",119.8)
;;=
;;^DIC(119.8,"%D",0)
;;=^^4^4^2920705^
;;^DIC(119.8,"%D",1,0)
;;=This file contains entries for all patient movements, diet changes,
;;^DIC(119.8,"%D",2,0)
;;=tubefeeding orders, additional orders, food preferences, standing
;;^DIC(119.8,"%D",3,0)
;;=orders, and patient isolation orders requiring action by the
;;^DIC(119.8,"%D",4,0)
;;=Dietetic Service.
;;^DD(119.8,0)
;;=FIELD^^8^9
;;^DD(119.8,0,"DT")
;;=2950317
;;^DD(119.8,0,"IX","AD",119.8,1)
;;=
;;^DD(119.8,0,"IX","AP",119.8,2)
;;=
;;^DD(119.8,0,"IX","AP1",119.8,1)
;;=
;;^DD(119.8,0,"IX","B",119.8,.01)
;;=
;;^DD(119.8,0,"NM","DIETETIC EVENTS")
;;=
;;^DD(119.8,.01,0)
;;=NUMBER^RNJ9,0X^^0;1^K:+X'=X!(X>999999999)!(X<1)!(X?.E1"."1N.N) X I $D(X) S DINUM=X
;;^DD(119.8,.01,1,0)
;;=^.1
;;^DD(119.8,.01,1,1,0)
;;=119.8^B
;;^DD(119.8,.01,1,1,1)
;;=S ^FH(119.8,"B",$E(X,1,30),DA)=""
;;^DD(119.8,.01,1,1,2)
;;=K ^FH(119.8,"B",$E(X,1,30),DA)
;;^DD(119.8,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(119.8,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NUMBER field.
;;^DD(119.8,.01,3)
;;=Type a Number between 1 and 999999999, 0 Decimal Digits
;;^DD(119.8,.01,21,0)
;;=^^2^2^2921107^^^^
;;^DD(119.8,.01,21,1,0)
;;=This field contains a sequential number assigned to the event
;;^DD(119.8,.01,21,2,0)
;;=and has no meaning.
;;^DD(119.8,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(119.8,.01,"DT")
;;=2890719
;;^DD(119.8,1,0)
;;=DATE/TIME^RD^^0;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
;;^DD(119.8,1,1,0)
;;=^.1
;;^DD(119.8,1,1,1,0)
;;=119.8^AD
;;^DD(119.8,1,1,1,1)
;;=S ^FH(119.8,"AD",$E(X,1,30),DA)=""
;;^DD(119.8,1,1,1,2)
;;=K ^FH(119.8,"AD",$E(X,1,30),DA)
;;^DD(119.8,1,1,1,"DT")
;;=2920704
;;^DD(119.8,1,1,2,0)
;;=119.8^AP1^MUMPS
;;^DD(119.8,1,1,2,1)
;;=S X1=$P(^FH(119.8,DA,0),U,3) I X1 S ^FH(119.8,"AP",X1,X,DA)=""
;;^DD(119.8,1,1,2,2)
;;=S X1=$P(^FH(119.8,DA,0),U,3) I X1 K ^FH(119.8,"AP",X1,X,DA)
;;^DD(119.8,1,1,2,"%D",0)
;;=^^2^2^2940823^^
;;^DD(119.8,1,1,2,"%D",1,0)
;;=This is a cross-reference of dietetic events by patient and date/time.
;;^DD(119.8,1,1,2,"%D",2,0)
;;=Field 2 is also used to set the cross-reference.
;;^DD(119.8,1,1,2,"DT")
;;=2920705
;;^DD(119.8,1,21,0)
;;=^^1^1^2921107^
;;^DD(119.8,1,21,1,0)
;;=This is the date/time at which the event occurred.
;;^DD(119.8,1,"DT")
;;=2920705
;;^DD(119.8,2,0)
;;=PATIENT^RP115'^FHPT(^0;3^Q
;;^DD(119.8,2,1,0)
;;=^.1
;;^DD(119.8,2,1,1,0)
;;=119.8^AP^MUMPS
;;^DD(119.8,2,1,1,1)
;;=S X1=$P(^FH(119.8,DA,0),U,2) I X1 S ^FH(119.8,"AP",X,X1,DA)=""
;;^DD(119.8,2,1,1,2)
;;=S X1=$P(^FH(119.8,DA,0),U,2) I X1 K ^FH(119.8,"AP",X,X1,DA)
;;^DD(119.8,2,1,1,"%D",0)
;;=^^2^2^2940823^
;;^DD(119.8,2,1,1,"%D",1,0)
;;=This is a cross-reference of dietetic events by patient and date/time.
;;^DD(119.8,2,1,1,"%D",2,0)
;;=Field 1 is also used to set the cross-reference.
;;^DD(119.8,2,1,1,"DT")
;;=2920705
;;^DD(119.8,2,21,0)
;;=^^2^2^2921107^
;;^DD(119.8,2,21,1,0)
;;=This is a pointer to the patient with which the event is
;;^DD(119.8,2,21,2,0)
;;=associated.
;;^DD(119.8,2,"DT")
;;=2920705
;;^DD(119.8,3,0)
;;=ADMISSION^RP405'^DGPM(^0;4^Q
;;^DD(119.8,3,1,0)
;;=^.1^^0
;;^DD(119.8,3,21,0)
;;=^^2^2^2921107^
;;^DD(119.8,3,21,1,0)
;;=This is a pointer to the admission (Movement) with which the
;;^DD(119.8,3,21,2,0)
;;=event is associated.
;;^DD(119.8,3,"DT")
;;=2920705
;;^DD(119.8,4,0)
;;=TYPE OF EVENT^RS^L:LOCATION;D:DIET;I:ISOLATION;T:T/F;O:OTHER;P:PREF.;S:STD. ORDERS;^0;5^Q
;;^DD(119.8,4,21,0)
;;=^^1^1^2930913^^
;;^DD(119.8,4,21,1,0)
;;=This is a set of codes indicating the type of event.
;;^DD(119.8,4,"DT")
;;=2920704
;;^DD(119.8,5,0)
;;=ACTION^S^O:ORDERED;C:CANCELLED;A:ADMIT;T:TRANSFER;D:DISCHARGE;^0;6^Q
;;^DD(119.8,5,21,0)
;;=^^2^2^2930913^^
;;^DD(119.8,5,21,1,0)
;;=This is a set of codes indicating the type of action; A D T are
;;^DD(119.8,5,21,2,0)
;;=associated only with location changes.
;;^DD(119.8,5,"DT")
;;=2920705
;;^DD(119.8,6,0)
;;=ORDER #^RNJ7,0^^0;7^K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(119.8,6,3)
;;=Type a Number between 1 and 9999999, 0 Decimal Digits
;;^DD(119.8,6,21,0)
;;=^^1^1^2921107^
;;^DD(119.8,6,21,1,0)
;;=This value corresponds to the associated Order for the event.
;;^DD(119.8,6,"DT")
;;=2920704
;;^DD(119.8,7,0)
;;=TEXT^F^^0;8^K:$L(X)>120!($L(X)<3) X
;;^DD(119.8,7,3)
;;=Answer must be 3-120 characters in length.
;;^DD(119.8,7,21,0)
;;=^^2^2^2921107^
;;^DD(119.8,7,21,1,0)
;;=This is the text of the order; for location changes it represents
FHINI0MZ ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(119.8)
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(119.8,0,"GL")
+2 ;;=^FH(119.8,
+3 ;;^DIC("B","DIETETIC EVENTS",119.8)
+4 ;;=
+5 ;;^DIC(119.8,"%D",0)
+6 ;;=^^4^4^2920705^
+7 ;;^DIC(119.8,"%D",1,0)
+8 ;;=This file contains entries for all patient movements, diet changes,
+9 ;;^DIC(119.8,"%D",2,0)
+10 ;;=tubefeeding orders, additional orders, food preferences, standing
+11 ;;^DIC(119.8,"%D",3,0)
+12 ;;=orders, and patient isolation orders requiring action by the
+13 ;;^DIC(119.8,"%D",4,0)
+14 ;;=Dietetic Service.
+15 ;;^DD(119.8,0)
+16 ;;=FIELD^^8^9
+17 ;;^DD(119.8,0,"DT")
+18 ;;=2950317
+19 ;;^DD(119.8,0,"IX","AD",119.8,1)
+20 ;;=
+21 ;;^DD(119.8,0,"IX","AP",119.8,2)
+22 ;;=
+23 ;;^DD(119.8,0,"IX","AP1",119.8,1)
+24 ;;=
+25 ;;^DD(119.8,0,"IX","B",119.8,.01)
+26 ;;=
+27 ;;^DD(119.8,0,"NM","DIETETIC EVENTS")
+28 ;;=
+29 ;;^DD(119.8,.01,0)
+30 ;;=NUMBER^RNJ9,0X^^0;1^K:+X'=X!(X>999999999)!(X<1)!(X?.E1"."1N.N) X I $D(X) S DINUM=X
+31 ;;^DD(119.8,.01,1,0)
+32 ;;=^.1
+33 ;;^DD(119.8,.01,1,1,0)
+34 ;;=119.8^B
+35 ;;^DD(119.8,.01,1,1,1)
+36 ;;=S ^FH(119.8,"B",$E(X,1,30),DA)=""
+37 ;;^DD(119.8,.01,1,1,2)
+38 ;;=K ^FH(119.8,"B",$E(X,1,30),DA)
+39 ;;^DD(119.8,.01,1,1,"%D",0)
+40 ;;=^^1^1^2911118^
+41 ;;^DD(119.8,.01,1,1,"%D",1,0)
+42 ;;=This is the normal B cross-reference of the NUMBER field.
+43 ;;^DD(119.8,.01,3)
+44 ;;=Type a Number between 1 and 999999999, 0 Decimal Digits
+45 ;;^DD(119.8,.01,21,0)
+46 ;;=^^2^2^2921107^^^^
+47 ;;^DD(119.8,.01,21,1,0)
+48 ;;=This field contains a sequential number assigned to the event
+49 ;;^DD(119.8,.01,21,2,0)
+50 ;;=and has no meaning.
+51 ;;^DD(119.8,.01,"DEL",1,0)
+52 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+53 ;;^DD(119.8,.01,"DT")
+54 ;;=2890719
+55 ;;^DD(119.8,1,0)
+56 ;;=DATE/TIME^RD^^0;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
+57 ;;^DD(119.8,1,1,0)
+58 ;;=^.1
+59 ;;^DD(119.8,1,1,1,0)
+60 ;;=119.8^AD
+61 ;;^DD(119.8,1,1,1,1)
+62 ;;=S ^FH(119.8,"AD",$E(X,1,30),DA)=""
+63 ;;^DD(119.8,1,1,1,2)
+64 ;;=K ^FH(119.8,"AD",$E(X,1,30),DA)
+65 ;;^DD(119.8,1,1,1,"DT")
+66 ;;=2920704
+67 ;;^DD(119.8,1,1,2,0)
+68 ;;=119.8^AP1^MUMPS
+69 ;;^DD(119.8,1,1,2,1)
+70 ;;=S X1=$P(^FH(119.8,DA,0),U,3) I X1 S ^FH(119.8,"AP",X1,X,DA)=""
+71 ;;^DD(119.8,1,1,2,2)
+72 ;;=S X1=$P(^FH(119.8,DA,0),U,3) I X1 K ^FH(119.8,"AP",X1,X,DA)
+73 ;;^DD(119.8,1,1,2,"%D",0)
+74 ;;=^^2^2^2940823^^
+75 ;;^DD(119.8,1,1,2,"%D",1,0)
+76 ;;=This is a cross-reference of dietetic events by patient and date/time.
+77 ;;^DD(119.8,1,1,2,"%D",2,0)
+78 ;;=Field 2 is also used to set the cross-reference.
+79 ;;^DD(119.8,1,1,2,"DT")
+80 ;;=2920705
+81 ;;^DD(119.8,1,21,0)
+82 ;;=^^1^1^2921107^
+83 ;;^DD(119.8,1,21,1,0)
+84 ;;=This is the date/time at which the event occurred.
+85 ;;^DD(119.8,1,"DT")
+86 ;;=2920705
+87 ;;^DD(119.8,2,0)
+88 ;;=PATIENT^RP115'^FHPT(^0;3^Q
+89 ;;^DD(119.8,2,1,0)
+90 ;;=^.1
+91 ;;^DD(119.8,2,1,1,0)
+92 ;;=119.8^AP^MUMPS
+93 ;;^DD(119.8,2,1,1,1)
+94 ;;=S X1=$P(^FH(119.8,DA,0),U,2) I X1 S ^FH(119.8,"AP",X,X1,DA)=""
+95 ;;^DD(119.8,2,1,1,2)
+96 ;;=S X1=$P(^FH(119.8,DA,0),U,2) I X1 K ^FH(119.8,"AP",X,X1,DA)
+97 ;;^DD(119.8,2,1,1,"%D",0)
+98 ;;=^^2^2^2940823^
+99 ;;^DD(119.8,2,1,1,"%D",1,0)
+100 ;;=This is a cross-reference of dietetic events by patient and date/time.
+101 ;;^DD(119.8,2,1,1,"%D",2,0)
+102 ;;=Field 1 is also used to set the cross-reference.
+103 ;;^DD(119.8,2,1,1,"DT")
+104 ;;=2920705
+105 ;;^DD(119.8,2,21,0)
+106 ;;=^^2^2^2921107^
+107 ;;^DD(119.8,2,21,1,0)
+108 ;;=This is a pointer to the patient with which the event is
+109 ;;^DD(119.8,2,21,2,0)
+110 ;;=associated.
+111 ;;^DD(119.8,2,"DT")
+112 ;;=2920705
+113 ;;^DD(119.8,3,0)
+114 ;;=ADMISSION^RP405'^DGPM(^0;4^Q
+115 ;;^DD(119.8,3,1,0)
+116 ;;=^.1^^0
+117 ;;^DD(119.8,3,21,0)
+118 ;;=^^2^2^2921107^
+119 ;;^DD(119.8,3,21,1,0)
+120 ;;=This is a pointer to the admission (Movement) with which the
+121 ;;^DD(119.8,3,21,2,0)
+122 ;;=event is associated.
+123 ;;^DD(119.8,3,"DT")
+124 ;;=2920705
+125 ;;^DD(119.8,4,0)
+126 ;;=TYPE OF EVENT^RS^L:LOCATION;D:DIET;I:ISOLATION;T:T/F;O:OTHER;P:PREF.;S:STD. ORDERS;^0;5^Q
+127 ;;^DD(119.8,4,21,0)
+128 ;;=^^1^1^2930913^^
+129 ;;^DD(119.8,4,21,1,0)
+130 ;;=This is a set of codes indicating the type of event.
+131 ;;^DD(119.8,4,"DT")
+132 ;;=2920704
+133 ;;^DD(119.8,5,0)
+134 ;;=ACTION^S^O:ORDERED;C:CANCELLED;A:ADMIT;T:TRANSFER;D:DISCHARGE;^0;6^Q
+135 ;;^DD(119.8,5,21,0)
+136 ;;=^^2^2^2930913^^
+137 ;;^DD(119.8,5,21,1,0)
+138 ;;=This is a set of codes indicating the type of action; A D T are
+139 ;;^DD(119.8,5,21,2,0)
+140 ;;=associated only with location changes.
+141 ;;^DD(119.8,5,"DT")
+142 ;;=2920705
+143 ;;^DD(119.8,6,0)
+144 ;;=ORDER #^RNJ7,0^^0;7^K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X
+145 ;;^DD(119.8,6,3)
+146 ;;=Type a Number between 1 and 9999999, 0 Decimal Digits
+147 ;;^DD(119.8,6,21,0)
+148 ;;=^^1^1^2921107^
+149 ;;^DD(119.8,6,21,1,0)
+150 ;;=This value corresponds to the associated Order for the event.
+151 ;;^DD(119.8,6,"DT")
+152 ;;=2920704
+153 ;;^DD(119.8,7,0)
+154 ;;=TEXT^F^^0;8^K:$L(X)>120!($L(X)<3) X
+155 ;;^DD(119.8,7,3)
+156 ;;=Answer must be 3-120 characters in length.
+157 ;;^DD(119.8,7,21,0)
+158 ;;=^^2^2^2921107^
+159 ;;^DD(119.8,7,21,1,0)
+160 ;;=This is the text of the order; for location changes it represents