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

IBINI05C.m

Go to the documentation of this file.
  1. IBINI05C ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. 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
  1. Q Q
  1. ;;^DD(356,.02,1,1,0)
  1. ;;=356^C
  1. ;;^DD(356,.02,1,1,1)
  1. ;;=S ^IBT(356,"C",$E(X,1,30),DA)=""
  1. ;;^DD(356,.02,1,1,2)
  1. ;;=K ^IBT(356,"C",$E(X,1,30),DA)
  1. ;;^DD(356,.02,1,1,"DT")
  1. ;;=2930621
  1. ;;^DD(356,.02,1,2,0)
  1. ;;=356^ADM1^MUMPS
  1. ;;^DD(356,.02,1,2,1)
  1. ;;=S:$P(^IBT(356,DA,0),"^",5) ^IBT(356,"ADM",X,+$P(^(0),"^",5),DA)=""
  1. ;;^DD(356,.02,1,2,2)
  1. ;;=K ^IBT(356,"ADM",X,+$P(^IBT(356,DA,0),"^",5),DA)
  1. ;;^DD(356,.02,1,2,"%D",0)
  1. ;;=^^1^1^2930702^^
  1. ;;^DD(356,.02,1,2,"%D",1,0)
  1. ;;=Cross-reference of all admissions by patient.
  1. ;;^DD(356,.02,1,2,"DT")
  1. ;;=2930702
  1. ;;^DD(356,.02,1,3,0)
  1. ;;=356^APTDT1^MUMPS
  1. ;;^DD(356,.02,1,3,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,6) ^IBT(356,"APTDT",X,-($P(^(0),U,6)),DA)=""
  1. ;;^DD(356,.02,1,3,2)
  1. ;;=K ^IBT(356,"APTDT",X,-($P(^IBT(356,DA,0),U,6)),DA)
  1. ;;^DD(356,.02,1,3,"%D",0)
  1. ;;=^^2^2^2930806^^
  1. ;;^DD(356,.02,1,3,"%D",1,0)
  1. ;;=Cross reference of all episodes of care by patient by date, in inverse
  1. ;;^DD(356,.02,1,3,"%D",2,0)
  1. ;;=date order so can list most recent first.
  1. ;;^DD(356,.02,1,3,"DT")
  1. ;;=2930806
  1. ;;^DD(356,.02,1,4,0)
  1. ;;=356^ASPC1^MUMPS
  1. ;;^DD(356,.02,1,4,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,12) ^IBT(356,X,+$P(^(0),U,12),DA)=""
  1. ;;^DD(356,.02,1,4,2)
  1. ;;=K ^IBT(356,X,+$P(^IBT(356,DA,0),U,12),DA)
  1. ;;^DD(356,.02,1,4,"%D",0)
  1. ;;=^^1^1^2930712^
  1. ;;^DD(356,.02,1,4,"%D",1,0)
  1. ;;=Cross-reference of special types of bills by patient.
  1. ;;^DD(356,.02,1,4,"DT")
  1. ;;=2930712
  1. ;;^DD(356,.02,1,5,0)
  1. ;;=356^ADFN^MUMPS
  1. ;;^DD(356,.02,1,5,1)
  1. ;;=S ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)=""
  1. ;;^DD(356,.02,1,5,2)
  1. ;;=K ^IBT(356,"ADFN"_X,+^IBT(356,DA,0),DA)
  1. ;;^DD(356,.02,1,5,"%D",0)
  1. ;;=^^1^1^2931109^^
  1. ;;^DD(356,.02,1,5,"%D",1,0)
  1. ;;=Cross-reference by patient dfn for fast look-up.
  1. ;;^DD(356,.02,1,5,"DT")
  1. ;;=2930729
  1. ;;^DD(356,.02,1,6,0)
  1. ;;=356^ATOBIL^MUMPS
  1. ;;^DD(356,.02,1,6,1)
  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)=""
  1. ;;^DD(356,.02,1,6,2)
  1. ;;=K ^IBT(356,"ATOBIL",+X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,17),DA)
  1. ;;^DD(356,.02,1,6,"%D",0)
  1. ;;=^^3^3^2930824^^^^
  1. ;;^DD(356,.02,1,6,"%D",1,0)
  1. ;;=This is a cross-reference of all active billable events that have not
  1. ;;^DD(356,.02,1,6,"%D",2,0)
  1. ;;=already been billed. It is used by the autobilling software to determine
  1. ;;^DD(356,.02,1,6,"%D",3,0)
  1. ;;=the next autobill date for a patient by type of event.
  1. ;;^DD(356,.02,1,6,"DT")
  1. ;;=2930824
  1. ;;^DD(356,.02,1,7,0)
  1. ;;=356^APTY^MUMPS
  1. ;;^DD(356,.02,1,7,1)
  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)=""
  1. ;;^DD(356,.02,1,7,2)
  1. ;;=K ^IBT(356,"APTY",X,+$P(^IBT(356,DA,0),U,18),+$P(^(0),U,6),DA)
  1. ;;^DD(356,.02,1,7,"%D",0)
  1. ;;=^^1^1^2930809^^
  1. ;;^DD(356,.02,1,7,"%D",1,0)
  1. ;;=Cross-reference of all entries by patient by event type, by episode date.
  1. ;;^DD(356,.02,1,7,"DT")
  1. ;;=2930809
  1. ;;^DD(356,.02,1,8,0)
  1. ;;=356^AENC1^MUMPS
  1. ;;^DD(356,.02,1,8,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,4) ^IBT(356,"AENC",X,+$P(^(0),U,4),DA)=""
  1. ;;^DD(356,.02,1,8,2)
  1. ;;=K ^IBT(356,"AENC",X,+$P(^IBT(356,DA,0),U,4),DA)
  1. ;;^DD(356,.02,1,8,"%D",0)
  1. ;;=^^1^1^2930831^
  1. ;;^DD(356,.02,1,8,"%D",1,0)
  1. ;;=Cross reference of all outpatient encounters by patient
  1. ;;^DD(356,.02,1,8,"DT")
  1. ;;=2930831
  1. ;;^DD(356,.02,21,0)
  1. ;;=^^5^5^2930709^
  1. ;;^DD(356,.02,21,1,0)
  1. ;;=Enter the patient that this Claims Tracking entry is for. This is
  1. ;;^DD(356,.02,21,2,0)
  1. ;;=the patient whose admission, outpatient visit, prescription refill,
  1. ;;^DD(356,.02,21,3,0)
  1. ;;=prosthetic device or other encounter for medical care or services
  1. ;;^DD(356,.02,21,4,0)
  1. ;;=is being tracked.