- IBINI03M ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(354) 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(354,0,"GL")
- ;;=^IBA(354,
- ;;^DIC("B","BILLING PATIENT",354)
- ;;=
- ;;^DIC(354,"%D",0)
- ;;=^^21^21^2940307^^^^
- ;;^DIC(354,"%D",1,0)
- ;;=DO NOT EDIT THIS FILE.
- ;;^DIC(354,"%D",2,0)
- ;;=
- ;;^DIC(354,"%D",3,0)
- ;;=Under normal operation it is not necessary to edit the fields in this
- ;;^DIC(354,"%D",4,0)
- ;;=file directly. The option Manually Change Copay Exemption (Hardships) can
- ;;^DIC(354,"%D",5,0)
- ;;=be used to update and correct this entry by creating a new exemption.
- ;;^DIC(354,"%D",6,0)
- ;;=If many patient records have problems the option Print/Verify Patient
- ;;^DIC(354,"%D",7,0)
- ;;=Exemption Status can be used to correct the entries.
- ;;^DIC(354,"%D",8,0)
- ;;=
- ;;^DIC(354,"%D",9,0)
- ;;=The data in this file is updated each time a new (current) exemption
- ;;^DIC(354,"%D",10,0)
- ;;=is created for a patient. Exemptions are automatically created when
- ;;^DIC(354,"%D",11,0)
- ;;=changes in patient information change the exemption status or when
- ;;^DIC(354,"%D",12,0)
- ;;=an expired (older than 1 year) exemption is encountered when determining
- ;;^DIC(354,"%D",13,0)
- ;;=the exemption status for pharmacy.
- ;;^DIC(354,"%D",14,0)
- ;;=
- ;;^DIC(354,"%D",15,0)
- ;;=This file will contain specific information related to billing about
- ;;^DIC(354,"%D",16,0)
- ;;=individual patients. Current Status of the Medication Copayment Exemption
- ;;^DIC(354,"%D",17,0)
- ;;=will be kept in this file. Conceptually this is different than the
- ;;^DIC(354,"%D",18,0)
- ;;=BILLING EXEMPTIONS File which maintains the audit log and historical data
- ;;^DIC(354,"%D",19,0)
- ;;=related to billing exemptions.
- ;;^DIC(354,"%D",20,0)
- ;;=
- ;;^DIC(354,"%D",21,0)
- ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- ;;^DD(354,0)
- ;;=FIELD^^.05^4
- ;;^DD(354,0,"DDA")
- ;;=N
- ;;^DD(354,0,"DT")
- ;;=2930210
- ;;^DD(354,0,"ID",.04)
- ;;=W " ",@("$P($P($C(59)_$S($D(^DD(354,.04,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,4)_"":"",2),$C(59),1)")
- ;;^DD(354,0,"ID",.05)
- ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBE(354.2,+$P(^(0),U,5),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(354.2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
- ;;^DD(354,0,"IX","AC",354,.05)
- ;;=
- ;;^DD(354,0,"IX","AD",354,.03)
- ;;=
- ;;^DD(354,0,"IX","AEX",354,.04)
- ;;=
- ;;^DD(354,0,"IX","B",354,.01)
- ;;=
- ;;^DD(354,0,"NM","BILLING PATIENT")
- ;;=
- ;;^DD(354,0,"PT",354.1,.02)
- ;;=
- ;;^DD(354,.01,0)
- ;;=PATIENT NAME^RP2'X^DPT(^0;1^S DINUM=X
- ;;^DD(354,.01,1,0)
- ;;=^.1
- ;;^DD(354,.01,1,1,0)
- ;;=354^B
- ;;^DD(354,.01,1,1,1)
- ;;=S ^IBA(354,"B",$E(X,1,30),DA)=""
- ;;^DD(354,.01,1,1,2)
- ;;=K ^IBA(354,"B",$E(X,1,30),DA)
- ;;^DD(354,.01,3)
- ;;=Enter the name of the patient as it appears in the patient file or enter the SSN or last four.
- ;;^DD(354,.01,21,0)
- ;;=^^1^1^2930121^^
- ;;^DD(354,.01,21,1,0)
- ;;=This is the name of the patient as it appears in the patient file.
- ;;^DD(354,.01,23,0)
- ;;=^^2^2^2930121^^
- ;;^DD(354,.01,23,1,0)
- ;;=This field is the pointer to the PATIENT file. It will use the same
- ;;^DD(354,.01,23,2,0)
- ;;=internal entry number in this file as in the PATIENT file.
- ;;^DD(354,.01,"DEL",1,0)
- ;;=I 1 W !,"Deleting entries not allowed"
- ;;^DD(354,.01,"DT")
- ;;=2930121
- ;;^DD(354,.03,0)
- ;;=COPAY EXEMPTION STATUS DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:X'=$P(^IBA(354,DA,0),U,3) X
- ;;^DD(354,.03,.1)
- ;;=CURRENT RX COPAY INCOME EXEMPTION STATUS DATE
- ;;^DD(354,.03,1,0)
- ;;=^.1
- ;;^DD(354,.03,1,1,0)
- ;;=354^AD
- ;;^DD(354,.03,1,1,1)
- ;;=S ^IBA(354,"AD",$E(X,1,30),DA)=""
- ;;^DD(354,.03,1,1,2)
- ;;=K ^IBA(354,"AD",$E(X,1,30),DA)
- IBINI03M ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(354)
- 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(354,0,"GL")
- +2 ;;=^IBA(354,
- +3 ;;^DIC("B","BILLING PATIENT",354)
- +4 ;;=
- +5 ;;^DIC(354,"%D",0)
- +6 ;;=^^21^21^2940307^^^^
- +7 ;;^DIC(354,"%D",1,0)
- +8 ;;=DO NOT EDIT THIS FILE.
- +9 ;;^DIC(354,"%D",2,0)
- +10 ;;=
- +11 ;;^DIC(354,"%D",3,0)
- +12 ;;=Under normal operation it is not necessary to edit the fields in this
- +13 ;;^DIC(354,"%D",4,0)
- +14 ;;=file directly. The option Manually Change Copay Exemption (Hardships) can
- +15 ;;^DIC(354,"%D",5,0)
- +16 ;;=be used to update and correct this entry by creating a new exemption.
- +17 ;;^DIC(354,"%D",6,0)
- +18 ;;=If many patient records have problems the option Print/Verify Patient
- +19 ;;^DIC(354,"%D",7,0)
- +20 ;;=Exemption Status can be used to correct the entries.
- +21 ;;^DIC(354,"%D",8,0)
- +22 ;;=
- +23 ;;^DIC(354,"%D",9,0)
- +24 ;;=The data in this file is updated each time a new (current) exemption
- +25 ;;^DIC(354,"%D",10,0)
- +26 ;;=is created for a patient. Exemptions are automatically created when
- +27 ;;^DIC(354,"%D",11,0)
- +28 ;;=changes in patient information change the exemption status or when
- +29 ;;^DIC(354,"%D",12,0)
- +30 ;;=an expired (older than 1 year) exemption is encountered when determining
- +31 ;;^DIC(354,"%D",13,0)
- +32 ;;=the exemption status for pharmacy.
- +33 ;;^DIC(354,"%D",14,0)
- +34 ;;=
- +35 ;;^DIC(354,"%D",15,0)
- +36 ;;=This file will contain specific information related to billing about
- +37 ;;^DIC(354,"%D",16,0)
- +38 ;;=individual patients. Current Status of the Medication Copayment Exemption
- +39 ;;^DIC(354,"%D",17,0)
- +40 ;;=will be kept in this file. Conceptually this is different than the
- +41 ;;^DIC(354,"%D",18,0)
- +42 ;;=BILLING EXEMPTIONS File which maintains the audit log and historical data
- +43 ;;^DIC(354,"%D",19,0)
- +44 ;;=related to billing exemptions.
- +45 ;;^DIC(354,"%D",20,0)
- +46 ;;=
- +47 ;;^DIC(354,"%D",21,0)
- +48 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- +49 ;;^DD(354,0)
- +50 ;;=FIELD^^.05^4
- +51 ;;^DD(354,0,"DDA")
- +52 ;;=N
- +53 ;;^DD(354,0,"DT")
- +54 ;;=2930210
- +55 ;;^DD(354,0,"ID",.04)
- +56 ;;=W " ",@("$P($P($C(59)_$S($D(^DD(354,.04,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,4)_"":"",2),$C(59),1)")
- +57 ;;^DD(354,0,"ID",.05)
- +58 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBE(354.2,+$P(^(0),U,5),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(354.2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
- +59 ;;^DD(354,0,"IX","AC",354,.05)
- +60 ;;=
- +61 ;;^DD(354,0,"IX","AD",354,.03)
- +62 ;;=
- +63 ;;^DD(354,0,"IX","AEX",354,.04)
- +64 ;;=
- +65 ;;^DD(354,0,"IX","B",354,.01)
- +66 ;;=
- +67 ;;^DD(354,0,"NM","BILLING PATIENT")
- +68 ;;=
- +69 ;;^DD(354,0,"PT",354.1,.02)
- +70 ;;=
- +71 ;;^DD(354,.01,0)
- +72 ;;=PATIENT NAME^RP2'X^DPT(^0;1^S DINUM=X
- +73 ;;^DD(354,.01,1,0)
- +74 ;;=^.1
- +75 ;;^DD(354,.01,1,1,0)
- +76 ;;=354^B
- +77 ;;^DD(354,.01,1,1,1)
- +78 ;;=S ^IBA(354,"B",$E(X,1,30),DA)=""
- +79 ;;^DD(354,.01,1,1,2)
- +80 ;;=K ^IBA(354,"B",$E(X,1,30),DA)
- +81 ;;^DD(354,.01,3)
- +82 ;;=Enter the name of the patient as it appears in the patient file or enter the SSN or last four.
- +83 ;;^DD(354,.01,21,0)
- +84 ;;=^^1^1^2930121^^
- +85 ;;^DD(354,.01,21,1,0)
- +86 ;;=This is the name of the patient as it appears in the patient file.
- +87 ;;^DD(354,.01,23,0)
- +88 ;;=^^2^2^2930121^^
- +89 ;;^DD(354,.01,23,1,0)
- +90 ;;=This field is the pointer to the PATIENT file. It will use the same
- +91 ;;^DD(354,.01,23,2,0)
- +92 ;;=internal entry number in this file as in the PATIENT file.
- +93 ;;^DD(354,.01,"DEL",1,0)
- +94 ;;=I 1 W !,"Deleting entries not allowed"
- +95 ;;^DD(354,.01,"DT")
- +96 ;;=2930121
- +97 ;;^DD(354,.03,0)
- +98 ;;=COPAY EXEMPTION STATUS DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:X'=$P(^IBA(354,DA,0),U,3) X
- +99 ;;^DD(354,.03,.1)
- +100 ;;=CURRENT RX COPAY INCOME EXEMPTION STATUS DATE
- +101 ;;^DD(354,.03,1,0)
- +102 ;;=^.1
- +103 ;;^DD(354,.03,1,1,0)
- +104 ;;=354^AD
- +105 ;;^DD(354,.03,1,1,1)
- +106 ;;=S ^IBA(354,"AD",$E(X,1,30),DA)=""
- +107 ;;^DD(354,.03,1,1,2)
- +108 ;;=K ^IBA(354,"AD",$E(X,1,30),DA)