- IBINI05C ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(356) 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(356,.02,1,1,0)
- ;;=356^C
- ;;^DD(356,.02,1,1,1)
- ;;=S ^IBT(356,"C",$E(X,1,30),DA)=""
- ;;^DD(356,.02,1,1,2)
- ;;=K ^IBT(356,"C",$E(X,1,30),DA)
- ;;^DD(356,.02,1,1,"DT")
- ;;=2930621
- ;;^DD(356,.02,1,2,0)
- ;;=356^ADM1^MUMPS
- ;;^DD(356,.02,1,2,1)
- ;;=S:$P(^IBT(356,DA,0),"^",5) ^IBT(356,"ADM",X,+$P(^(0),"^",5),DA)=""
- ;;^DD(356,.02,1,2,2)
- ;;=K ^IBT(356,"ADM",X,+$P(^IBT(356,DA,0),"^",5),DA)
- ;;^DD(356,.02,1,2,"%D",0)
- ;;=^^1^1^2930702^^
- ;;^DD(356,.02,1,2,"%D",1,0)
- ;;=Cross-reference of all admissions by patient.
- ;;^DD(356,.02,1,2,"DT")
- ;;=2930702
- ;;^DD(356,.02,1,3,0)
- ;;=356^APTDT1^MUMPS
- ;;^DD(356,.02,1,3,1)
- ;;=S:$P(^IBT(356,DA,0),U,6) ^IBT(356,"APTDT",X,-($P(^(0),U,6)),DA)=""
- ;;^DD(356,.02,1,3,2)
- ;;=K ^IBT(356,"APTDT",X,-($P(^IBT(356,DA,0),U,6)),DA)
- ;;^DD(356,.02,1,3,"%D",0)
- ;;=^^2^2^2930806^^
- ;;^DD(356,.02,1,3,"%D",1,0)
- ;;=Cross reference of all episodes of care by patient by date, in inverse
- ;;^DD(356,.02,1,3,"%D",2,0)
- ;;=date order so can list most recent first.
- ;;^DD(356,.02,1,3,"DT")
- ;;=2930806
- ;;^DD(356,.02,1,4,0)
- ;;=356^ASPC1^MUMPS
- ;;^DD(356,.02,1,4,1)
- ;;=S:$P(^IBT(356,DA,0),U,12) ^IBT(356,X,+$P(^(0),U,12),DA)=""
- ;;^DD(356,.02,1,4,2)
- ;;=K ^IBT(356,X,+$P(^IBT(356,DA,0),U,12),DA)
- ;;^DD(356,.02,1,4,"%D",0)
- ;;=^^1^1^2930712^
- ;;^DD(356,.02,1,4,"%D",1,0)
- ;;=Cross-reference of special types of bills by patient.
- ;;^DD(356,.02,1,4,"DT")
- ;;=2930712
- ;;^DD(356,.02,1,5,0)
- ;;=356^ADFN^MUMPS
- ;;^DD(356,.02,1,5,1)
- ;;=S ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)=""
- ;;^DD(356,.02,1,5,2)
- ;;=K ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)
- ;;^DD(356,.02,1,5,"%D",0)
- ;;=^^1^1^2931109^^
- ;;^DD(356,.02,1,5,"%D",1,0)
- ;;=Cross-reference by patient dfn for fast look-up.
- ;;^DD(356,.02,1,5,"DT")
- ;;=2930729
- ;;^DD(356,.02,1,6,0)
- ;;=356^ATOBIL^MUMPS
- ;;^DD(356,.02,1,6,1)
- ;;=S:$P(^IBT(356,DA,0),U,17)&($P(^(0),U,18)) ^IBT(356,"ATOBIL",+X,+$P(^(0),U,18),+$P(^(0),U,17),DA)=""
- ;;^DD(356,.02,1,6,2)
- ;;=K ^IBT(356,"ATOBIL",+X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
- ;;^DD(356,.02,1,6,"%D",0)
- ;;=^^3^3^2930824^^^^
- ;;^DD(356,.02,1,6,"%D",1,0)
- ;;=This is a cross-reference of all active billable events that have not
- ;;^DD(356,.02,1,6,"%D",2,0)
- ;;=already been billed. It is used by the autobilling software to determine
- ;;^DD(356,.02,1,6,"%D",3,0)
- ;;=the next autobill date for a patient by type of event.
- ;;^DD(356,.02,1,6,"DT")
- ;;=2930824
- ;;^DD(356,.02,1,7,0)
- ;;=356^APTY^MUMPS
- ;;^DD(356,.02,1,7,1)
- ;;=S:$P(^IBT(356,DA,0),U,6)&($P(^(0),U,18)) ^IBT(356,"APTY",X,+$P(^(0),U,18),+$P(^(0),U,6),DA)=""
- ;;^DD(356,.02,1,7,2)
- ;;=K ^IBT(356,"APTY",X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,6),DA)
- ;;^DD(356,.02,1,7,"%D",0)
- ;;=^^1^1^2930809^^
- ;;^DD(356,.02,1,7,"%D",1,0)
- ;;=Cross-reference of all entries by patient by event type, by episode date.
- ;;^DD(356,.02,1,7,"DT")
- ;;=2930809
- ;;^DD(356,.02,1,8,0)
- ;;=356^AENC1^MUMPS
- ;;^DD(356,.02,1,8,1)
- ;;=S:$P(^IBT(356,DA,0),U,4) ^IBT(356,"AENC",X,+$P(^(0),U,4),DA)=""
- ;;^DD(356,.02,1,8,2)
- ;;=K ^IBT(356,"AENC",X,+$P(^IBT(356,DA,0),U,4),DA)
- ;;^DD(356,.02,1,8,"%D",0)
- ;;=^^1^1^2930831^
- ;;^DD(356,.02,1,8,"%D",1,0)
- ;;=Cross reference of all outpatient encounters by patient
- ;;^DD(356,.02,1,8,"DT")
- ;;=2930831
- ;;^DD(356,.02,21,0)
- ;;=^^5^5^2930709^
- ;;^DD(356,.02,21,1,0)
- ;;=Enter the patient that this Claims Tracking entry is for. This is
- ;;^DD(356,.02,21,2,0)
- ;;=the patient whose admission, outpatient visit, prescription refill,
- ;;^DD(356,.02,21,3,0)
- ;;=prosthetic device or other encounter for medical care or services
- ;;^DD(356,.02,21,4,0)
- ;;=is being tracked.
- IBINI05C ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(356)
- 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(356,.02,1,1,0)
- +2 ;;=356^C
- +3 ;;^DD(356,.02,1,1,1)
- +4 ;;=S ^IBT(356,"C",$E(X,1,30),DA)=""
- +5 ;;^DD(356,.02,1,1,2)
- +6 ;;=K ^IBT(356,"C",$E(X,1,30),DA)
- +7 ;;^DD(356,.02,1,1,"DT")
- +8 ;;=2930621
- +9 ;;^DD(356,.02,1,2,0)
- +10 ;;=356^ADM1^MUMPS
- +11 ;;^DD(356,.02,1,2,1)
- +12 ;;=S:$P(^IBT(356,DA,0),"^",5) ^IBT(356,"ADM",X,+$P(^(0),"^",5),DA)=""
- +13 ;;^DD(356,.02,1,2,2)
- +14 ;;=K ^IBT(356,"ADM",X,+$P(^IBT(356,DA,0),"^",5),DA)
- +15 ;;^DD(356,.02,1,2,"%D",0)
- +16 ;;=^^1^1^2930702^^
- +17 ;;^DD(356,.02,1,2,"%D",1,0)
- +18 ;;=Cross-reference of all admissions by patient.
- +19 ;;^DD(356,.02,1,2,"DT")
- +20 ;;=2930702
- +21 ;;^DD(356,.02,1,3,0)
- +22 ;;=356^APTDT1^MUMPS
- +23 ;;^DD(356,.02,1,3,1)
- +24 ;;=S:$P(^IBT(356,DA,0),U,6) ^IBT(356,"APTDT",X,-($P(^(0),U,6)),DA)=""
- +25 ;;^DD(356,.02,1,3,2)
- +26 ;;=K ^IBT(356,"APTDT",X,-($P(^IBT(356,DA,0),U,6)),DA)
- +27 ;;^DD(356,.02,1,3,"%D",0)
- +28 ;;=^^2^2^2930806^^
- +29 ;;^DD(356,.02,1,3,"%D",1,0)
- +30 ;;=Cross reference of all episodes of care by patient by date, in inverse
- +31 ;;^DD(356,.02,1,3,"%D",2,0)
- +32 ;;=date order so can list most recent first.
- +33 ;;^DD(356,.02,1,3,"DT")
- +34 ;;=2930806
- +35 ;;^DD(356,.02,1,4,0)
- +36 ;;=356^ASPC1^MUMPS
- +37 ;;^DD(356,.02,1,4,1)
- +38 ;;=S:$P(^IBT(356,DA,0),U,12) ^IBT(356,X,+$P(^(0),U,12),DA)=""
- +39 ;;^DD(356,.02,1,4,2)
- +40 ;;=K ^IBT(356,X,+$P(^IBT(356,DA,0),U,12),DA)
- +41 ;;^DD(356,.02,1,4,"%D",0)
- +42 ;;=^^1^1^2930712^
- +43 ;;^DD(356,.02,1,4,"%D",1,0)
- +44 ;;=Cross-reference of special types of bills by patient.
- +45 ;;^DD(356,.02,1,4,"DT")
- +46 ;;=2930712
- +47 ;;^DD(356,.02,1,5,0)
- +48 ;;=356^ADFN^MUMPS
- +49 ;;^DD(356,.02,1,5,1)
- +50 ;;=S ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)=""
- +51 ;;^DD(356,.02,1,5,2)
- +52 ;;=K ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)
- +53 ;;^DD(356,.02,1,5,"%D",0)
- +54 ;;=^^1^1^2931109^^
- +55 ;;^DD(356,.02,1,5,"%D",1,0)
- +56 ;;=Cross-reference by patient dfn for fast look-up.
- +57 ;;^DD(356,.02,1,5,"DT")
- +58 ;;=2930729
- +59 ;;^DD(356,.02,1,6,0)
- +60 ;;=356^ATOBIL^MUMPS
- +61 ;;^DD(356,.02,1,6,1)
- +62 ;;=S:$P(^IBT(356,DA,0),U,17)&($P(^(0),U,18)) ^IBT(356,"ATOBIL",+X,+$P(^(0),U,18),+$P(^(0),U,17),DA)=""
- +63 ;;^DD(356,.02,1,6,2)
- +64 ;;=K ^IBT(356,"ATOBIL",+X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
- +65 ;;^DD(356,.02,1,6,"%D",0)
- +66 ;;=^^3^3^2930824^^^^
- +67 ;;^DD(356,.02,1,6,"%D",1,0)
- +68 ;;=This is a cross-reference of all active billable events that have not
- +69 ;;^DD(356,.02,1,6,"%D",2,0)
- +70 ;;=already been billed. It is used by the autobilling software to determine
- +71 ;;^DD(356,.02,1,6,"%D",3,0)
- +72 ;;=the next autobill date for a patient by type of event.
- +73 ;;^DD(356,.02,1,6,"DT")
- +74 ;;=2930824
- +75 ;;^DD(356,.02,1,7,0)
- +76 ;;=356^APTY^MUMPS
- +77 ;;^DD(356,.02,1,7,1)
- +78 ;;=S:$P(^IBT(356,DA,0),U,6)&($P(^(0),U,18)) ^IBT(356,"APTY",X,+$P(^(0),U,18),+$P(^(0),U,6),DA)=""
- +79 ;;^DD(356,.02,1,7,2)
- +80 ;;=K ^IBT(356,"APTY",X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,6),DA)
- +81 ;;^DD(356,.02,1,7,"%D",0)
- +82 ;;=^^1^1^2930809^^
- +83 ;;^DD(356,.02,1,7,"%D",1,0)
- +84 ;;=Cross-reference of all entries by patient by event type, by episode date.
- +85 ;;^DD(356,.02,1,7,"DT")
- +86 ;;=2930809
- +87 ;;^DD(356,.02,1,8,0)
- +88 ;;=356^AENC1^MUMPS
- +89 ;;^DD(356,.02,1,8,1)
- +90 ;;=S:$P(^IBT(356,DA,0),U,4) ^IBT(356,"AENC",X,+$P(^(0),U,4),DA)=""
- +91 ;;^DD(356,.02,1,8,2)
- +92 ;;=K ^IBT(356,"AENC",X,+$P(^IBT(356,DA,0),U,4),DA)
- +93 ;;^DD(356,.02,1,8,"%D",0)
- +94 ;;=^^1^1^2930831^
- +95 ;;^DD(356,.02,1,8,"%D",1,0)
- +96 ;;=Cross reference of all outpatient encounters by patient
- +97 ;;^DD(356,.02,1,8,"DT")
- +98 ;;=2930831
- +99 ;;^DD(356,.02,21,0)
- +100 ;;=^^5^5^2930709^
- +101 ;;^DD(356,.02,21,1,0)
- +102 ;;=Enter the patient that this Claims Tracking entry is for. This is
- +103 ;;^DD(356,.02,21,2,0)
- +104 ;;=the patient whose admission, outpatient visit, prescription refill,
- +105 ;;^DD(356,.02,21,3,0)
- +106 ;;=prosthetic device or other encounter for medical care or services
- +107 ;;^DD(356,.02,21,4,0)
- +108 ;;=is being tracked.