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

IBINI016.m

Go to the documentation of this file.
  1. IBINI016 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. 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
  1. Q Q
  1. ;;^DD(350,.05,1,3,2.1)
  1. ;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
  1. ;;^DD(350,.05,1,3,2.4)
  1. ;;=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
  1. ;;^DD(350,.05,1,3,"CREATE VALUE")
  1. ;;=NOW
  1. ;;^DD(350,.05,1,3,"DELETE VALUE")
  1. ;;=NOW
  1. ;;^DD(350,.05,1,3,"FIELD")
  1. ;;=#14
  1. ;;^DD(350,.05,1,4,0)
  1. ;;=350^ACT^MUMPS
  1. ;;^DD(350,.05,1,4,1)
  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)=""
  1. ;;^DD(350,.05,1,4,2)
  1. ;;=I $D(^IB(DA,0)),$P(^(0),"^",16) K ^IB("ACT",$P(^(0),"^",16),DA)
  1. ;;^DD(350,.05,1,4,"%D",0)
  1. ;;=^^11^11^2920115^^^^
  1. ;;^DD(350,.05,1,4,"%D",1,0)
  1. ;;=Cross-reference of all IB ACTIONS for Means Test/Category C charges
  1. ;;^DD(350,.05,1,4,"%D",2,0)
  1. ;;=which have a status of INCOMPLETE (cross-referenced by the parent event
  1. ;;^DD(350,.05,1,4,"%D",3,0)
  1. ;;=(#.16) field).
  1. ;;^DD(350,.05,1,4,"%D",4,0)
  1. ;;=
  1. ;;^DD(350,.05,1,4,"%D",5,0)
  1. ;;=This is a temporary cross-reference which is used to locate per diem
  1. ;;^DD(350,.05,1,4,"%D",6,0)
  1. ;;=and co-payment charges, for an inpatient/NHCU admission, which are
  1. ;;^DD(350,.05,1,4,"%D",7,0)
  1. ;;=established, but not yet passed to AR. The cross-reference is set
  1. ;;^DD(350,.05,1,4,"%D",8,0)
  1. ;;=whenever the status of a billable charge is changed to 1 (INCOMPLETE),
  1. ;;^DD(350,.05,1,4,"%D",9,0)
  1. ;;=and killed whenever the parent event (#.16) field is defined. The
  1. ;;^DD(350,.05,1,4,"%D",10,0)
  1. ;;="ACT1" cross-reference on the parent event field is the companion
  1. ;;^DD(350,.05,1,4,"%D",11,0)
  1. ;;=to this cross-reference.
  1. ;;^DD(350,.05,1,4,"DT")
  1. ;;=2911106
  1. ;;^DD(350,.05,1,5,0)
  1. ;;=350^AH^MUMPS
  1. ;;^DD(350,.05,1,5,1)
  1. ;;=I X=8,$P(^IB(DA,0),U,2) S ^IB("AH",$P(^IB(DA,0),U,2),DA)=""
  1. ;;^DD(350,.05,1,5,2)
  1. ;;=I $P(^IB(DA,0),U,2) K ^IB("AH",$P(^IB(DA,0),U,2),DA)
  1. ;;^DD(350,.05,1,5,"%D",0)
  1. ;;=^^1^1^2920427^^^
  1. ;;^DD(350,.05,1,5,"%D",1,0)
  1. ;;=All mt bills in a hold status.
  1. ;;^DD(350,.05,1,5,"DT")
  1. ;;=2920302
  1. ;;^DD(350,.05,1,6,0)
  1. ;;=350^AI^MUMPS
  1. ;;^DD(350,.05,1,6,1)
  1. ;;=I X=99,$P(^IB(DA,0),U,2) S ^IB("AI",$P(^IB(DA,0),U,2),DA)=""
  1. ;;^DD(350,.05,1,6,2)
  1. ;;=I $P(^IB(DA,0),U,2) K ^IB("AI",$P(^IB(DA,0),U,2),DA)
  1. ;;^DD(350,.05,1,6,"%D",0)
  1. ;;=^^1^1^2920427^^^
  1. ;;^DD(350,.05,1,6,"%D",1,0)
  1. ;;=ALL MT BILLS IN CONVERTED STATUS
  1. ;;^DD(350,.05,1,6,"DT")
  1. ;;=2920427
  1. ;;^DD(350,.05,3)
  1. ;;=
  1. ;;^DD(350,.05,21,0)
  1. ;;=^^19^19^2930823^^^^
  1. ;;^DD(350,.05,21,1,0)
  1. ;;=This is the current status of this entry. The IB routines will maintain
  1. ;;^DD(350,.05,21,2,0)
  1. ;;=this field. An entry will be incomplete when it is created, complete
  1. ;;^DD(350,.05,21,3,0)
  1. ;;=when all data needed to pass to AR is there, and Billed after passing to
  1. ;;^DD(350,.05,21,4,0)
  1. ;;=AR and the bill number and/or transaction number have been added.
  1. ;;^DD(350,.05,21,5,0)
  1. ;;=
  1. ;;^DD(350,.05,21,6,0)
  1. ;;=If the entry represents a billable inpatient/NHCU admission (event), the
  1. ;;^DD(350,.05,21,7,0)
  1. ;;=status will be Incomplete while the patient is admitted, and then
  1. ;;^DD(350,.05,21,8,0)
  1. ;;=Complete when the patient has been discharged. All entries created
  1. ;;^DD(350,.05,21,9,0)
  1. ;;=during the Means Test conversion will have the status Converted Record.
  1. ;;^DD(350,.05,21,10,0)
  1. ;;=
  1. ;;^DD(350,.05,21,11,0)
  1. ;;=With Integrated Billing version 2.0, this field is changed from a set
  1. ;;^DD(350,.05,21,12,0)
  1. ;;=of codes field to a pointer which points to the IB ACTION STATUS
  1. ;;^DD(350,.05,21,13,0)
  1. ;;=(#350.21) file. This change will allow new action statuses to be