IBINI036 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(352.1) 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(352.1,0,"GL")
;;=^IBE(352.1,
;;^DIC("B","BILLABLE APPOINTMENT TYPE",352.1)
;;=
;;^DIC(352.1,"%D",0)
;;=^^6^6^2940214^
;;^DIC(352.1,"%D",1,0)
;;=Records for each appointment type with indicators for IGNORE
;;^DIC(352.1,"%D",2,0)
;;=MEANS TEST, PRINT ON INSURANCE REPORT, and DISPLAY ON INPUT
;;^DIC(352.1,"%D",3,0)
;;=SCREEN. Also contains effective date of determination.
;;^DIC(352.1,"%D",4,0)
;;=Accessed by extrinsic function ^IBEFUNC.
;;^DIC(352.1,"%D",5,0)
;;=
;;^DIC(352.1,"%D",6,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(352.1,0)
;;=FIELD^^.06^6
;;^DD(352.1,0,"DDA")
;;=N
;;^DD(352.1,0,"DT")
;;=2911022
;;^DD(352.1,0,"ID",.02)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^SD(409.1,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(409.1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(352.1,0,"ID",.03)
;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
;;^DD(352.1,0,"IX","AIVDT1",352.1,.02)
;;=
;;^DD(352.1,0,"IX","AIVDT2",352.1,.03)
;;=
;;^DD(352.1,0,"IX","B",352.1,.01)
;;=
;;^DD(352.1,0,"IX","C",352.1,.02)
;;=
;;^DD(352.1,0,"IX","D",352.1,.03)
;;=
;;^DD(352.1,0,"NM","BILLABLE APPOINTMENT TYPE")
;;=
;;^DD(352.1,.01,0)
;;=NUMBER^RNJ2,0^^0;1^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X
;;^DD(352.1,.01,1,0)
;;=^.1^^0
;;^DD(352.1,.01,1,1,0)
;;=352.1^B
;;^DD(352.1,.01,1,1,1)
;;=S ^IBE(352.1,"B",$E(X,1,30),DA)=""
;;^DD(352.1,.01,1,1,2)
;;=K ^IBE(352.1,"B",$E(X,1,30),DA)
;;^DD(352.1,.01,3)
;;=Type a Number between 1 and 99, 0 Decimal Digits
;;^DD(352.1,.01,21,0)
;;=^^1^1^2920406^^^
;;^DD(352.1,.01,21,1,0)
;;=This is a unique number for each entry.
;;^DD(352.1,.01,"DT")
;;=2911021
;;^DD(352.1,.02,0)
;;=APPOINTMENT TYPE^RP409.1'^SD(409.1,^0;2^Q
;;^DD(352.1,.02,1,0)
;;=^.1
;;^DD(352.1,.02,1,1,0)
;;=352.1^AIVDT1^MUMPS
;;^DD(352.1,.02,1,1,1)
;;=I $P(^IBE(352.1,DA,0),U,3) S ^IBE(352.1,"AIVDT",X,-$P(^(0),U,3),DA)=""
;;^DD(352.1,.02,1,1,2)
;;=I $P(^IBE(352.1,DA,0),U,3) K ^IBE(352.1,"AIVDT",X,-$P(^(0),U,3),DA)
;;^DD(352.1,.02,1,1,"%D",0)
;;=^^1^1^2911022^
;;^DD(352.1,.02,1,1,"%D",1,0)
;;=Used to find most recent entry for appointment type.
;;^DD(352.1,.02,1,1,"DT")
;;=2911022
;;^DD(352.1,.02,1,2,0)
;;=352.1^C
;;^DD(352.1,.02,1,2,1)
;;=S ^IBE(352.1,"C",$E(X,1,30),DA)=""
;;^DD(352.1,.02,1,2,2)
;;=K ^IBE(352.1,"C",$E(X,1,30),DA)
;;^DD(352.1,.02,1,2,"DT")
;;=2911022
;;^DD(352.1,.02,21,0)
;;=^^1^1^2920406^^
;;^DD(352.1,.02,21,1,0)
;;=This is the MAS Appointment type.
;;^DD(352.1,.02,"DT")
;;=2911022
;;^DD(352.1,.03,0)
;;=EFFECTIVE DATE^RDI^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(352.1,.03,1,0)
;;=^.1
;;^DD(352.1,.03,1,1,0)
;;=352.1^AIVDT2^MUMPS
;;^DD(352.1,.03,1,1,1)
;;=I $P(^IBE(352.1,DA,0),U,2) S ^IBE(352.1,"AIVDT",$P(^(0),U,2),-X,DA)=""
;;^DD(352.1,.03,1,1,2)
;;=I $P(^IBE(352.1,DA,0),U,2) K ^IBE(352.1,"AIVDT",$P(^(0),U,2),-X,DA)
;;^DD(352.1,.03,1,1,"%D",0)
;;=^^1^1^2911022^
;;^DD(352.1,.03,1,1,"%D",1,0)
;;=Used to find most recent entry for an appointment type.
;;^DD(352.1,.03,1,1,"DT")
;;=2911022
;;^DD(352.1,.03,1,2,0)
;;=352.1^D
;;^DD(352.1,.03,1,2,1)
;;=S ^IBE(352.1,"D",$E(X,1,30),DA)=""
;;^DD(352.1,.03,1,2,2)
;;=K ^IBE(352.1,"D",$E(X,1,30),DA)
;;^DD(352.1,.03,1,2,"DT")
;;=2911022
;;^DD(352.1,.03,21,0)
;;=^^7^7^2920406^^^
;;^DD(352.1,.03,21,1,0)
;;=Every Appointment type has certain billing characteristics that may
;;^DD(352.1,.03,21,2,0)
;;=change over time. For example, an appointment type may not be billable
IBINI036 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(352.1)
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(352.1,0,"GL")
+2 ;;=^IBE(352.1,
+3 ;;^DIC("B","BILLABLE APPOINTMENT TYPE",352.1)
+4 ;;=
+5 ;;^DIC(352.1,"%D",0)
+6 ;;=^^6^6^2940214^
+7 ;;^DIC(352.1,"%D",1,0)
+8 ;;=Records for each appointment type with indicators for IGNORE
+9 ;;^DIC(352.1,"%D",2,0)
+10 ;;=MEANS TEST, PRINT ON INSURANCE REPORT, and DISPLAY ON INPUT
+11 ;;^DIC(352.1,"%D",3,0)
+12 ;;=SCREEN. Also contains effective date of determination.
+13 ;;^DIC(352.1,"%D",4,0)
+14 ;;=Accessed by extrinsic function ^IBEFUNC.
+15 ;;^DIC(352.1,"%D",5,0)
+16 ;;=
+17 ;;^DIC(352.1,"%D",6,0)
+18 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+19 ;;^DD(352.1,0)
+20 ;;=FIELD^^.06^6
+21 ;;^DD(352.1,0,"DDA")
+22 ;;=N
+23 ;;^DD(352.1,0,"DT")
+24 ;;=2911022
+25 ;;^DD(352.1,0,"ID",.02)
+26 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^SD(409.1,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(409.1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+27 ;;^DD(352.1,0,"ID",.03)
+28 ;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
+29 ;;^DD(352.1,0,"IX","AIVDT1",352.1,.02)
+30 ;;=
+31 ;;^DD(352.1,0,"IX","AIVDT2",352.1,.03)
+32 ;;=
+33 ;;^DD(352.1,0,"IX","B",352.1,.01)
+34 ;;=
+35 ;;^DD(352.1,0,"IX","C",352.1,.02)
+36 ;;=
+37 ;;^DD(352.1,0,"IX","D",352.1,.03)
+38 ;;=
+39 ;;^DD(352.1,0,"NM","BILLABLE APPOINTMENT TYPE")
+40 ;;=
+41 ;;^DD(352.1,.01,0)
+42 ;;=NUMBER^RNJ2,0^^0;1^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X
+43 ;;^DD(352.1,.01,1,0)
+44 ;;=^.1^^0
+45 ;;^DD(352.1,.01,1,1,0)
+46 ;;=352.1^B
+47 ;;^DD(352.1,.01,1,1,1)
+48 ;;=S ^IBE(352.1,"B",$E(X,1,30),DA)=""
+49 ;;^DD(352.1,.01,1,1,2)
+50 ;;=K ^IBE(352.1,"B",$E(X,1,30),DA)
+51 ;;^DD(352.1,.01,3)
+52 ;;=Type a Number between 1 and 99, 0 Decimal Digits
+53 ;;^DD(352.1,.01,21,0)
+54 ;;=^^1^1^2920406^^^
+55 ;;^DD(352.1,.01,21,1,0)
+56 ;;=This is a unique number for each entry.
+57 ;;^DD(352.1,.01,"DT")
+58 ;;=2911021
+59 ;;^DD(352.1,.02,0)
+60 ;;=APPOINTMENT TYPE^RP409.1'^SD(409.1,^0;2^Q
+61 ;;^DD(352.1,.02,1,0)
+62 ;;=^.1
+63 ;;^DD(352.1,.02,1,1,0)
+64 ;;=352.1^AIVDT1^MUMPS
+65 ;;^DD(352.1,.02,1,1,1)
+66 ;;=I $P(^IBE(352.1,DA,0),U,3) S ^IBE(352.1,"AIVDT",X,-$P(^(0),U,3),DA)=""
+67 ;;^DD(352.1,.02,1,1,2)
+68 ;;=I $P(^IBE(352.1,DA,0),U,3) K ^IBE(352.1,"AIVDT",X,-$P(^(0),U,3),DA)
+69 ;;^DD(352.1,.02,1,1,"%D",0)
+70 ;;=^^1^1^2911022^
+71 ;;^DD(352.1,.02,1,1,"%D",1,0)
+72 ;;=Used to find most recent entry for appointment type.
+73 ;;^DD(352.1,.02,1,1,"DT")
+74 ;;=2911022
+75 ;;^DD(352.1,.02,1,2,0)
+76 ;;=352.1^C
+77 ;;^DD(352.1,.02,1,2,1)
+78 ;;=S ^IBE(352.1,"C",$E(X,1,30),DA)=""
+79 ;;^DD(352.1,.02,1,2,2)
+80 ;;=K ^IBE(352.1,"C",$E(X,1,30),DA)
+81 ;;^DD(352.1,.02,1,2,"DT")
+82 ;;=2911022
+83 ;;^DD(352.1,.02,21,0)
+84 ;;=^^1^1^2920406^^
+85 ;;^DD(352.1,.02,21,1,0)
+86 ;;=This is the MAS Appointment type.
+87 ;;^DD(352.1,.02,"DT")
+88 ;;=2911022
+89 ;;^DD(352.1,.03,0)
+90 ;;=EFFECTIVE DATE^RDI^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+91 ;;^DD(352.1,.03,1,0)
+92 ;;=^.1
+93 ;;^DD(352.1,.03,1,1,0)
+94 ;;=352.1^AIVDT2^MUMPS
+95 ;;^DD(352.1,.03,1,1,1)
+96 ;;=I $P(^IBE(352.1,DA,0),U,2) S ^IBE(352.1,"AIVDT",$P(^(0),U,2),-X,DA)=""
+97 ;;^DD(352.1,.03,1,1,2)
+98 ;;=I $P(^IBE(352.1,DA,0),U,2) K ^IBE(352.1,"AIVDT",$P(^(0),U,2),-X,DA)
+99 ;;^DD(352.1,.03,1,1,"%D",0)
+100 ;;=^^1^1^2911022^
+101 ;;^DD(352.1,.03,1,1,"%D",1,0)
+102 ;;=Used to find most recent entry for an appointment type.
+103 ;;^DD(352.1,.03,1,1,"DT")
+104 ;;=2911022
+105 ;;^DD(352.1,.03,1,2,0)
+106 ;;=352.1^D
+107 ;;^DD(352.1,.03,1,2,1)
+108 ;;=S ^IBE(352.1,"D",$E(X,1,30),DA)=""
+109 ;;^DD(352.1,.03,1,2,2)
+110 ;;=K ^IBE(352.1,"D",$E(X,1,30),DA)
+111 ;;^DD(352.1,.03,1,2,"DT")
+112 ;;=2911022
+113 ;;^DD(352.1,.03,21,0)
+114 ;;=^^7^7^2920406^^^
+115 ;;^DD(352.1,.03,21,1,0)
+116 ;;=Every Appointment type has certain billing characteristics that may
+117 ;;^DD(352.1,.03,21,2,0)
+118 ;;=change over time. For example, an appointment type may not be billable