- IBINI03T ; ; 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,.07,21,6,0)
- ;;=exemptions will be considered SYSTEM added.
- ;;^DD(354.1,.07,21,7,0)
- ;;=If the entry was Manually added then this is the user who
- ;;^DD(354.1,.07,21,8,0)
- ;;=entered the Hardship exemption.
- ;;^DD(354.1,.07,"DT")
- ;;=2930204
- ;;^DD(354.1,.08,0)
- ;;=DATE/TIME ADDED^RDI^^0;8^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- ;;^DD(354.1,.08,3)
- ;;=
- ;;^DD(354.1,.08,21,0)
- ;;=^^7^7^2921209^^^
- ;;^DD(354.1,.08,21,1,0)
- ;;=This is the date and time this entry was added.
- ;;^DD(354.1,.08,21,2,0)
- ;;=
- ;;^DD(354.1,.08,21,3,0)
- ;;=The date time added will be different from the effective date in many
- ;;^DD(354.1,.08,21,4,0)
- ;;=cases, where the entry is based on actual income data and where there
- ;;^DD(354.1,.08,21,5,0)
- ;;=are changes to an exemption status. When the exemption is based upon
- ;;^DD(354.1,.08,21,6,0)
- ;;=the fact that the patient is recieving pension, etc. the effective date
- ;;^DD(354.1,.08,21,7,0)
- ;;=and the date added may be the same.
- ;;^DD(354.1,.08,"DT")
- ;;=2930204
- ;;^DD(354.1,.09,0)
- ;;=ALERT^P354.4'^IBA(354.4,^0;9^Q
- ;;^DD(354.1,.09,1,0)
- ;;=^.1
- ;;^DD(354.1,.09,1,1,0)
- ;;=354.1^ALERT
- ;;^DD(354.1,.09,1,1,1)
- ;;=S ^IBA(354.1,"ALERT",$E(X,1,30),DA)=""
- ;;^DD(354.1,.09,1,1,2)
- ;;=K ^IBA(354.1,"ALERT",$E(X,1,30),DA)
- ;;^DD(354.1,.09,1,1,"%D",0)
- ;;=^^1^1^2930204^
- ;;^DD(354.1,.09,1,1,"%D",1,0)
- ;;=This is an index of alerted exemptions.
- ;;^DD(354.1,.09,1,1,"DT")
- ;;=2930204
- ;;^DD(354.1,.09,3)
- ;;=
- ;;^DD(354.1,.09,21,0)
- ;;=^^1^1^2921209^
- ;;^DD(354.1,.09,21,1,0)
- ;;=Future use.
- ;;^DD(354.1,.09,21,2,0)
- ;;=An alert or mail message may be posted in association with the creation
- ;;^DD(354.1,.09,21,3,0)
- ;;=or editing of an exemption record. If Alerts are used, then this field
- ;;^DD(354.1,.09,21,4,0)
- ;;=will store the pointer to the alert entry. Once an alert has been
- ;;^DD(354.1,.09,21,5,0)
- ;;=resolved it will be deleted.
- ;;^DD(354.1,.09,"DT")
- ;;=2930204
- ;;^DD(354.1,.1,0)
- ;;=ACTIVE^R*S^1:ACTIVE;0:INACTIVE;^0;10^Q
- ;;^DD(354.1,.1,.1)
- ;;=CURRENTLY ACTIVE
- ;;^DD(354.1,.1,1,0)
- ;;=^.1^^-1
- ;;^DD(354.1,.1,1,1,0)
- ;;=354.1^AA
- ;;^DD(354.1,.1,1,1,1)
- ;;=S ^IBA(354.1,"AA",$E(X,1,30),DA)=""
- ;;^DD(354.1,.1,1,1,2)
- ;;=K ^IBA(354.1,"AA",$E(X,1,30),DA)
- ;;^DD(354.1,.1,1,1,"%D",0)
- ;;=^^1^1^2921110^
- ;;^DD(354.1,.1,1,1,"%D",1,0)
- ;;=Cross-reference of Active Records.
- ;;^DD(354.1,.1,1,1,"DT")
- ;;=2921110
- ;;^DD(354.1,.1,1,2,0)
- ;;=354.1^AIVDT1^MUMPS
- ;;^DD(354.1,.1,1,2,1)
- ;;=N IBX S IBX=^IBA(354.1,DA,0) I +X,$P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="" S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
- ;;^DD(354.1,.1,1,2,2)
- ;;=N IBX S IBX=^IBA(354.1,DA,0) K ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)
- ;;^DD(354.1,.1,1,2,"%D",0)
- ;;=^^4^4^2930430^^^^
- ;;^DD(354.1,.1,1,2,"%D",1,0)
- ;;=If this is the active record, patient has been entered, type has been
- ;;^DD(354.1,.1,1,2,"%D",2,0)
- ;;=entered, status has been entered; set up an inverse cross reference.
- ;;^DD(354.1,.1,1,2,"%D",3,0)
- ;;=
- ;;^DD(354.1,.1,1,2,"%D",4,0)
- ;;=^iba(354.1,"aivdt",type,patient,inverse effective date,da)=""
- ;;^DD(354.1,.1,1,2,"DT")
- ;;=2921110
- ;;^DD(354.1,.1,1,3,0)
- ;;=354.1^ACY2^MUMPS
- ;;^DD(354.1,.1,1,3,1)
- ;;=I X,+$P(^IBA(354.1,DA,0),U,2),+$P(^(0),U,3),+^(0) S ^IBA(354.1,"ACY",+$P(^(0),U,3),+$P(^(0),U,2),+$E($P(^(0),U),1,3),DA)=""
- ;;^DD(354.1,.1,1,3,2)
- ;;=K ^IBA(354.1,"ACY",+$P(^IBA(354.1,DA,0),U,3),+$P(^(0),U,2),+$E($P(^(0),U),1,3),DA)
- ;;^DD(354.1,.1,1,3,"%D",0)
- ;;=^^2^2^2940213^^^^
- ;;^DD(354.1,.1,1,3,"%D",1,0)
- ;;=Cross-reference of all ACTIVE entries for a patient by calendar
- IBINI03T ; ; 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,.07,21,6,0)
- +2 ;;=exemptions will be considered SYSTEM added.
- +3 ;;^DD(354.1,.07,21,7,0)
- +4 ;;=If the entry was Manually added then this is the user who
- +5 ;;^DD(354.1,.07,21,8,0)
- +6 ;;=entered the Hardship exemption.
- +7 ;;^DD(354.1,.07,"DT")
- +8 ;;=2930204
- +9 ;;^DD(354.1,.08,0)
- +10 ;;=DATE/TIME ADDED^RDI^^0;8^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- +11 ;;^DD(354.1,.08,3)
- +12 ;;=
- +13 ;;^DD(354.1,.08,21,0)
- +14 ;;=^^7^7^2921209^^^
- +15 ;;^DD(354.1,.08,21,1,0)
- +16 ;;=This is the date and time this entry was added.
- +17 ;;^DD(354.1,.08,21,2,0)
- +18 ;;=
- +19 ;;^DD(354.1,.08,21,3,0)
- +20 ;;=The date time added will be different from the effective date in many
- +21 ;;^DD(354.1,.08,21,4,0)
- +22 ;;=cases, where the entry is based on actual income data and where there
- +23 ;;^DD(354.1,.08,21,5,0)
- +24 ;;=are changes to an exemption status. When the exemption is based upon
- +25 ;;^DD(354.1,.08,21,6,0)
- +26 ;;=the fact that the patient is recieving pension, etc. the effective date
- +27 ;;^DD(354.1,.08,21,7,0)
- +28 ;;=and the date added may be the same.
- +29 ;;^DD(354.1,.08,"DT")
- +30 ;;=2930204
- +31 ;;^DD(354.1,.09,0)
- +32 ;;=ALERT^P354.4'^IBA(354.4,^0;9^Q
- +33 ;;^DD(354.1,.09,1,0)
- +34 ;;=^.1
- +35 ;;^DD(354.1,.09,1,1,0)
- +36 ;;=354.1^ALERT
- +37 ;;^DD(354.1,.09,1,1,1)
- +38 ;;=S ^IBA(354.1,"ALERT",$E(X,1,30),DA)=""
- +39 ;;^DD(354.1,.09,1,1,2)
- +40 ;;=K ^IBA(354.1,"ALERT",$E(X,1,30),DA)
- +41 ;;^DD(354.1,.09,1,1,"%D",0)
- +42 ;;=^^1^1^2930204^
- +43 ;;^DD(354.1,.09,1,1,"%D",1,0)
- +44 ;;=This is an index of alerted exemptions.
- +45 ;;^DD(354.1,.09,1,1,"DT")
- +46 ;;=2930204
- +47 ;;^DD(354.1,.09,3)
- +48 ;;=
- +49 ;;^DD(354.1,.09,21,0)
- +50 ;;=^^1^1^2921209^
- +51 ;;^DD(354.1,.09,21,1,0)
- +52 ;;=Future use.
- +53 ;;^DD(354.1,.09,21,2,0)
- +54 ;;=An alert or mail message may be posted in association with the creation
- +55 ;;^DD(354.1,.09,21,3,0)
- +56 ;;=or editing of an exemption record. If Alerts are used, then this field
- +57 ;;^DD(354.1,.09,21,4,0)
- +58 ;;=will store the pointer to the alert entry. Once an alert has been
- +59 ;;^DD(354.1,.09,21,5,0)
- +60 ;;=resolved it will be deleted.
- +61 ;;^DD(354.1,.09,"DT")
- +62 ;;=2930204
- +63 ;;^DD(354.1,.1,0)
- +64 ;;=ACTIVE^R*S^1:ACTIVE;0:INACTIVE;^0;10^Q
- +65 ;;^DD(354.1,.1,.1)
- +66 ;;=CURRENTLY ACTIVE
- +67 ;;^DD(354.1,.1,1,0)
- +68 ;;=^.1^^-1
- +69 ;;^DD(354.1,.1,1,1,0)
- +70 ;;=354.1^AA
- +71 ;;^DD(354.1,.1,1,1,1)
- +72 ;;=S ^IBA(354.1,"AA",$E(X,1,30),DA)=""
- +73 ;;^DD(354.1,.1,1,1,2)
- +74 ;;=K ^IBA(354.1,"AA",$E(X,1,30),DA)
- +75 ;;^DD(354.1,.1,1,1,"%D",0)
- +76 ;;=^^1^1^2921110^
- +77 ;;^DD(354.1,.1,1,1,"%D",1,0)
- +78 ;;=Cross-reference of Active Records.
- +79 ;;^DD(354.1,.1,1,1,"DT")
- +80 ;;=2921110
- +81 ;;^DD(354.1,.1,1,2,0)
- +82 ;;=354.1^AIVDT1^MUMPS
- +83 ;;^DD(354.1,.1,1,2,1)
- +84 ;;=N IBX S IBX=^IBA(354.1,DA,0) I +X,$P(IBX,U,2),$P(IBX,U,3),$P(IBX,U,4)'="" S ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)=""
- +85 ;;^DD(354.1,.1,1,2,2)
- +86 ;;=N IBX S IBX=^IBA(354.1,DA,0) K ^IBA(354.1,"AIVDT",+$P(IBX,U,3),+$P(IBX,U,2),-($P(IBX,U)),DA)
- +87 ;;^DD(354.1,.1,1,2,"%D",0)
- +88 ;;=^^4^4^2930430^^^^
- +89 ;;^DD(354.1,.1,1,2,"%D",1,0)
- +90 ;;=If this is the active record, patient has been entered, type has been
- +91 ;;^DD(354.1,.1,1,2,"%D",2,0)
- +92 ;;=entered, status has been entered; set up an inverse cross reference.
- +93 ;;^DD(354.1,.1,1,2,"%D",3,0)
- +94 ;;=
- +95 ;;^DD(354.1,.1,1,2,"%D",4,0)
- +96 ;;=^iba(354.1,"aivdt",type,patient,inverse effective date,da)=""
- +97 ;;^DD(354.1,.1,1,2,"DT")
- +98 ;;=2921110
- +99 ;;^DD(354.1,.1,1,3,0)
- +100 ;;=354.1^ACY2^MUMPS
- +101 ;;^DD(354.1,.1,1,3,1)
- +102 ;;=I X,+$P(^IBA(354.1,DA,0),U,2),+$P(^(0),U,3),+^(0) S ^IBA(354.1,"ACY",+$P(^(0),U,3),+$P(^(0),U,2),+$E($P(^(0),U),1,3),DA)=""
- +103 ;;^DD(354.1,.1,1,3,2)
- +104 ;;=K ^IBA(354.1,"ACY",+$P(^IBA(354.1,DA,0),U,3),+$P(^(0),U,2),+$E($P(^(0),U),1,3),DA)
- +105 ;;^DD(354.1,.1,1,3,"%D",0)
- +106 ;;=^^2^2^2940213^^^^
- +107 ;;^DD(354.1,.1,1,3,"%D",1,0)
- +108 ;;=Cross-reference of all ACTIVE entries for a patient by calendar