FHINI0MC ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(118.3) 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(118.3,0,"GL")
;;=^FH(118.3,
;;^DIC("B","STANDING ORDERS",118.3)
;;=
;;^DIC(118.3,"%D",0)
;;=^^3^3^2871124^
;;^DIC(118.3,"%D",1,0)
;;=This is a list of the common standing orders (often called add-ons
;;^DIC(118.3,"%D",2,0)
;;=or specials) which may be ordered for a patient. It may include
;;^DIC(118.3,"%D",3,0)
;;=such things as 'double portions' or preferences such as 'no fish.'
;;^DD(118.3,0)
;;=FIELD^^99^3
;;^DD(118.3,0,"DT")
;;=2920504
;;^DD(118.3,0,"ID",99)
;;=W:$D(^("I")) " (** INACTIVE **)"
;;^DD(118.3,0,"IX","AC",118.3,99)
;;=
;;^DD(118.3,0,"IX","B",118.3,.01)
;;=
;;^DD(118.3,0,"NM","STANDING ORDERS")
;;=
;;^DD(118.3,0,"PT",111.11,.01)
;;=
;;^DD(118.3,0,"PT",111.12,.01)
;;=
;;^DD(118.3,0,"PT",111.13,.01)
;;=
;;^DD(118.3,0,"PT",115.08,1)
;;=
;;^DD(118.3,0,"SCR")
;;=I '$D(^FH(118.3,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
;;^DD(118.3,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
;;^DD(118.3,.01,1,0)
;;=^.1
;;^DD(118.3,.01,1,1,0)
;;=118.3^B
;;^DD(118.3,.01,1,1,1)
;;=S ^FH(118.3,"B",$E(X,1,30),DA)=""
;;^DD(118.3,.01,1,1,2)
;;=K ^FH(118.3,"B",$E(X,1,30),DA)
;;^DD(118.3,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(118.3,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(118.3,.01,3)
;;=ANSWER MUST BE 3-30 CHARACTERS IN LENGTH
;;^DD(118.3,.01,21,0)
;;=^^3^3^2880710^
;;^DD(118.3,.01,21,1,0)
;;=This field contains the name of a standing order. It may be
;;^DD(118.3,.01,21,2,0)
;;=such things as 'double portions', 'extra coffee', or even
;;^DD(118.3,.01,21,3,0)
;;=preferences such as 'no fish.'
;;^DD(118.3,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(118.3,1,0)
;;=LABEL?^S^Y:YES;N:NO;^0;2^Q
;;^DD(118.3,1,21,0)
;;=^^2^2^2920508^^
;;^DD(118.3,1,21,1,0)
;;=This field specifies whether the label should be printed or not for this
;;^DD(118.3,1,21,2,0)
;;=order.
;;^DD(118.3,1,"DT")
;;=2920504
;;^DD(118.3,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(118.3,99,1,0)
;;=^.1
;;^DD(118.3,99,1,1,0)
;;=118.3^AC^MUMPS
;;^DD(118.3,99,1,1,1)
;;=K:X'="Y" ^FH(118.3,DA,"I")
;;^DD(118.3,99,1,1,2)
;;=K ^FH(118.3,DA,"I")
;;^DD(118.3,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(118.3,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(118.3,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(118.3,99,21,0)
;;=^^2^2^2940701^^
;;^DD(118.3,99,21,1,0)
;;=This field, if answered YES, will prohibit further selection of
;;^DD(118.3,99,21,2,0)
;;=this standing order by ward or dietetic personnel.
;;^DD(118.3,99,"DT")
;;=2880116
FHINI0MC ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(118.3)
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(118.3,0,"GL")
+2 ;;=^FH(118.3,
+3 ;;^DIC("B","STANDING ORDERS",118.3)
+4 ;;=
+5 ;;^DIC(118.3,"%D",0)
+6 ;;=^^3^3^2871124^
+7 ;;^DIC(118.3,"%D",1,0)
+8 ;;=This is a list of the common standing orders (often called add-ons
+9 ;;^DIC(118.3,"%D",2,0)
+10 ;;=or specials) which may be ordered for a patient. It may include
+11 ;;^DIC(118.3,"%D",3,0)
+12 ;;=such things as 'double portions' or preferences such as 'no fish.'
+13 ;;^DD(118.3,0)
+14 ;;=FIELD^^99^3
+15 ;;^DD(118.3,0,"DT")
+16 ;;=2920504
+17 ;;^DD(118.3,0,"ID",99)
+18 ;;=W:$D(^("I")) " (** INACTIVE **)"
+19 ;;^DD(118.3,0,"IX","AC",118.3,99)
+20 ;;=
+21 ;;^DD(118.3,0,"IX","B",118.3,.01)
+22 ;;=
+23 ;;^DD(118.3,0,"NM","STANDING ORDERS")
+24 ;;=
+25 ;;^DD(118.3,0,"PT",111.11,.01)
+26 ;;=
+27 ;;^DD(118.3,0,"PT",111.12,.01)
+28 ;;=
+29 ;;^DD(118.3,0,"PT",111.13,.01)
+30 ;;=
+31 ;;^DD(118.3,0,"PT",115.08,1)
+32 ;;=
+33 ;;^DD(118.3,0,"SCR")
+34 ;;=I '$D(^FH(118.3,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
+35 ;;^DD(118.3,.01,0)
+36 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
+37 ;;^DD(118.3,.01,1,0)
+38 ;;=^.1
+39 ;;^DD(118.3,.01,1,1,0)
+40 ;;=118.3^B
+41 ;;^DD(118.3,.01,1,1,1)
+42 ;;=S ^FH(118.3,"B",$E(X,1,30),DA)=""
+43 ;;^DD(118.3,.01,1,1,2)
+44 ;;=K ^FH(118.3,"B",$E(X,1,30),DA)
+45 ;;^DD(118.3,.01,1,1,"%D",0)
+46 ;;=^^1^1^2911118^
+47 ;;^DD(118.3,.01,1,1,"%D",1,0)
+48 ;;=This is the normal B cross-reference of the NAME field.
+49 ;;^DD(118.3,.01,3)
+50 ;;=ANSWER MUST BE 3-30 CHARACTERS IN LENGTH
+51 ;;^DD(118.3,.01,21,0)
+52 ;;=^^3^3^2880710^
+53 ;;^DD(118.3,.01,21,1,0)
+54 ;;=This field contains the name of a standing order. It may be
+55 ;;^DD(118.3,.01,21,2,0)
+56 ;;=such things as 'double portions', 'extra coffee', or even
+57 ;;^DD(118.3,.01,21,3,0)
+58 ;;=preferences such as 'no fish.'
+59 ;;^DD(118.3,.01,"DEL",1,0)
+60 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+61 ;;^DD(118.3,1,0)
+62 ;;=LABEL?^S^Y:YES;N:NO;^0;2^Q
+63 ;;^DD(118.3,1,21,0)
+64 ;;=^^2^2^2920508^^
+65 ;;^DD(118.3,1,21,1,0)
+66 ;;=This field specifies whether the label should be printed or not for this
+67 ;;^DD(118.3,1,21,2,0)
+68 ;;=order.
+69 ;;^DD(118.3,1,"DT")
+70 ;;=2920504
+71 ;;^DD(118.3,99,0)
+72 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+73 ;;^DD(118.3,99,1,0)
+74 ;;=^.1
+75 ;;^DD(118.3,99,1,1,0)
+76 ;;=118.3^AC^MUMPS
+77 ;;^DD(118.3,99,1,1,1)
+78 ;;=K:X'="Y" ^FH(118.3,DA,"I")
+79 ;;^DD(118.3,99,1,1,2)
+80 ;;=K ^FH(118.3,DA,"I")
+81 ;;^DD(118.3,99,1,1,"%D",0)
+82 ;;=^^2^2^2940818^
+83 ;;^DD(118.3,99,1,1,"%D",1,0)
+84 ;;=This cross-reference is used to create an 'I' node for
+85 ;;^DD(118.3,99,1,1,"%D",2,0)
+86 ;;=inactive entries.
+87 ;;^DD(118.3,99,21,0)
+88 ;;=^^2^2^2940701^^
+89 ;;^DD(118.3,99,21,1,0)
+90 ;;=This field, if answered YES, will prohibit further selection of
+91 ;;^DD(118.3,99,21,2,0)
+92 ;;=this standing order by ward or dietetic personnel.
+93 ;;^DD(118.3,99,"DT")
+94 ;;=2880116