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

IBINI05E.m

Go to the documentation of this file.
  1. IBINI05E ; ; 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,.06,1,1,2)
  1. ;;=K ^IBT(356,"D",$E(X,1,30),DA)
  1. ;;^DD(356,.06,1,1,"DT")
  1. ;;=2930820
  1. ;;^DD(356,.06,1,2,0)
  1. ;;=356^APTDT^MUMPS
  1. ;;^DD(356,.06,1,2,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,2) ^IBT(356,"APTDT",+$P(^(0),U,2),-X,DA)=""
  1. ;;^DD(356,.06,1,2,2)
  1. ;;=K ^IBT(356,"APTDT",+$P(^IBT(356,DA,0),U,2),-X,DA)
  1. ;;^DD(356,.06,1,2,"%D",0)
  1. ;;=^^2^2^2931008^^^^
  1. ;;^DD(356,.06,1,2,"%D",1,0)
  1. ;;=Cross reference of all episodes of care by patient by date, in inverse
  1. ;;^DD(356,.06,1,2,"%D",2,0)
  1. ;;=date order so can list most recent first.
  1. ;;^DD(356,.06,1,2,"DT")
  1. ;;=2931008
  1. ;;^DD(356,.06,1,4,0)
  1. ;;=356^APTY1^MUMPS
  1. ;;^DD(356,.06,1,4,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,2)&($P(^(0),U,18)) ^IBT(356,"APTY",+$P(^(0),U,2),+$P(^(0),U,18),X,DA)=""
  1. ;;^DD(356,.06,1,4,2)
  1. ;;=K ^IBT(356,"APTY",+$P(^IBT(356,DA,0),U,2),+$P(^(0),U,18),X,DA)
  1. ;;^DD(356,.06,1,4,"%D",0)
  1. ;;=^^1^1^2930809^^
  1. ;;^DD(356,.06,1,4,"%D",1,0)
  1. ;;=Cross-reference of all entries by patient by event type, by episode date.
  1. ;;^DD(356,.06,1,4,"DT")
  1. ;;=2930809
  1. ;;^DD(356,.06,21,0)
  1. ;;=^^7^7^2930712^^
  1. ;;^DD(356,.06,21,1,0)
  1. ;;=This is the date of the episode of care or services that is being tracked.
  1. ;;^DD(356,.06,21,2,0)
  1. ;;=For admissions, it is the admission date. For outpatient visits it is
  1. ;;^DD(356,.06,21,3,0)
  1. ;;=the visit date. For prescription refills it is the refill date. For
  1. ;;^DD(356,.06,21,4,0)
  1. ;;=prosthetic items it is the date that the prosthetic item was issued.
  1. ;;^DD(356,.06,21,5,0)
  1. ;;=
  1. ;;^DD(356,.06,21,6,0)
  1. ;;=The data in this field is entered by the Claims tracking event tracker
  1. ;;^DD(356,.06,21,7,0)
  1. ;;=routines.
  1. ;;^DD(356,.06,"DT")
  1. ;;=2931008
  1. ;;^DD(356,.07,0)
  1. ;;=ADMISSION TYPE^S^1:SCHEDULED;2:URGENT;3:EMERGENT;4:UNSCHEDULED;5:COURT ORDERED;^0;7^Q
  1. ;;^DD(356,.07,5,1,0)
  1. ;;=356^.18^5
  1. ;;^DD(356,.07,21,0)
  1. ;;=^^5^5^2940213^^^^
  1. ;;^DD(356,.07,21,1,0)
  1. ;;=Enter whether this admission was a scheduled admission, a direct
  1. ;;^DD(356,.07,21,2,0)
  1. ;;=admission from the outpatient area, or whether this was an
  1. ;;^DD(356,.07,21,3,0)
  1. ;;=urgent or emergent admission. The type of admission will impact
  1. ;;^DD(356,.07,21,4,0)
  1. ;;=whether pre-certification reviews should be done and the impact
  1. ;;^DD(356,.07,21,5,0)
  1. ;;=on reimbursements.
  1. ;;^DD(356,.07,"DT")
  1. ;;=2930820
  1. ;;^DD(356,.08,0)
  1. ;;=PRESCRIPTION^P52'^PSRX(^0;8^Q
  1. ;;^DD(356,.08,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.08,1,1,0)
  1. ;;=356^ARXFL1^MUMPS
  1. ;;^DD(356,.08,1,1,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,10) ^IBT(356,"ARXFL",X,+$P(^(0),U,10),DA)=""
  1. ;;^DD(356,.08,1,1,2)
  1. ;;=K ^IBT(356,"ARXFL",X,+$P(^IBT(356,DA,0),U,10),DA)
  1. ;;^DD(356,.08,1,1,"%D",0)
  1. ;;=^^2^2^2940213^^^
  1. ;;^DD(356,.08,1,1,"%D",1,0)
  1. ;;=This is a cross reference of all prescriptions and refills. It is used
  1. ;;^DD(356,.08,1,1,"%D",2,0)
  1. ;;=to ensure that only 1 entry for each refill is created.
  1. ;;^DD(356,.08,1,1,"DT")
  1. ;;=2930813
  1. ;;^DD(356,.08,21,0)
  1. ;;=^^2^2^2940213^^
  1. ;;^DD(356,.08,21,1,0)
  1. ;;=If the entry that is being tracked is a prescription refill then this
  1. ;;^DD(356,.08,21,2,0)
  1. ;;=field should point to the entry in the prescription file.
  1. ;;^DD(356,.08,"DT")
  1. ;;=2930813
  1. ;;^DD(356,.09,0)
  1. ;;=PROSTHETIC ITEM^P660'^RMPR(660,^0;9^Q
  1. ;;^DD(356,.09,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.09,1,1,0)
  1. ;;=356^APRO
  1. ;;^DD(356,.09,1,1,1)
  1. ;;=S ^IBT(356,"APRO",$E(X,1,30),DA)=""
  1. ;;^DD(356,.09,1,1,2)
  1. ;;=K ^IBT(356,"APRO",$E(X,1,30),DA)
  1. ;;^DD(356,.09,1,1,"DT")
  1. ;;=2940131
  1. ;;^DD(356,.09,3)
  1. ;;=
  1. ;;^DD(356,.09,21,0)
  1. ;;=^^2^2^2931221^^
  1. ;;^DD(356,.09,21,1,0)
  1. ;;=If this tracking entry is for a prothetic item, this is the pointer
  1. ;;^DD(356,.09,21,2,0)
  1. ;;=to the prosthetic item file.