- IBINI016 ; ; 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,.05,1,3,2.1)
- ;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
- ;;^DD(350,.05,1,3,2.4)
- ;;=S DIH=$S($D(^IB(DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,4)=DIV,DIH=350,DIG=14 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350,.05,1,3,"CREATE VALUE")
- ;;=NOW
- ;;^DD(350,.05,1,3,"DELETE VALUE")
- ;;=NOW
- ;;^DD(350,.05,1,3,"FIELD")
- ;;=#14
- ;;^DD(350,.05,1,4,0)
- ;;=350^ACT^MUMPS
- ;;^DD(350,.05,1,4,1)
- ;;=I X=1,$D(^IB(DA,0)),$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION",$P(^IB(DA,0),"^",16) S ^IB("ACT",$P(^(0),"^",16),DA)=""
- ;;^DD(350,.05,1,4,2)
- ;;=I $D(^IB(DA,0)),$P(^(0),"^",16) K ^IB("ACT",$P(^(0),"^",16),DA)
- ;;^DD(350,.05,1,4,"%D",0)
- ;;=^^11^11^2920115^^^^
- ;;^DD(350,.05,1,4,"%D",1,0)
- ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
- ;;^DD(350,.05,1,4,"%D",2,0)
- ;;=which have a status of INCOMPLETE (cross-referenced by the parent event
- ;;^DD(350,.05,1,4,"%D",3,0)
- ;;=(#.16) field).
- ;;^DD(350,.05,1,4,"%D",4,0)
- ;;=
- ;;^DD(350,.05,1,4,"%D",5,0)
- ;;=This is a temporary cross-reference which is used to locate per diem
- ;;^DD(350,.05,1,4,"%D",6,0)
- ;;=and co-payment charges, for an inpatient/NHCU admission, which are
- ;;^DD(350,.05,1,4,"%D",7,0)
- ;;=established, but not yet passed to AR. The cross-reference is set
- ;;^DD(350,.05,1,4,"%D",8,0)
- ;;=whenever the status of a billable charge is changed to 1 (INCOMPLETE),
- ;;^DD(350,.05,1,4,"%D",9,0)
- ;;=and killed whenever the parent event (#.16) field is defined. The
- ;;^DD(350,.05,1,4,"%D",10,0)
- ;;="ACT1" cross-reference on the parent event field is the companion
- ;;^DD(350,.05,1,4,"%D",11,0)
- ;;=to this cross-reference.
- ;;^DD(350,.05,1,4,"DT")
- ;;=2911106
- ;;^DD(350,.05,1,5,0)
- ;;=350^AH^MUMPS
- ;;^DD(350,.05,1,5,1)
- ;;=I X=8,$P(^IB(DA,0),U,2) S ^IB("AH",$P(^IB(DA,0),U,2),DA)=""
- ;;^DD(350,.05,1,5,2)
- ;;=I $P(^IB(DA,0),U,2) K ^IB("AH",$P(^IB(DA,0),U,2),DA)
- ;;^DD(350,.05,1,5,"%D",0)
- ;;=^^1^1^2920427^^^
- ;;^DD(350,.05,1,5,"%D",1,0)
- ;;=All mt bills in a hold status.
- ;;^DD(350,.05,1,5,"DT")
- ;;=2920302
- ;;^DD(350,.05,1,6,0)
- ;;=350^AI^MUMPS
- ;;^DD(350,.05,1,6,1)
- ;;=I X=99,$P(^IB(DA,0),U,2) S ^IB("AI",$P(^IB(DA,0),U,2),DA)=""
- ;;^DD(350,.05,1,6,2)
- ;;=I $P(^IB(DA,0),U,2) K ^IB("AI",$P(^IB(DA,0),U,2),DA)
- ;;^DD(350,.05,1,6,"%D",0)
- ;;=^^1^1^2920427^^^
- ;;^DD(350,.05,1,6,"%D",1,0)
- ;;=ALL MT BILLS IN CONVERTED STATUS
- ;;^DD(350,.05,1,6,"DT")
- ;;=2920427
- ;;^DD(350,.05,3)
- ;;=
- ;;^DD(350,.05,21,0)
- ;;=^^19^19^2930823^^^^
- ;;^DD(350,.05,21,1,0)
- ;;=This is the current status of this entry. The IB routines will maintain
- ;;^DD(350,.05,21,2,0)
- ;;=this field. An entry will be incomplete when it is created, complete
- ;;^DD(350,.05,21,3,0)
- ;;=when all data needed to pass to AR is there, and Billed after passing to
- ;;^DD(350,.05,21,4,0)
- ;;=AR and the bill number and/or transaction number have been added.
- ;;^DD(350,.05,21,5,0)
- ;;=
- ;;^DD(350,.05,21,6,0)
- ;;=If the entry represents a billable inpatient/NHCU admission (event), the
- ;;^DD(350,.05,21,7,0)
- ;;=status will be Incomplete while the patient is admitted, and then
- ;;^DD(350,.05,21,8,0)
- ;;=Complete when the patient has been discharged. All entries created
- ;;^DD(350,.05,21,9,0)
- ;;=during the Means Test conversion will have the status Converted Record.
- ;;^DD(350,.05,21,10,0)
- ;;=
- ;;^DD(350,.05,21,11,0)
- ;;=With Integrated Billing version 2.0, this field is changed from a set
- ;;^DD(350,.05,21,12,0)
- ;;=of codes field to a pointer which points to the IB ACTION STATUS
- ;;^DD(350,.05,21,13,0)
- ;;=(#350.21) file. This change will allow new action statuses to be
- IBINI016 ; ; 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,.05,1,3,2.1)
- +2 ;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
- +3 ;;^DD(350,.05,1,3,2.4)
- +4 ;;=S DIH=$S($D(^IB(DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,4)=DIV,DIH=350,DIG=14 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +5 ;;^DD(350,.05,1,3,"CREATE VALUE")
- +6 ;;=NOW
- +7 ;;^DD(350,.05,1,3,"DELETE VALUE")
- +8 ;;=NOW
- +9 ;;^DD(350,.05,1,3,"FIELD")
- +10 ;;=#14
- +11 ;;^DD(350,.05,1,4,0)
- +12 ;;=350^ACT^MUMPS
- +13 ;;^DD(350,.05,1,4,1)
- +14 ;;=I X=1,$D(^IB(DA,0)),$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION",$P(^IB(DA,0),"^",16) S ^IB("ACT",$P(^(0),"^",16),DA)=""
- +15 ;;^DD(350,.05,1,4,2)
- +16 ;;=I $D(^IB(DA,0)),$P(^(0),"^",16) K ^IB("ACT",$P(^(0),"^",16),DA)
- +17 ;;^DD(350,.05,1,4,"%D",0)
- +18 ;;=^^11^11^2920115^^^^
- +19 ;;^DD(350,.05,1,4,"%D",1,0)
- +20 ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
- +21 ;;^DD(350,.05,1,4,"%D",2,0)
- +22 ;;=which have a status of INCOMPLETE (cross-referenced by the parent event
- +23 ;;^DD(350,.05,1,4,"%D",3,0)
- +24 ;;=(#.16) field).
- +25 ;;^DD(350,.05,1,4,"%D",4,0)
- +26 ;;=
- +27 ;;^DD(350,.05,1,4,"%D",5,0)
- +28 ;;=This is a temporary cross-reference which is used to locate per diem
- +29 ;;^DD(350,.05,1,4,"%D",6,0)
- +30 ;;=and co-payment charges, for an inpatient/NHCU admission, which are
- +31 ;;^DD(350,.05,1,4,"%D",7,0)
- +32 ;;=established, but not yet passed to AR. The cross-reference is set
- +33 ;;^DD(350,.05,1,4,"%D",8,0)
- +34 ;;=whenever the status of a billable charge is changed to 1 (INCOMPLETE),
- +35 ;;^DD(350,.05,1,4,"%D",9,0)
- +36 ;;=and killed whenever the parent event (#.16) field is defined. The
- +37 ;;^DD(350,.05,1,4,"%D",10,0)
- +38 ;;="ACT1" cross-reference on the parent event field is the companion
- +39 ;;^DD(350,.05,1,4,"%D",11,0)
- +40 ;;=to this cross-reference.
- +41 ;;^DD(350,.05,1,4,"DT")
- +42 ;;=2911106
- +43 ;;^DD(350,.05,1,5,0)
- +44 ;;=350^AH^MUMPS
- +45 ;;^DD(350,.05,1,5,1)
- +46 ;;=I X=8,$P(^IB(DA,0),U,2) S ^IB("AH",$P(^IB(DA,0),U,2),DA)=""
- +47 ;;^DD(350,.05,1,5,2)
- +48 ;;=I $P(^IB(DA,0),U,2) K ^IB("AH",$P(^IB(DA,0),U,2),DA)
- +49 ;;^DD(350,.05,1,5,"%D",0)
- +50 ;;=^^1^1^2920427^^^
- +51 ;;^DD(350,.05,1,5,"%D",1,0)
- +52 ;;=All mt bills in a hold status.
- +53 ;;^DD(350,.05,1,5,"DT")
- +54 ;;=2920302
- +55 ;;^DD(350,.05,1,6,0)
- +56 ;;=350^AI^MUMPS
- +57 ;;^DD(350,.05,1,6,1)
- +58 ;;=I X=99,$P(^IB(DA,0),U,2) S ^IB("AI",$P(^IB(DA,0),U,2),DA)=""
- +59 ;;^DD(350,.05,1,6,2)
- +60 ;;=I $P(^IB(DA,0),U,2) K ^IB("AI",$P(^IB(DA,0),U,2),DA)
- +61 ;;^DD(350,.05,1,6,"%D",0)
- +62 ;;=^^1^1^2920427^^^
- +63 ;;^DD(350,.05,1,6,"%D",1,0)
- +64 ;;=ALL MT BILLS IN CONVERTED STATUS
- +65 ;;^DD(350,.05,1,6,"DT")
- +66 ;;=2920427
- +67 ;;^DD(350,.05,3)
- +68 ;;=
- +69 ;;^DD(350,.05,21,0)
- +70 ;;=^^19^19^2930823^^^^
- +71 ;;^DD(350,.05,21,1,0)
- +72 ;;=This is the current status of this entry. The IB routines will maintain
- +73 ;;^DD(350,.05,21,2,0)
- +74 ;;=this field. An entry will be incomplete when it is created, complete
- +75 ;;^DD(350,.05,21,3,0)
- +76 ;;=when all data needed to pass to AR is there, and Billed after passing to
- +77 ;;^DD(350,.05,21,4,0)
- +78 ;;=AR and the bill number and/or transaction number have been added.
- +79 ;;^DD(350,.05,21,5,0)
- +80 ;;=
- +81 ;;^DD(350,.05,21,6,0)
- +82 ;;=If the entry represents a billable inpatient/NHCU admission (event), the
- +83 ;;^DD(350,.05,21,7,0)
- +84 ;;=status will be Incomplete while the patient is admitted, and then
- +85 ;;^DD(350,.05,21,8,0)
- +86 ;;=Complete when the patient has been discharged. All entries created
- +87 ;;^DD(350,.05,21,9,0)
- +88 ;;=during the Means Test conversion will have the status Converted Record.
- +89 ;;^DD(350,.05,21,10,0)
- +90 ;;=
- +91 ;;^DD(350,.05,21,11,0)
- +92 ;;=With Integrated Billing version 2.0, this field is changed from a set
- +93 ;;^DD(350,.05,21,12,0)
- +94 ;;=of codes field to a pointer which points to the IB ACTION STATUS
- +95 ;;^DD(350,.05,21,13,0)
- +96 ;;=(#350.21) file. This change will allow new action statuses to be