IBINI03Q ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(354.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
;;^DD(354.1,.01,1,1,2)
;;=K ^IBA(354.1,"B",$E(X,1,30),DA)
;;^DD(354.1,.01,1,2,0)
;;=354.1^ACY^MUMPS
;;^DD(354.1,.01,1,2,1)
;;=I $P(^IBA(354.1,DA,0),"^",2),$P(^(0),U,3),$P(^(0),U,10) S ^IBA(354.1,"ACY",+$P(^(0),"^",3),+$P(^(0),"^",2),$E(X,1,3),DA)=""
;;^DD(354.1,.01,1,2,2)
;;=K ^IBA(354.1,"ACY",+$P(^IBA(354.1,DA,0),"^",3),+$P(^(0),U,2),$E(X,1,3),DA)
;;^DD(354.1,.01,1,2,"%D",0)
;;=^^3^3^2921209^^^^
;;^DD(354.1,.01,1,2,"%D",1,0)
;;=Cross-reference of all ACTIVE entries for a patient for an effective
;;^DD(354.1,.01,1,2,"%D",2,0)
;;=date. For Pharmacy Co-pay income exemption this equates to calendar
;;^DD(354.1,.01,1,2,"%D",3,0)
;;=year (CY).
;;^DD(354.1,.01,1,2,"DT")
;;=2921118
;;^DD(354.1,.01,1,3,0)
;;=354.1^AIVDT^MUMPS
;;^DD(354.1,.01,1,3,1)
;;=N IBX S IBX=^IBA(354.1,DA,0) I $P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="",$P(IBX,U,10) S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
;;^DD(354.1,.01,1,3,2)
;;=K ^IBA(354.1,"AIVDT",+$P(^IBA(354.1,DA,0),U,3),+$P(^(0),U,2),-X,DA)
;;^DD(354.1,.01,1,3,"%D",0)
;;=^^1^1^2940213^
;;^DD(354.1,.01,1,3,"%D",1,0)
;;=Inverse date cross reference of all exemption entries for a patient.
;;^DD(354.1,.01,1,3,"DT")
;;=2921110
;;^DD(354.1,.01,1,4,0)
;;=354.1^APIDT1^MUMPS
;;^DD(354.1,.01,1,4,1)
;;=I $P(^IBA(354.1,DA,0),U,2),$P(^(0),U,3) S ^IBA(354.1,"APIDT",+$P(^(0),U,2),+$P(^(0),U,3),-X,DA)=""
;;^DD(354.1,.01,1,4,2)
;;=K ^IBA(354.1,"APIDT",+$P(^IBA(354.1,DA,0),U,2),+$P(^(0),U,3),-X,DA)
;;^DD(354.1,.01,1,4,"%D",0)
;;=^^1^1^2940213^
;;^DD(354.1,.01,1,4,"%D",1,0)
;;=Cross reference of all exemptions by patient, by type and by inverse date.
;;^DD(354.1,.01,1,4,"DT")
;;=2921116
;;^DD(354.1,.01,3)
;;=
;;^DD(354.1,.01,21,0)
;;=^^7^7^2921209^^^^
;;^DD(354.1,.01,21,1,0)
;;=Enter the effective date of the exemption.
;;^DD(354.1,.01,21,2,0)
;;=
;;^DD(354.1,.01,21,3,0)
;;=Patients will be given 1 year of exemption from the Medication Copayment
;;^DD(354.1,.01,21,4,0)
;;=requirement from this effective date. For patients who's exemption is
;;^DD(354.1,.01,21,5,0)
;;=based on income data, every effort will be made to keep this effective
;;^DD(354.1,.01,21,6,0)
;;=date consistent with the Means Test Date of Test or the Copayment
;;^DD(354.1,.01,21,7,0)
;;=Income Test Date of Test.
;;^DD(354.1,.01,"DEL",1,0)
;;=I 1 W !,"Deleting entries not allowed"
;;^DD(354.1,.01,"DT")
;;=2930407
;;^DD(354.1,.02,0)
;;=PATIENT^RP354'I^IBA(354,^0;2^Q
;;^DD(354.1,.02,.1)
;;=BILLING PATIENT
;;^DD(354.1,.02,1,0)
;;=^.1
;;^DD(354.1,.02,1,1,0)
;;=354.1^AP
;;^DD(354.1,.02,1,1,1)
;;=S ^IBA(354.1,"AP",$E(X,1,30),DA)=""
;;^DD(354.1,.02,1,1,2)
;;=K ^IBA(354.1,"AP",$E(X,1,30),DA)
;;^DD(354.1,.02,1,1,"%D",0)
;;=^^1^1^2921110^
;;^DD(354.1,.02,1,1,"%D",1,0)
;;=Cross-reference of Patient.
;;^DD(354.1,.02,1,1,"DT")
;;=2921110
;;^DD(354.1,.02,1,2,0)
;;=354.1^AIVDT2^MUMPS
;;^DD(354.1,.02,1,2,1)
;;=N IBX S IBX=^IBA(354.1,DA,0) I $P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="",$P(IBX,U,10) S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
;;^DD(354.1,.02,1,2,2)
;;=K ^IBA(354.1,"AIVDT",+$P(^IBA(354.1,DA,0),"^",3),+X,-($P(^(0),U)),DA)
;;^DD(354.1,.02,1,2,"DT")
;;=2921110
;;^DD(354.1,.02,1,3,0)
;;=354.1^C
;;^DD(354.1,.02,1,3,1)
;;=S ^IBA(354.1,"C",$E(X,1,30),DA)=""
;;^DD(354.1,.02,1,3,2)
;;=K ^IBA(354.1,"C",$E(X,1,30),DA)
;;^DD(354.1,.02,1,3,"%D",0)
;;=^^2^2^2940213^^^^
;;^DD(354.1,.02,1,3,"%D",1,0)
;;=Cross-reference of all ACTIVE entries for a patient by calendar
;;^DD(354.1,.02,1,3,"%D",2,0)
;;=year (CY). This equates to $e(effective date,1,3).
IBINI03Q ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(354.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 ;;^DD(354.1,.01,1,1,2)
+2 ;;=K ^IBA(354.1,"B",$E(X,1,30),DA)
+3 ;;^DD(354.1,.01,1,2,0)
+4 ;;=354.1^ACY^MUMPS
+5 ;;^DD(354.1,.01,1,2,1)
+6 ;;=I $P(^IBA(354.1,DA,0),"^",2),$P(^(0),U,3),$P(^(0),U,10) S ^IBA(354.1,"ACY",+$P(^(0),"^",3),+$P(^(0),"^",2),$E(X,1,3),DA)=""
+7 ;;^DD(354.1,.01,1,2,2)
+8 ;;=K ^IBA(354.1,"ACY",+$P(^IBA(354.1,DA,0),"^",3),+$P(^(0),U,2),$E(X,1,3),DA)
+9 ;;^DD(354.1,.01,1,2,"%D",0)
+10 ;;=^^3^3^2921209^^^^
+11 ;;^DD(354.1,.01,1,2,"%D",1,0)
+12 ;;=Cross-reference of all ACTIVE entries for a patient for an effective
+13 ;;^DD(354.1,.01,1,2,"%D",2,0)
+14 ;;=date. For Pharmacy Co-pay income exemption this equates to calendar
+15 ;;^DD(354.1,.01,1,2,"%D",3,0)
+16 ;;=year (CY).
+17 ;;^DD(354.1,.01,1,2,"DT")
+18 ;;=2921118
+19 ;;^DD(354.1,.01,1,3,0)
+20 ;;=354.1^AIVDT^MUMPS
+21 ;;^DD(354.1,.01,1,3,1)
+22 ;;=N IBX S IBX=^IBA(354.1,DA,0) I $P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="",$P(IBX,U,10) S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
+23 ;;^DD(354.1,.01,1,3,2)
+24 ;;=K ^IBA(354.1,"AIVDT",+$P(^IBA(354.1,DA,0),U,3),+$P(^(0),U,2),-X,DA)
+25 ;;^DD(354.1,.01,1,3,"%D",0)
+26 ;;=^^1^1^2940213^
+27 ;;^DD(354.1,.01,1,3,"%D",1,0)
+28 ;;=Inverse date cross reference of all exemption entries for a patient.
+29 ;;^DD(354.1,.01,1,3,"DT")
+30 ;;=2921110
+31 ;;^DD(354.1,.01,1,4,0)
+32 ;;=354.1^APIDT1^MUMPS
+33 ;;^DD(354.1,.01,1,4,1)
+34 ;;=I $P(^IBA(354.1,DA,0),U,2),$P(^(0),U,3) S ^IBA(354.1,"APIDT",+$P(^(0),U,2),+$P(^(0),U,3),-X,DA)=""
+35 ;;^DD(354.1,.01,1,4,2)
+36 ;;=K ^IBA(354.1,"APIDT",+$P(^IBA(354.1,DA,0),U,2),+$P(^(0),U,3),-X,DA)
+37 ;;^DD(354.1,.01,1,4,"%D",0)
+38 ;;=^^1^1^2940213^
+39 ;;^DD(354.1,.01,1,4,"%D",1,0)
+40 ;;=Cross reference of all exemptions by patient, by type and by inverse date.
+41 ;;^DD(354.1,.01,1,4,"DT")
+42 ;;=2921116
+43 ;;^DD(354.1,.01,3)
+44 ;;=
+45 ;;^DD(354.1,.01,21,0)
+46 ;;=^^7^7^2921209^^^^
+47 ;;^DD(354.1,.01,21,1,0)
+48 ;;=Enter the effective date of the exemption.
+49 ;;^DD(354.1,.01,21,2,0)
+50 ;;=
+51 ;;^DD(354.1,.01,21,3,0)
+52 ;;=Patients will be given 1 year of exemption from the Medication Copayment
+53 ;;^DD(354.1,.01,21,4,0)
+54 ;;=requirement from this effective date. For patients who's exemption is
+55 ;;^DD(354.1,.01,21,5,0)
+56 ;;=based on income data, every effort will be made to keep this effective
+57 ;;^DD(354.1,.01,21,6,0)
+58 ;;=date consistent with the Means Test Date of Test or the Copayment
+59 ;;^DD(354.1,.01,21,7,0)
+60 ;;=Income Test Date of Test.
+61 ;;^DD(354.1,.01,"DEL",1,0)
+62 ;;=I 1 W !,"Deleting entries not allowed"
+63 ;;^DD(354.1,.01,"DT")
+64 ;;=2930407
+65 ;;^DD(354.1,.02,0)
+66 ;;=PATIENT^RP354'I^IBA(354,^0;2^Q
+67 ;;^DD(354.1,.02,.1)
+68 ;;=BILLING PATIENT
+69 ;;^DD(354.1,.02,1,0)
+70 ;;=^.1
+71 ;;^DD(354.1,.02,1,1,0)
+72 ;;=354.1^AP
+73 ;;^DD(354.1,.02,1,1,1)
+74 ;;=S ^IBA(354.1,"AP",$E(X,1,30),DA)=""
+75 ;;^DD(354.1,.02,1,1,2)
+76 ;;=K ^IBA(354.1,"AP",$E(X,1,30),DA)
+77 ;;^DD(354.1,.02,1,1,"%D",0)
+78 ;;=^^1^1^2921110^
+79 ;;^DD(354.1,.02,1,1,"%D",1,0)
+80 ;;=Cross-reference of Patient.
+81 ;;^DD(354.1,.02,1,1,"DT")
+82 ;;=2921110
+83 ;;^DD(354.1,.02,1,2,0)
+84 ;;=354.1^AIVDT2^MUMPS
+85 ;;^DD(354.1,.02,1,2,1)
+86 ;;=N IBX S IBX=^IBA(354.1,DA,0) I $P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="",$P(IBX,U,10) S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
+87 ;;^DD(354.1,.02,1,2,2)
+88 ;;=K ^IBA(354.1,"AIVDT",+$P(^IBA(354.1,DA,0),"^",3),+X,-($P(^(0),U)),DA)
+89 ;;^DD(354.1,.02,1,2,"DT")
+90 ;;=2921110
+91 ;;^DD(354.1,.02,1,3,0)
+92 ;;=354.1^C
+93 ;;^DD(354.1,.02,1,3,1)
+94 ;;=S ^IBA(354.1,"C",$E(X,1,30),DA)=""
+95 ;;^DD(354.1,.02,1,3,2)
+96 ;;=K ^IBA(354.1,"C",$E(X,1,30),DA)
+97 ;;^DD(354.1,.02,1,3,"%D",0)
+98 ;;=^^2^2^2940213^^^^
+99 ;;^DD(354.1,.02,1,3,"%D",1,0)
+100 ;;=Cross-reference of all ACTIVE entries for a patient by calendar
+101 ;;^DD(354.1,.02,1,3,"%D",2,0)
+102 ;;=year (CY). This equates to $e(effective date,1,3).