IBINI05E ; ; 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,.06,1,1,2)
;;=K ^IBT(356,"D",$E(X,1,30),DA)
;;^DD(356,.06,1,1,"DT")
;;=2930820
;;^DD(356,.06,1,2,0)
;;=356^APTDT^MUMPS
;;^DD(356,.06,1,2,1)
;;=S:$P(^IBT(356,DA,0),U,2) ^IBT(356,"APTDT",+$P(^(0),U,2),-X,DA)=""
;;^DD(356,.06,1,2,2)
;;=K ^IBT(356,"APTDT",+$P(^IBT(356,DA,0),U,2),-X,DA)
;;^DD(356,.06,1,2,"%D",0)
;;=^^2^2^2931008^^^^
;;^DD(356,.06,1,2,"%D",1,0)
;;=Cross reference of all episodes of care by patient by date, in inverse
;;^DD(356,.06,1,2,"%D",2,0)
;;=date order so can list most recent first.
;;^DD(356,.06,1,2,"DT")
;;=2931008
;;^DD(356,.06,1,4,0)
;;=356^APTY1^MUMPS
;;^DD(356,.06,1,4,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)=""
;;^DD(356,.06,1,4,2)
;;=K ^IBT(356,"APTY",+$P(^IBT(356,DA,0),U,2),+$P(^(0),U,18),X,DA)
;;^DD(356,.06,1,4,"%D",0)
;;=^^1^1^2930809^^
;;^DD(356,.06,1,4,"%D",1,0)
;;=Cross-reference of all entries by patient by event type, by episode date.
;;^DD(356,.06,1,4,"DT")
;;=2930809
;;^DD(356,.06,21,0)
;;=^^7^7^2930712^^
;;^DD(356,.06,21,1,0)
;;=This is the date of the episode of care or services that is being tracked.
;;^DD(356,.06,21,2,0)
;;=For admissions, it is the admission date. For outpatient visits it is
;;^DD(356,.06,21,3,0)
;;=the visit date. For prescription refills it is the refill date. For
;;^DD(356,.06,21,4,0)
;;=prosthetic items it is the date that the prosthetic item was issued.
;;^DD(356,.06,21,5,0)
;;=
;;^DD(356,.06,21,6,0)
;;=The data in this field is entered by the Claims tracking event tracker
;;^DD(356,.06,21,7,0)
;;=routines.
;;^DD(356,.06,"DT")
;;=2931008
;;^DD(356,.07,0)
;;=ADMISSION TYPE^S^1:SCHEDULED;2:URGENT;3:EMERGENT;4:UNSCHEDULED;5:COURT ORDERED;^0;7^Q
;;^DD(356,.07,5,1,0)
;;=356^.18^5
;;^DD(356,.07,21,0)
;;=^^5^5^2940213^^^^
;;^DD(356,.07,21,1,0)
;;=Enter whether this admission was a scheduled admission, a direct
;;^DD(356,.07,21,2,0)
;;=admission from the outpatient area, or whether this was an
;;^DD(356,.07,21,3,0)
;;=urgent or emergent admission. The type of admission will impact
;;^DD(356,.07,21,4,0)
;;=whether pre-certification reviews should be done and the impact
;;^DD(356,.07,21,5,0)
;;=on reimbursements.
;;^DD(356,.07,"DT")
;;=2930820
;;^DD(356,.08,0)
;;=PRESCRIPTION^P52'^PSRX(^0;8^Q
;;^DD(356,.08,1,0)
;;=^.1
;;^DD(356,.08,1,1,0)
;;=356^ARXFL1^MUMPS
;;^DD(356,.08,1,1,1)
;;=S:$P(^IBT(356,DA,0),U,10) ^IBT(356,"ARXFL",X,+$P(^(0),U,10),DA)=""
;;^DD(356,.08,1,1,2)
;;=K ^IBT(356,"ARXFL",X,+$P(^IBT(356,DA,0),U,10),DA)
;;^DD(356,.08,1,1,"%D",0)
;;=^^2^2^2940213^^^
;;^DD(356,.08,1,1,"%D",1,0)
;;=This is a cross reference of all prescriptions and refills. It is used
;;^DD(356,.08,1,1,"%D",2,0)
;;=to ensure that only 1 entry for each refill is created.
;;^DD(356,.08,1,1,"DT")
;;=2930813
;;^DD(356,.08,21,0)
;;=^^2^2^2940213^^
;;^DD(356,.08,21,1,0)
;;=If the entry that is being tracked is a prescription refill then this
;;^DD(356,.08,21,2,0)
;;=field should point to the entry in the prescription file.
;;^DD(356,.08,"DT")
;;=2930813
;;^DD(356,.09,0)
;;=PROSTHETIC ITEM^P660'^RMPR(660,^0;9^Q
;;^DD(356,.09,1,0)
;;=^.1
;;^DD(356,.09,1,1,0)
;;=356^APRO
;;^DD(356,.09,1,1,1)
;;=S ^IBT(356,"APRO",$E(X,1,30),DA)=""
;;^DD(356,.09,1,1,2)
;;=K ^IBT(356,"APRO",$E(X,1,30),DA)
;;^DD(356,.09,1,1,"DT")
;;=2940131
;;^DD(356,.09,3)
;;=
;;^DD(356,.09,21,0)
;;=^^2^2^2931221^^
;;^DD(356,.09,21,1,0)
;;=If this tracking entry is for a prothetic item, this is the pointer
;;^DD(356,.09,21,2,0)
;;=to the prosthetic item file.
IBINI05E ; ; 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,.06,1,1,2)
+2 ;;=K ^IBT(356,"D",$E(X,1,30),DA)
+3 ;;^DD(356,.06,1,1,"DT")
+4 ;;=2930820
+5 ;;^DD(356,.06,1,2,0)
+6 ;;=356^APTDT^MUMPS
+7 ;;^DD(356,.06,1,2,1)
+8 ;;=S:$P(^IBT(356,DA,0),U,2) ^IBT(356,"APTDT",+$P(^(0),U,2),-X,DA)=""
+9 ;;^DD(356,.06,1,2,2)
+10 ;;=K ^IBT(356,"APTDT",+$P(^IBT(356,DA,0),U,2),-X,DA)
+11 ;;^DD(356,.06,1,2,"%D",0)
+12 ;;=^^2^2^2931008^^^^
+13 ;;^DD(356,.06,1,2,"%D",1,0)
+14 ;;=Cross reference of all episodes of care by patient by date, in inverse
+15 ;;^DD(356,.06,1,2,"%D",2,0)
+16 ;;=date order so can list most recent first.
+17 ;;^DD(356,.06,1,2,"DT")
+18 ;;=2931008
+19 ;;^DD(356,.06,1,4,0)
+20 ;;=356^APTY1^MUMPS
+21 ;;^DD(356,.06,1,4,1)
+22 ;;=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)=""
+23 ;;^DD(356,.06,1,4,2)
+24 ;;=K ^IBT(356,"APTY",+$P(^IBT(356,DA,0),U,2),+$P(^(0),U,18),X,DA)
+25 ;;^DD(356,.06,1,4,"%D",0)
+26 ;;=^^1^1^2930809^^
+27 ;;^DD(356,.06,1,4,"%D",1,0)
+28 ;;=Cross-reference of all entries by patient by event type, by episode date.
+29 ;;^DD(356,.06,1,4,"DT")
+30 ;;=2930809
+31 ;;^DD(356,.06,21,0)
+32 ;;=^^7^7^2930712^^
+33 ;;^DD(356,.06,21,1,0)
+34 ;;=This is the date of the episode of care or services that is being tracked.
+35 ;;^DD(356,.06,21,2,0)
+36 ;;=For admissions, it is the admission date. For outpatient visits it is
+37 ;;^DD(356,.06,21,3,0)
+38 ;;=the visit date. For prescription refills it is the refill date. For
+39 ;;^DD(356,.06,21,4,0)
+40 ;;=prosthetic items it is the date that the prosthetic item was issued.
+41 ;;^DD(356,.06,21,5,0)
+42 ;;=
+43 ;;^DD(356,.06,21,6,0)
+44 ;;=The data in this field is entered by the Claims tracking event tracker
+45 ;;^DD(356,.06,21,7,0)
+46 ;;=routines.
+47 ;;^DD(356,.06,"DT")
+48 ;;=2931008
+49 ;;^DD(356,.07,0)
+50 ;;=ADMISSION TYPE^S^1:SCHEDULED;2:URGENT;3:EMERGENT;4:UNSCHEDULED;5:COURT ORDERED;^0;7^Q
+51 ;;^DD(356,.07,5,1,0)
+52 ;;=356^.18^5
+53 ;;^DD(356,.07,21,0)
+54 ;;=^^5^5^2940213^^^^
+55 ;;^DD(356,.07,21,1,0)
+56 ;;=Enter whether this admission was a scheduled admission, a direct
+57 ;;^DD(356,.07,21,2,0)
+58 ;;=admission from the outpatient area, or whether this was an
+59 ;;^DD(356,.07,21,3,0)
+60 ;;=urgent or emergent admission. The type of admission will impact
+61 ;;^DD(356,.07,21,4,0)
+62 ;;=whether pre-certification reviews should be done and the impact
+63 ;;^DD(356,.07,21,5,0)
+64 ;;=on reimbursements.
+65 ;;^DD(356,.07,"DT")
+66 ;;=2930820
+67 ;;^DD(356,.08,0)
+68 ;;=PRESCRIPTION^P52'^PSRX(^0;8^Q
+69 ;;^DD(356,.08,1,0)
+70 ;;=^.1
+71 ;;^DD(356,.08,1,1,0)
+72 ;;=356^ARXFL1^MUMPS
+73 ;;^DD(356,.08,1,1,1)
+74 ;;=S:$P(^IBT(356,DA,0),U,10) ^IBT(356,"ARXFL",X,+$P(^(0),U,10),DA)=""
+75 ;;^DD(356,.08,1,1,2)
+76 ;;=K ^IBT(356,"ARXFL",X,+$P(^IBT(356,DA,0),U,10),DA)
+77 ;;^DD(356,.08,1,1,"%D",0)
+78 ;;=^^2^2^2940213^^^
+79 ;;^DD(356,.08,1,1,"%D",1,0)
+80 ;;=This is a cross reference of all prescriptions and refills. It is used
+81 ;;^DD(356,.08,1,1,"%D",2,0)
+82 ;;=to ensure that only 1 entry for each refill is created.
+83 ;;^DD(356,.08,1,1,"DT")
+84 ;;=2930813
+85 ;;^DD(356,.08,21,0)
+86 ;;=^^2^2^2940213^^
+87 ;;^DD(356,.08,21,1,0)
+88 ;;=If the entry that is being tracked is a prescription refill then this
+89 ;;^DD(356,.08,21,2,0)
+90 ;;=field should point to the entry in the prescription file.
+91 ;;^DD(356,.08,"DT")
+92 ;;=2930813
+93 ;;^DD(356,.09,0)
+94 ;;=PROSTHETIC ITEM^P660'^RMPR(660,^0;9^Q
+95 ;;^DD(356,.09,1,0)
+96 ;;=^.1
+97 ;;^DD(356,.09,1,1,0)
+98 ;;=356^APRO
+99 ;;^DD(356,.09,1,1,1)
+100 ;;=S ^IBT(356,"APRO",$E(X,1,30),DA)=""
+101 ;;^DD(356,.09,1,1,2)
+102 ;;=K ^IBT(356,"APRO",$E(X,1,30),DA)
+103 ;;^DD(356,.09,1,1,"DT")
+104 ;;=2940131
+105 ;;^DD(356,.09,3)
+106 ;;=
+107 ;;^DD(356,.09,21,0)
+108 ;;=^^2^2^2931221^^
+109 ;;^DD(356,.09,21,1,0)
+110 ;;=If this tracking entry is for a prothetic item, this is the pointer
+111 ;;^DD(356,.09,21,2,0)
+112 ;;=to the prosthetic item file.