IBINI01A ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(350) 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(350,.17,1,1,"%D",1,0)
;;=Cross-reference of all IB ACTION entries which represent inpatient/NHCU
;;^DD(350,.17,1,1,"%D",2,0)
;;=admissions by the patient (#.02) field and the minus (negative or inverse)
;;^DD(350,.17,1,1,"%D",3,0)
;;=event date field. A billable event may be located for a patient using
;;^DD(350,.17,1,1,"%D",4,0)
;;=this cross-reference. The "AFDT" cross-reference on the patient (#.02)
;;^DD(350,.17,1,1,"%D",5,0)
;;=field is the companion to this cross-reference.
;;^DD(350,.17,1,1,"DT")
;;=2911101
;;^DD(350,.17,21,0)
;;=^^6^6^2911104^^^^
;;^DD(350,.17,21,1,0)
;;=This field will only be used for those IB ACTION entries which represent
;;^DD(350,.17,21,2,0)
;;=Hospital/NHCU admissions and outpatient visits for which Category C
;;^DD(350,.17,21,3,0)
;;=copayment and per diem charges will be billed to the patient. The
;;^DD(350,.17,21,4,0)
;;=value of this field will be the admission or visit date. The inverse
;;^DD(350,.17,21,5,0)
;;=(negative) value of this date will be cross-referenced by patient for
;;^DD(350,.17,21,6,0)
;;=look-up purposes.
;;^DD(350,.17,"DT")
;;=2911101
;;^DD(350,.18,0)
;;=DATE LAST BILLED^D^^0;18^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(350,.18,21,0)
;;=^^4^4^2911101^
;;^DD(350,.18,21,1,0)
;;=This field will only be used for those IB ACTION entries which represent
;;^DD(350,.18,21,2,0)
;;=inpatient or NHCU admissions for which Category C copayment and per diem
;;^DD(350,.18,21,3,0)
;;=charges will be billed to the patient. The value of this field will be
;;^DD(350,.18,21,4,0)
;;=the last day through which charges have been calculated for the admission.
;;^DD(350,.18,"DT")
;;=2911101
;;^DD(350,11,0)
;;=USER ADDING ENTRY^P200'I^VA(200,^1;1^Q
;;^DD(350,11,21,0)
;;=^^2^2^2911008^^^^
;;^DD(350,11,21,1,0)
;;=This is the person adding an entry in an application that cause the
;;^DD(350,11,21,2,0)
;;=application to create an entry in this file.
;;^DD(350,11,"DT")
;;=2910304
;;^DD(350,12,0)
;;=DATE ENTRY ADDED^DI^^1;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
;;^DD(350,12,1,0)
;;=^.1^^-1
;;^DD(350,12,1,1,0)
;;=350^D
;;^DD(350,12,1,1,1)
;;=S ^IB("D",$E(X,1,30),DA)=""
;;^DD(350,12,1,1,2)
;;=K ^IB("D",$E(X,1,30),DA)
;;^DD(350,12,1,2,0)
;;=350^APDT1^MUMPS
;;^DD(350,12,1,2,1)
;;=I $P(^IB(DA,0),"^",9) S ^IB("APDT",$P(^(0),"^",9),-X,DA)=""
;;^DD(350,12,1,2,2)
;;=I $P(^IB(DA,0),"^",9) K ^IB("APDT",$P(^(0),"^",9),-X,DA)
;;^DD(350,12,1,2,"%D",0)
;;=^^5^5^2910417^
;;^DD(350,12,1,2,"%D",1,0)
;;=Cross-reference of all IB ACTION entries by parent link (#.09) field and
;;^DD(350,12,1,2,"%D",2,0)
;;=the minus (negative or inverse) date entry added (#12) field. The most
;;^DD(350,12,1,2,"%D",3,0)
;;=current ACTION for the original entry can be found using this cross
;;^DD(350,12,1,2,"%D",4,0)
;;=reference. The "APDT" cross-reference on the parent link (#.09) is the
;;^DD(350,12,1,2,"%D",5,0)
;;=companion to this cross-reference.
;;^DD(350,12,1,3,0)
;;=350^APTDT1^MUMPS
;;^DD(350,12,1,3,1)
;;=I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("APTDT",$P(^(0),"^",2),X,DA)=""
;;^DD(350,12,1,3,2)
;;=I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("APTDT",$P(^(0),"^",2),X,DA)
;;^DD(350,12,1,3,"%D",0)
;;=^^3^3^2910417^
;;^DD(350,12,1,3,"%D",1,0)
;;=Cross-reference of all IB ACTION entries by patient (#.02) and the date entry added (#12)
;;^DD(350,12,1,3,"%D",2,0)
;;=field. The "APTDT" cross-reference on the patient (#.02) field is the
;;^DD(350,12,1,3,"%D",3,0)
;;=companion to this cross-reference.
IBINI01A ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(350)
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(350,.17,1,1,"%D",1,0)
+2 ;;=Cross-reference of all IB ACTION entries which represent inpatient/NHCU
+3 ;;^DD(350,.17,1,1,"%D",2,0)
+4 ;;=admissions by the patient (#.02) field and the minus (negative or inverse)
+5 ;;^DD(350,.17,1,1,"%D",3,0)
+6 ;;=event date field. A billable event may be located for a patient using
+7 ;;^DD(350,.17,1,1,"%D",4,0)
+8 ;;=this cross-reference. The "AFDT" cross-reference on the patient (#.02)
+9 ;;^DD(350,.17,1,1,"%D",5,0)
+10 ;;=field is the companion to this cross-reference.
+11 ;;^DD(350,.17,1,1,"DT")
+12 ;;=2911101
+13 ;;^DD(350,.17,21,0)
+14 ;;=^^6^6^2911104^^^^
+15 ;;^DD(350,.17,21,1,0)
+16 ;;=This field will only be used for those IB ACTION entries which represent
+17 ;;^DD(350,.17,21,2,0)
+18 ;;=Hospital/NHCU admissions and outpatient visits for which Category C
+19 ;;^DD(350,.17,21,3,0)
+20 ;;=copayment and per diem charges will be billed to the patient. The
+21 ;;^DD(350,.17,21,4,0)
+22 ;;=value of this field will be the admission or visit date. The inverse
+23 ;;^DD(350,.17,21,5,0)
+24 ;;=(negative) value of this date will be cross-referenced by patient for
+25 ;;^DD(350,.17,21,6,0)
+26 ;;=look-up purposes.
+27 ;;^DD(350,.17,"DT")
+28 ;;=2911101
+29 ;;^DD(350,.18,0)
+30 ;;=DATE LAST BILLED^D^^0;18^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+31 ;;^DD(350,.18,21,0)
+32 ;;=^^4^4^2911101^
+33 ;;^DD(350,.18,21,1,0)
+34 ;;=This field will only be used for those IB ACTION entries which represent
+35 ;;^DD(350,.18,21,2,0)
+36 ;;=inpatient or NHCU admissions for which Category C copayment and per diem
+37 ;;^DD(350,.18,21,3,0)
+38 ;;=charges will be billed to the patient. The value of this field will be
+39 ;;^DD(350,.18,21,4,0)
+40 ;;=the last day through which charges have been calculated for the admission.
+41 ;;^DD(350,.18,"DT")
+42 ;;=2911101
+43 ;;^DD(350,11,0)
+44 ;;=USER ADDING ENTRY^P200'I^VA(200,^1;1^Q
+45 ;;^DD(350,11,21,0)
+46 ;;=^^2^2^2911008^^^^
+47 ;;^DD(350,11,21,1,0)
+48 ;;=This is the person adding an entry in an application that cause the
+49 ;;^DD(350,11,21,2,0)
+50 ;;=application to create an entry in this file.
+51 ;;^DD(350,11,"DT")
+52 ;;=2910304
+53 ;;^DD(350,12,0)
+54 ;;=DATE ENTRY ADDED^DI^^1;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
+55 ;;^DD(350,12,1,0)
+56 ;;=^.1^^-1
+57 ;;^DD(350,12,1,1,0)
+58 ;;=350^D
+59 ;;^DD(350,12,1,1,1)
+60 ;;=S ^IB("D",$E(X,1,30),DA)=""
+61 ;;^DD(350,12,1,1,2)
+62 ;;=K ^IB("D",$E(X,1,30),DA)
+63 ;;^DD(350,12,1,2,0)
+64 ;;=350^APDT1^MUMPS
+65 ;;^DD(350,12,1,2,1)
+66 ;;=I $P(^IB(DA,0),"^",9) S ^IB("APDT",$P(^(0),"^",9),-X,DA)=""
+67 ;;^DD(350,12,1,2,2)
+68 ;;=I $P(^IB(DA,0),"^",9) K ^IB("APDT",$P(^(0),"^",9),-X,DA)
+69 ;;^DD(350,12,1,2,"%D",0)
+70 ;;=^^5^5^2910417^
+71 ;;^DD(350,12,1,2,"%D",1,0)
+72 ;;=Cross-reference of all IB ACTION entries by parent link (#.09) field and
+73 ;;^DD(350,12,1,2,"%D",2,0)
+74 ;;=the minus (negative or inverse) date entry added (#12) field. The most
+75 ;;^DD(350,12,1,2,"%D",3,0)
+76 ;;=current ACTION for the original entry can be found using this cross
+77 ;;^DD(350,12,1,2,"%D",4,0)
+78 ;;=reference. The "APDT" cross-reference on the parent link (#.09) is the
+79 ;;^DD(350,12,1,2,"%D",5,0)
+80 ;;=companion to this cross-reference.
+81 ;;^DD(350,12,1,3,0)
+82 ;;=350^APTDT1^MUMPS
+83 ;;^DD(350,12,1,3,1)
+84 ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("APTDT",$P(^(0),"^",2),X,DA)=""
+85 ;;^DD(350,12,1,3,2)
+86 ;;=I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("APTDT",$P(^(0),"^",2),X,DA)
+87 ;;^DD(350,12,1,3,"%D",0)
+88 ;;=^^3^3^2910417^
+89 ;;^DD(350,12,1,3,"%D",1,0)
+90 ;;=Cross-reference of all IB ACTION entries by patient (#.02) and the date entry added (#12)
+91 ;;^DD(350,12,1,3,"%D",2,0)
+92 ;;=field. The "APTDT" cross-reference on the patient (#.02) field is the
+93 ;;^DD(350,12,1,3,"%D",3,0)
+94 ;;=companion to this cross-reference.