IBINI07X ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(357.5) 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(357.5,0,"GL")
;;=^IBE(357.5,
;;^DIC("B","DATA FIELD",357.5)
;;=
;;^DIC(357.5,"%D",0)
;;=^^6^6^2940217^
;;^DIC(357.5,"%D",1,0)
;;=
;;^DIC(357.5,"%D",2,0)
;;=A data field can be composed of a label, determined at the time the form
;;^DIC(357.5,"%D",3,0)
;;=description is created, and data, coming from the DHCP database and
;;^DIC(357.5,"%D",4,0)
;;=determined at the time the form prints. The label and data are printed to
;;^DIC(357.5,"%D",5,0)
;;=the encounter form. A data field can be composed of subfields, each
;;^DIC(357.5,"%D",6,0)
;;=subfield containing possibly its own label and data.
;;^DD(357.5,0)
;;=FIELD^^2^13
;;^DD(357.5,0,"DIK")
;;=IBXF5
;;^DD(357.5,0,"DT")
;;=2930730
;;^DD(357.5,0,"ID",.02)
;;=W ""
;;^DD(357.5,0,"ID",.03)
;;=W ""
;;^DD(357.5,0,"IX","B",357.5,.01)
;;=
;;^DD(357.5,0,"IX","C",357.5,.02)
;;=
;;^DD(357.5,0,"NM","DATA FIELD")
;;=
;;^DD(357.5,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
;;^DD(357.5,.01,1,0)
;;=^.1
;;^DD(357.5,.01,1,1,0)
;;=357.5^B
;;^DD(357.5,.01,1,1,1)
;;=S ^IBE(357.5,"B",$E(X,1,30),DA)=""
;;^DD(357.5,.01,1,1,2)
;;=K ^IBE(357.5,"B",$E(X,1,30),DA)
;;^DD(357.5,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(357.5,.01,21,0)
;;=^^3^3^2930419^^^
;;^DD(357.5,.01,21,1,0)
;;=
;;^DD(357.5,.01,21,2,0)
;;=The name is used to identify the field within a block. It can be anything
;;^DD(357.5,.01,21,3,0)
;;=the designer of a form wants it to be.
;;^DD(357.5,.01,"DT")
;;=2930419
;;^DD(357.5,.02,0)
;;=BLOCK^RP357.1'^IBE(357.1,^0;2^Q
;;^DD(357.5,.02,1,0)
;;=^.1
;;^DD(357.5,.02,1,1,0)
;;=357.5^C
;;^DD(357.5,.02,1,1,1)
;;=S ^IBE(357.5,"C",$E(X,1,30),DA)=""
;;^DD(357.5,.02,1,1,2)
;;=K ^IBE(357.5,"C",$E(X,1,30),DA)
;;^DD(357.5,.02,1,1,"DT")
;;=2921118
;;^DD(357.5,.02,3)
;;=What block should this data field appear in?
;;^DD(357.5,.02,21,0)
;;=^^2^2^2930310^
;;^DD(357.5,.02,21,1,0)
;;=
;;^DD(357.5,.02,21,2,0)
;;=The particular block the data field should appear in.
;;^DD(357.5,.02,"DT")
;;=2921118
;;^DD(357.5,.03,0)
;;=TYPE OF DATA^*P357.6'^IBE(357.6,^0;3^S DIC("S")="I $P(^(0),U,6)=2,$P(^(0),U,9)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(357.5,.03,3)
;;=What data should be displayed in this field?
;;^DD(357.5,.03,4)
;;=
;;^DD(357.5,.03,12)
;;=Allows only available output routines
;;^DD(357.5,.03,12.1)
;;=S DIC("S")="I $P(^(0),U,6)=2,$P(^(0),U,9)=1"
;;^DD(357.5,.03,21,0)
;;=^^5^5^2930409^^
;;^DD(357.5,.03,21,1,0)
;;=
;;^DD(357.5,.03,21,2,0)
;;=The particular interface that should be invoked to obtain the data for
;;^DD(357.5,.03,21,3,0)
;;=display. Some of the interfaces don't actually return data, but are
;;^DD(357.5,.03,21,4,0)
;;=instead 'dummy' interfaces for the purpose of printing things like blank
;;^DD(357.5,.03,21,5,0)
;;=lines.
;;^DD(357.5,.03,"DT")
;;=2930309
;;^DD(357.5,.04,0)
;;=LAST ITEM INDICATOR^S^1:YES;0:NO;^0;4^Q
;;^DD(357.5,.04,.1)
;;=IS THIS THE LAST ONE THAT WILL FIT ON THE FORM?
;;^DD(357.5,.04,3)
;;=
;;^DD(357.5,.04,4)
;;=W "Enter YES if this is the last item that should print, else enter NO."
;;^DD(357.5,.04,21,0)
;;=^^4^4^2930408^^^^
;;^DD(357.5,.04,21,1,0)
;;=
;;^DD(357.5,.04,21,2,0)
;;=This field is used to indicate which item on a list is the last to be
;;^DD(357.5,.04,21,3,0)
;;=printed to the form. The remaining items can be printed to a separate
;;^DD(357.5,.04,21,4,0)
;;=piece of paper.
;;^DD(357.5,.04,"DT")
;;=2930413
;;^DD(357.5,.05,0)
;;=NUMBER ON LIST^NJ3,0^^0;5^K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
IBINI07X ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(357.5)
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(357.5,0,"GL")
+2 ;;=^IBE(357.5,
+3 ;;^DIC("B","DATA FIELD",357.5)
+4 ;;=
+5 ;;^DIC(357.5,"%D",0)
+6 ;;=^^6^6^2940217^
+7 ;;^DIC(357.5,"%D",1,0)
+8 ;;=
+9 ;;^DIC(357.5,"%D",2,0)
+10 ;;=A data field can be composed of a label, determined at the time the form
+11 ;;^DIC(357.5,"%D",3,0)
+12 ;;=description is created, and data, coming from the DHCP database and
+13 ;;^DIC(357.5,"%D",4,0)
+14 ;;=determined at the time the form prints. The label and data are printed to
+15 ;;^DIC(357.5,"%D",5,0)
+16 ;;=the encounter form. A data field can be composed of subfields, each
+17 ;;^DIC(357.5,"%D",6,0)
+18 ;;=subfield containing possibly its own label and data.
+19 ;;^DD(357.5,0)
+20 ;;=FIELD^^2^13
+21 ;;^DD(357.5,0,"DIK")
+22 ;;=IBXF5
+23 ;;^DD(357.5,0,"DT")
+24 ;;=2930730
+25 ;;^DD(357.5,0,"ID",.02)
+26 ;;=W ""
+27 ;;^DD(357.5,0,"ID",.03)
+28 ;;=W ""
+29 ;;^DD(357.5,0,"IX","B",357.5,.01)
+30 ;;=
+31 ;;^DD(357.5,0,"IX","C",357.5,.02)
+32 ;;=
+33 ;;^DD(357.5,0,"NM","DATA FIELD")
+34 ;;=
+35 ;;^DD(357.5,.01,0)
+36 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
+37 ;;^DD(357.5,.01,1,0)
+38 ;;=^.1
+39 ;;^DD(357.5,.01,1,1,0)
+40 ;;=357.5^B
+41 ;;^DD(357.5,.01,1,1,1)
+42 ;;=S ^IBE(357.5,"B",$E(X,1,30),DA)=""
+43 ;;^DD(357.5,.01,1,1,2)
+44 ;;=K ^IBE(357.5,"B",$E(X,1,30),DA)
+45 ;;^DD(357.5,.01,3)
+46 ;;=Answer must be 3-30 characters in length.
+47 ;;^DD(357.5,.01,21,0)
+48 ;;=^^3^3^2930419^^^
+49 ;;^DD(357.5,.01,21,1,0)
+50 ;;=
+51 ;;^DD(357.5,.01,21,2,0)
+52 ;;=The name is used to identify the field within a block. It can be anything
+53 ;;^DD(357.5,.01,21,3,0)
+54 ;;=the designer of a form wants it to be.
+55 ;;^DD(357.5,.01,"DT")
+56 ;;=2930419
+57 ;;^DD(357.5,.02,0)
+58 ;;=BLOCK^RP357.1'^IBE(357.1,^0;2^Q
+59 ;;^DD(357.5,.02,1,0)
+60 ;;=^.1
+61 ;;^DD(357.5,.02,1,1,0)
+62 ;;=357.5^C
+63 ;;^DD(357.5,.02,1,1,1)
+64 ;;=S ^IBE(357.5,"C",$E(X,1,30),DA)=""
+65 ;;^DD(357.5,.02,1,1,2)
+66 ;;=K ^IBE(357.5,"C",$E(X,1,30),DA)
+67 ;;^DD(357.5,.02,1,1,"DT")
+68 ;;=2921118
+69 ;;^DD(357.5,.02,3)
+70 ;;=What block should this data field appear in?
+71 ;;^DD(357.5,.02,21,0)
+72 ;;=^^2^2^2930310^
+73 ;;^DD(357.5,.02,21,1,0)
+74 ;;=
+75 ;;^DD(357.5,.02,21,2,0)
+76 ;;=The particular block the data field should appear in.
+77 ;;^DD(357.5,.02,"DT")
+78 ;;=2921118
+79 ;;^DD(357.5,.03,0)
+80 ;;=TYPE OF DATA^*P357.6'^IBE(357.6,^0;3^S DIC("S")="I $P(^(0),U,6)=2,$P(^(0),U,9)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+81 ;;^DD(357.5,.03,3)
+82 ;;=What data should be displayed in this field?
+83 ;;^DD(357.5,.03,4)
+84 ;;=
+85 ;;^DD(357.5,.03,12)
+86 ;;=Allows only available output routines
+87 ;;^DD(357.5,.03,12.1)
+88 ;;=S DIC("S")="I $P(^(0),U,6)=2,$P(^(0),U,9)=1"
+89 ;;^DD(357.5,.03,21,0)
+90 ;;=^^5^5^2930409^^
+91 ;;^DD(357.5,.03,21,1,0)
+92 ;;=
+93 ;;^DD(357.5,.03,21,2,0)
+94 ;;=The particular interface that should be invoked to obtain the data for
+95 ;;^DD(357.5,.03,21,3,0)
+96 ;;=display. Some of the interfaces don't actually return data, but are
+97 ;;^DD(357.5,.03,21,4,0)
+98 ;;=instead 'dummy' interfaces for the purpose of printing things like blank
+99 ;;^DD(357.5,.03,21,5,0)
+100 ;;=lines.
+101 ;;^DD(357.5,.03,"DT")
+102 ;;=2930309
+103 ;;^DD(357.5,.04,0)
+104 ;;=LAST ITEM INDICATOR^S^1:YES;0:NO;^0;4^Q
+105 ;;^DD(357.5,.04,.1)
+106 ;;=IS THIS THE LAST ONE THAT WILL FIT ON THE FORM?
+107 ;;^DD(357.5,.04,3)
+108 ;;=
+109 ;;^DD(357.5,.04,4)
+110 ;;=W "Enter YES if this is the last item that should print, else enter NO."
+111 ;;^DD(357.5,.04,21,0)
+112 ;;=^^4^4^2930408^^^^
+113 ;;^DD(357.5,.04,21,1,0)
+114 ;;=
+115 ;;^DD(357.5,.04,21,2,0)
+116 ;;=This field is used to indicate which item on a list is the last to be
+117 ;;^DD(357.5,.04,21,3,0)
+118 ;;=printed to the form. The remaining items can be printed to a separate
+119 ;;^DD(357.5,.04,21,4,0)
+120 ;;=piece of paper.
+121 ;;^DD(357.5,.04,"DT")
+122 ;;=2930413
+123 ;;^DD(357.5,.05,0)
+124 ;;=NUMBER ON LIST^NJ3,0^^0;5^K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X