- IBINI03D ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(352.4) 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.4,0,"GL")
- ;;=^IBE(352.4,
- ;;^DIC("B","NON-BILLABLE CLINICS",352.4)
- ;;=
- ;;^DIC(352.4,"%D",0)
- ;;=^^11^11^2940214^^^
- ;;^DIC(352.4,"%D",1,0)
- ;;=This file shall be used to flag clinics in the HOSPITAL LOCATION (#44)
- ;;^DIC(352.4,"%D",2,0)
- ;;=file as either billable or non-billable for Means Test Billing. The
- ;;^DIC(352.4,"%D",3,0)
- ;;=flagging of clinics is date-sensitive, so the ability to not bill
- ;;^DIC(352.4,"%D",4,0)
- ;;=may be turned on or off. Please note that the default billing action
- ;;^DIC(352.4,"%D",5,0)
- ;;=IS TO BILL all clinics; thus, it is only necessary to add entries in
- ;;^DIC(352.4,"%D",6,0)
- ;;=this file for clinics where Means Test billing is NOT desired.
- ;;^DIC(352.4,"%D",7,0)
- ;;=
- ;;^DIC(352.4,"%D",8,0)
- ;;=The routine IBEFUNC contains the function call to determine if a
- ;;^DIC(352.4,"%D",9,0)
- ;;=clinic should be not billed on a specific date.
- ;;^DIC(352.4,"%D",10,0)
- ;;=
- ;;^DIC(352.4,"%D",11,0)
- ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- ;;^DD(352.4,0)
- ;;=FIELD^^.03^3
- ;;^DD(352.4,0,"DDA")
- ;;=N
- ;;^DD(352.4,0,"DT")
- ;;=2930720
- ;;^DD(352.4,0,"IX","AIVDT",352.4,.01)
- ;;=
- ;;^DD(352.4,0,"IX","AIVDT1",352.4,.02)
- ;;=
- ;;^DD(352.4,0,"IX","B",352.4,.01)
- ;;=
- ;;^DD(352.4,0,"NM","NON-BILLABLE CLINICS")
- ;;=
- ;;^DD(352.4,.01,0)
- ;;=CLINIC^R*P44'^SC(^0;1^S DIC("S")="I $P(^(0),U,3)=""C""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- ;;^DD(352.4,.01,1,0)
- ;;=^.1
- ;;^DD(352.4,.01,1,1,0)
- ;;=352.4^B
- ;;^DD(352.4,.01,1,1,1)
- ;;=S ^IBE(352.4,"B",$E(X,1,30),DA)=""
- ;;^DD(352.4,.01,1,1,2)
- ;;=K ^IBE(352.4,"B",$E(X,1,30),DA)
- ;;^DD(352.4,.01,1,2,0)
- ;;=352.4^AIVDT^MUMPS
- ;;^DD(352.4,.01,1,2,1)
- ;;=I $D(^IBE(352.4,DA,0)),$P(^(0),"^",2) S ^IBE(352.4,"AIVDT",X,-$P(^(0),"^",2),DA)=""
- ;;^DD(352.4,.01,1,2,2)
- ;;=I $D(^IBE(352.4,DA,0)),$P(^(0),"^",2) K ^IBE(352.4,"AIVDT",X,-$P(^(0),"^",2),DA)
- ;;^DD(352.4,.01,1,2,"%D",0)
- ;;=^^3^3^2930720^
- ;;^DD(352.4,.01,1,2,"%D",1,0)
- ;;=This cross-reference on the CLINIC (#.01) field and the EFFECTIVE DATE
- ;;^DD(352.4,.01,1,2,"%D",2,0)
- ;;=(#.02) field is used to locate the appropriate record for a clinic on
- ;;^DD(352.4,.01,1,2,"%D",3,0)
- ;;=a specific effective date.
- ;;^DD(352.4,.01,1,2,"DT")
- ;;=2930720
- ;;^DD(352.4,.01,3)
- ;;=Please enter a clinic.
- ;;^DD(352.4,.01,12)
- ;;=This screen is used to assure that only clinics in file #44 are selected.
- ;;^DD(352.4,.01,12.1)
- ;;=S DIC("S")="I $P(^(0),U,3)=""C"""
- ;;^DD(352.4,.01,21,0)
- ;;=^^3^3^2930720^
- ;;^DD(352.4,.01,21,1,0)
- ;;=This field is a pointer to the HOSPITAL LOCATION (#44) file and
- ;;^DD(352.4,.01,21,2,0)
- ;;=identifies the clinic which is being flagged as billable or
- ;;^DD(352.4,.01,21,3,0)
- ;;=non-billable for Means Test billing.
- ;;^DD(352.4,.01,"DT")
- ;;=2930720
- ;;^DD(352.4,.02,0)
- ;;=EFFECTIVE DATE^RD^^0;2^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- ;;^DD(352.4,.02,1,0)
- ;;=^.1
- ;;^DD(352.4,.02,1,1,0)
- ;;=352.4^AIVDT1^MUMPS
- ;;^DD(352.4,.02,1,1,1)
- ;;=I $D(^IBE(352.4,DA,0)),+^(0) S ^IBE(352.4,"AIVDT",+^(0),-X,DA)=""
- ;;^DD(352.4,.02,1,1,2)
- ;;=I $D(^IBE(352.4,DA,0)),+^(0) K ^IBE(352.4,"AIVDT",+^(0),-X,DA)
- ;;^DD(352.4,.02,1,1,"%D",0)
- ;;=^^3^3^2930720^
- ;;^DD(352.4,.02,1,1,"%D",1,0)
- ;;=This cross-reference on the CLINIC (#.01) field and the EFFECTIVE DATE
- ;;^DD(352.4,.02,1,1,"%D",2,0)
- ;;=(#.02) field is used to locate the appropriate record for a clinic on
- ;;^DD(352.4,.02,1,1,"%D",3,0)
- ;;=a specific effective date.
- ;;^DD(352.4,.02,1,1,"DT")
- ;;=2930720
- ;;^DD(352.4,.02,3)
- ;;=Please enter the effective date.
- ;;^DD(352.4,.02,21,0)
- ;;=^^2^2^2930720^
- IBINI03D ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(352.4)
- 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.4,0,"GL")
- +2 ;;=^IBE(352.4,
- +3 ;;^DIC("B","NON-BILLABLE CLINICS",352.4)
- +4 ;;=
- +5 ;;^DIC(352.4,"%D",0)
- +6 ;;=^^11^11^2940214^^^
- +7 ;;^DIC(352.4,"%D",1,0)
- +8 ;;=This file shall be used to flag clinics in the HOSPITAL LOCATION (#44)
- +9 ;;^DIC(352.4,"%D",2,0)
- +10 ;;=file as either billable or non-billable for Means Test Billing. The
- +11 ;;^DIC(352.4,"%D",3,0)
- +12 ;;=flagging of clinics is date-sensitive, so the ability to not bill
- +13 ;;^DIC(352.4,"%D",4,0)
- +14 ;;=may be turned on or off. Please note that the default billing action
- +15 ;;^DIC(352.4,"%D",5,0)
- +16 ;;=IS TO BILL all clinics; thus, it is only necessary to add entries in
- +17 ;;^DIC(352.4,"%D",6,0)
- +18 ;;=this file for clinics where Means Test billing is NOT desired.
- +19 ;;^DIC(352.4,"%D",7,0)
- +20 ;;=
- +21 ;;^DIC(352.4,"%D",8,0)
- +22 ;;=The routine IBEFUNC contains the function call to determine if a
- +23 ;;^DIC(352.4,"%D",9,0)
- +24 ;;=clinic should be not billed on a specific date.
- +25 ;;^DIC(352.4,"%D",10,0)
- +26 ;;=
- +27 ;;^DIC(352.4,"%D",11,0)
- +28 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- +29 ;;^DD(352.4,0)
- +30 ;;=FIELD^^.03^3
- +31 ;;^DD(352.4,0,"DDA")
- +32 ;;=N
- +33 ;;^DD(352.4,0,"DT")
- +34 ;;=2930720
- +35 ;;^DD(352.4,0,"IX","AIVDT",352.4,.01)
- +36 ;;=
- +37 ;;^DD(352.4,0,"IX","AIVDT1",352.4,.02)
- +38 ;;=
- +39 ;;^DD(352.4,0,"IX","B",352.4,.01)
- +40 ;;=
- +41 ;;^DD(352.4,0,"NM","NON-BILLABLE CLINICS")
- +42 ;;=
- +43 ;;^DD(352.4,.01,0)
- +44 ;;=CLINIC^R*P44'^SC(^0;1^S DIC("S")="I $P(^(0),U,3)=""C""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
- +45 ;;^DD(352.4,.01,1,0)
- +46 ;;=^.1
- +47 ;;^DD(352.4,.01,1,1,0)
- +48 ;;=352.4^B
- +49 ;;^DD(352.4,.01,1,1,1)
- +50 ;;=S ^IBE(352.4,"B",$E(X,1,30),DA)=""
- +51 ;;^DD(352.4,.01,1,1,2)
- +52 ;;=K ^IBE(352.4,"B",$E(X,1,30),DA)
- +53 ;;^DD(352.4,.01,1,2,0)
- +54 ;;=352.4^AIVDT^MUMPS
- +55 ;;^DD(352.4,.01,1,2,1)
- +56 ;;=I $D(^IBE(352.4,DA,0)),$P(^(0),"^",2) S ^IBE(352.4,"AIVDT",X,-$P(^(0),"^",2),DA)=""
- +57 ;;^DD(352.4,.01,1,2,2)
- +58 ;;=I $D(^IBE(352.4,DA,0)),$P(^(0),"^",2) K ^IBE(352.4,"AIVDT",X,-$P(^(0),"^",2),DA)
- +59 ;;^DD(352.4,.01,1,2,"%D",0)
- +60 ;;=^^3^3^2930720^
- +61 ;;^DD(352.4,.01,1,2,"%D",1,0)
- +62 ;;=This cross-reference on the CLINIC (#.01) field and the EFFECTIVE DATE
- +63 ;;^DD(352.4,.01,1,2,"%D",2,0)
- +64 ;;=(#.02) field is used to locate the appropriate record for a clinic on
- +65 ;;^DD(352.4,.01,1,2,"%D",3,0)
- +66 ;;=a specific effective date.
- +67 ;;^DD(352.4,.01,1,2,"DT")
- +68 ;;=2930720
- +69 ;;^DD(352.4,.01,3)
- +70 ;;=Please enter a clinic.
- +71 ;;^DD(352.4,.01,12)
- +72 ;;=This screen is used to assure that only clinics in file #44 are selected.
- +73 ;;^DD(352.4,.01,12.1)
- +74 ;;=S DIC("S")="I $P(^(0),U,3)=""C"""
- +75 ;;^DD(352.4,.01,21,0)
- +76 ;;=^^3^3^2930720^
- +77 ;;^DD(352.4,.01,21,1,0)
- +78 ;;=This field is a pointer to the HOSPITAL LOCATION (#44) file and
- +79 ;;^DD(352.4,.01,21,2,0)
- +80 ;;=identifies the clinic which is being flagged as billable or
- +81 ;;^DD(352.4,.01,21,3,0)
- +82 ;;=non-billable for Means Test billing.
- +83 ;;^DD(352.4,.01,"DT")
- +84 ;;=2930720
- +85 ;;^DD(352.4,.02,0)
- +86 ;;=EFFECTIVE DATE^RD^^0;2^S %DT="EX" D ^%DT S X=Y K:Y<1 X
- +87 ;;^DD(352.4,.02,1,0)
- +88 ;;=^.1
- +89 ;;^DD(352.4,.02,1,1,0)
- +90 ;;=352.4^AIVDT1^MUMPS
- +91 ;;^DD(352.4,.02,1,1,1)
- +92 ;;=I $D(^IBE(352.4,DA,0)),+^(0) S ^IBE(352.4,"AIVDT",+^(0),-X,DA)=""
- +93 ;;^DD(352.4,.02,1,1,2)
- +94 ;;=I $D(^IBE(352.4,DA,0)),+^(0) K ^IBE(352.4,"AIVDT",+^(0),-X,DA)
- +95 ;;^DD(352.4,.02,1,1,"%D",0)
- +96 ;;=^^3^3^2930720^
- +97 ;;^DD(352.4,.02,1,1,"%D",1,0)
- +98 ;;=This cross-reference on the CLINIC (#.01) field and the EFFECTIVE DATE
- +99 ;;^DD(352.4,.02,1,1,"%D",2,0)
- +100 ;;=(#.02) field is used to locate the appropriate record for a clinic on
- +101 ;;^DD(352.4,.02,1,1,"%D",3,0)
- +102 ;;=a specific effective date.
- +103 ;;^DD(352.4,.02,1,1,"DT")
- +104 ;;=2930720
- +105 ;;^DD(352.4,.02,3)
- +106 ;;=Please enter the effective date.
- +107 ;;^DD(352.4,.02,21,0)
- +108 ;;=^^2^2^2930720^