Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBINI03R

IBINI03R.m

Go to the documentation of this file.
  1. IBINI03R ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. 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
  1. Q Q
  1. ;;^DD(354.1,.02,1,3,"DT")
  1. ;;=2921223
  1. ;;^DD(354.1,.02,1,4,0)
  1. ;;=354.1^APIDT^MUMPS
  1. ;;^DD(354.1,.02,1,4,1)
  1. ;;=I $P(^IBA(354.1,DA,0),U,3),+^(0) S ^IBA(354.1,"APIDT",X,+$P(^(0),U,3),-($P(^(0),U)),DA)=""
  1. ;;^DD(354.1,.02,1,4,2)
  1. ;;=K ^IBA(354.1,"APIDT",+X,+$P(^IBA(354.1,DA,0),U,3),-($P(^(0),U)),DA)
  1. ;;^DD(354.1,.02,1,4,"%D",0)
  1. ;;=^^1^1^2940213^^^^
  1. ;;^DD(354.1,.02,1,4,"%D",1,0)
  1. ;;=Cross-reference of all records by patient, by type, by inverse date.
  1. ;;^DD(354.1,.02,1,4,"DT")
  1. ;;=2921118
  1. ;;^DD(354.1,.02,1,5,0)
  1. ;;=354.1^ACAN1^MUMPS
  1. ;;^DD(354.1,.02,1,5,1)
  1. ;;=I $P(^IBA(354.1,DA,0),"^",14) S ^IBA(354.1,"ACAN",X,-$P(^(0),"^",14),DA)=""
  1. ;;^DD(354.1,.02,1,5,2)
  1. ;;=K ^IBA(354.1,"ACAN",X,-$P(^IBA(354.1,DA,0),"^",14),DA)
  1. ;;^DD(354.1,.02,1,5,3)
  1. ;;=DO NOT DELETE
  1. ;;^DD(354.1,.02,1,5,"%D",0)
  1. ;;=^^6^6^2930430^^^^
  1. ;;^DD(354.1,.02,1,5,"%D",1,0)
  1. ;;=This cross-reference is set whenever bills are retroactively canceled
  1. ;;^DD(354.1,.02,1,5,"%D",2,0)
  1. ;;=due to the medication copayment exemption patch. It is used to
  1. ;;^DD(354.1,.02,1,5,"%D",3,0)
  1. ;;=prevent canceling charges in AR a second time. This is
  1. ;;^DD(354.1,.02,1,5,"%D",4,0)
  1. ;;=necessary because the direct link between IB and AR is not maintained
  1. ;;^DD(354.1,.02,1,5,"%D",5,0)
  1. ;;=for this functionality as it is necessary to remove admin and interest
  1. ;;^DD(354.1,.02,1,5,"%D",6,0)
  1. ;;=charges that may have accumulated.
  1. ;;^DD(354.1,.02,1,5,"DT")
  1. ;;=2930113
  1. ;;^DD(354.1,.02,21,0)
  1. ;;=^^3^3^2921209^^^
  1. ;;^DD(354.1,.02,21,1,0)
  1. ;;=This is the patient that this Billing Exemption Entry is for.
  1. ;;^DD(354.1,.02,21,2,0)
  1. ;;=The Patient must be in the Billing Patient File. The Current Status for
  1. ;;^DD(354.1,.02,21,3,0)
  1. ;;=an exemption will be automatically stored in the Billing Patient file.
  1. ;;^DD(354.1,.02,"DT")
  1. ;;=2930204
  1. ;;^DD(354.1,.03,0)
  1. ;;=TYPE^RSI^1:COPAY INCOME EXEMPTION;^0;3^Q
  1. ;;^DD(354.1,.03,1,0)
  1. ;;=^.1^^-1
  1. ;;^DD(354.1,.03,1,1,0)
  1. ;;=354.1^AIVDT3^MUMPS
  1. ;;^DD(354.1,.03,1,1,1)
  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)=""
  1. ;;^DD(354.1,.03,1,1,2)
  1. ;;=K ^IBA(354.1,"AIVDT",+X,+$P(^IBA(354.1,DA,0),U,2),-($P(^(0),U)),DA)
  1. ;;^DD(354.1,.03,1,1,"%D",0)
  1. ;;=^^2^2^2940213^
  1. ;;^DD(354.1,.03,1,1,"%D",1,0)
  1. ;;=Inverse date cross reference of all exemptions for a patient for a type of
  1. ;;^DD(354.1,.03,1,1,"%D",2,0)
  1. ;;=exemption.
  1. ;;^DD(354.1,.03,1,1,"DT")
  1. ;;=2921110
  1. ;;^DD(354.1,.03,1,2,0)
  1. ;;=354.1^APIDT2^MUMPS
  1. ;;^DD(354.1,.03,1,2,1)
  1. ;;=I $P(^IBA(354.1,DA,0),U,2),+^(0) S ^IBA(354.1,"APIDT",+$P(^(0),U,2),+X,-($P(^(0),U)),DA)=""
  1. ;;^DD(354.1,.03,1,2,2)
  1. ;;=K ^IBA(354.1,"APIDT",+$P(^IBA(354.1,DA,0),U,2),+X,-($P(^(0),U)),DA)
  1. ;;^DD(354.1,.03,1,2,"%D",0)
  1. ;;=^^1^1^2940213^^^^
  1. ;;^DD(354.1,.03,1,2,"%D",1,0)
  1. ;;=Cross-reference of all records by patient, by type, by inverse date.
  1. ;;^DD(354.1,.03,1,2,"DT")
  1. ;;=2921118
  1. ;;^DD(354.1,.03,1,3,0)
  1. ;;=354.1^ACY3^MUMPS
  1. ;;^DD(354.1,.03,1,3,1)
  1. ;;=I $P(^IBA(354.1,DA,0),U,2),+^(0) S ^IBA(354.1,"ACY",+X,+$P(^(0),U,2),+$E($P(^(0),U),1,3),DA)=""
  1. ;;^DD(354.1,.03,1,3,2)
  1. ;;=K ^IBA(354.1,"ACY",+X,+$P(^IBA(354.1,DA,0),U,2),+$E($P(^(0),U),1,3),DA)
  1. ;;^DD(354.1,.03,1,3,"%D",0)
  1. ;;=^^1^1^2940213^
  1. ;;^DD(354.1,.03,1,3,"%D",1,0)
  1. ;;=Cross reference of all active entries for a patient by inverse date.
  1. ;;^DD(354.1,.03,1,3,"DT")
  1. ;;=2921118
  1. ;;^DD(354.1,.03,21,0)
  1. ;;=^^2^2^2930429^^^^
  1. ;;^DD(354.1,.03,21,1,0)
  1. ;;=This is the type of exemption that this entry is for. Each type of