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

IBINI02Z.m

Go to the documentation of this file.
  1. IBINI02Z ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(351) 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(351,.02,1,1,"%D",4,0)
  1. ;;=reference. The "AIVDT1" cross-reference on the cycle date (#.03) field
  1. ;;^DD(351,.02,1,1,"%D",5,0)
  1. ;;=is the companion to this cross-reference.
  1. ;;^DD(351,.02,1,1,"DT")
  1. ;;=2911009
  1. ;;^DD(351,.02,1,2,0)
  1. ;;=351^ACT^MUMPS
  1. ;;^DD(351,.02,1,2,1)
  1. ;;=I $D(^IBE(351,DA,0)),$P(^(0),"^",4)=1 S ^IBE(351,"ACT",X,DA)=""
  1. ;;^DD(351,.02,1,2,2)
  1. ;;=K ^IBE(351,"ACT",X,DA)
  1. ;;^DD(351,.02,1,2,"%D",0)
  1. ;;=^^7^7^2911106^
  1. ;;^DD(351,.02,1,2,"%D",1,0)
  1. ;;=Cross-reference of all active IB BILLING CYCLES by patient.
  1. ;;^DD(351,.02,1,2,"%D",2,0)
  1. ;;=
  1. ;;^DD(351,.02,1,2,"%D",3,0)
  1. ;;=This is a temporary cross-reference which is used to find a patient's
  1. ;;^DD(351,.02,1,2,"%D",4,0)
  1. ;;=active billing cycle record, if one exists. The cross-reference is
  1. ;;^DD(351,.02,1,2,"%D",5,0)
  1. ;;=set whenever the status (#.04 field) of a billing cycle is changed to 1
  1. ;;^DD(351,.02,1,2,"%D",6,0)
  1. ;;=(CURRENT), and killed without condition. The "ACT1" cross-reference on
  1. ;;^DD(351,.02,1,2,"%D",7,0)
  1. ;;=the status field is the companion to this cross-reference.
  1. ;;^DD(351,.02,1,2,"DT")
  1. ;;=2911106
  1. ;;^DD(351,.02,1,3,0)
  1. ;;=351^C
  1. ;;^DD(351,.02,1,3,1)
  1. ;;=S ^IBE(351,"C",$E(X,1,30),DA)=""
  1. ;;^DD(351,.02,1,3,2)
  1. ;;=K ^IBE(351,"C",$E(X,1,30),DA)
  1. ;;^DD(351,.02,1,3,"DT")
  1. ;;=2911226
  1. ;;^DD(351,.02,3)
  1. ;;=Please enter the patient for whom this billing clock is being opened.
  1. ;;^DD(351,.02,21,0)
  1. ;;=^^1^1^2911226^^
  1. ;;^DD(351,.02,21,1,0)
  1. ;;=This is the patient for whom the billing clock is being opened.
  1. ;;^DD(351,.02,"DT")
  1. ;;=2911226
  1. ;;^DD(351,.03,0)
  1. ;;=CLOCK BEGIN DATE^RD^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(351,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(351,.03,1,1,0)
  1. ;;=351^AIVDT1^MUMPS
  1. ;;^DD(351,.03,1,1,1)
  1. ;;=I $D(^IBE(351,DA,0)),$P(^(0),"^",2) S ^IBE(351,"AIVDT",$P(^(0),"^",2),-X,DA)=""
  1. ;;^DD(351,.03,1,1,2)
  1. ;;=I $D(^IBE(351,DA,0)),$P(^(0),"^",2) K ^IBE(351,"AIVDT",$P(^(0),"^",2),-X,DA)
  1. ;;^DD(351,.03,1,1,"%D",0)
  1. ;;=^^5^5^2911105^^^^
  1. ;;^DD(351,.03,1,1,"%D",1,0)
  1. ;;=Cross-reference of all IB MT BILLING CYCLE entries by the patient (#.02)
  1. ;;^DD(351,.03,1,1,"%D",2,0)
  1. ;;=field and the minus (negative or inverse) cycle date (#.03) field. The
  1. ;;^DD(351,.03,1,1,"%D",3,0)
  1. ;;=most current billing cycle for a patient may be found using this cross-
  1. ;;^DD(351,.03,1,1,"%D",4,0)
  1. ;;=reference. The "AIVDT" cross-reference on the patient (#.02) field is
  1. ;;^DD(351,.03,1,1,"%D",5,0)
  1. ;;=is the companion to this cross-reference.
  1. ;;^DD(351,.03,1,1,"DT")
  1. ;;=2911009
  1. ;;^DD(351,.03,3)
  1. ;;=Please enter the date on which the billing clock should begin.
  1. ;;^DD(351,.03,21,0)
  1. ;;=^^1^1^2920211^^^^
  1. ;;^DD(351,.03,21,1,0)
  1. ;;=This is the date on which the billing clock has been opened.
  1. ;;^DD(351,.03,"DT")
  1. ;;=2911230
  1. ;;^DD(351,.04,0)
  1. ;;=STATUS^S^1:CURRENT;2:CLOSED;3:CANCELLED;^0;4^Q
  1. ;;^DD(351,.04,1,0)
  1. ;;=^.1
  1. ;;^DD(351,.04,1,1,0)
  1. ;;=351^ACT1^MUMPS
  1. ;;^DD(351,.04,1,1,1)
  1. ;;=I X=1,$D(^IBE(351,DA,0)),$P(^(0),"^",2) S ^IBE(351,"ACT",$P(^(0),"^",2),DA)=""
  1. ;;^DD(351,.04,1,1,2)
  1. ;;=I $D(^IBE(351,DA,0)),$P(^(0),"^",2) K ^IBE(351,"ACT",$P(^(0),"^",2),DA)
  1. ;;^DD(351,.04,1,1,"%D",0)
  1. ;;=^^7^7^2911106^
  1. ;;^DD(351,.04,1,1,"%D",1,0)
  1. ;;=Cross-reference of all active IB BILLING CYCLES by patient (#.02 field).
  1. ;;^DD(351,.04,1,1,"%D",2,0)
  1. ;;=
  1. ;;^DD(351,.04,1,1,"%D",3,0)
  1. ;;=This is a temporary cross-reference which is used to find a patient's
  1. ;;^DD(351,.04,1,1,"%D",4,0)
  1. ;;=active billing cycle record, if one exists. The cross-reference is set
  1. ;;^DD(351,.04,1,1,"%D",5,0)
  1. ;;=whenever the status of a billing cycle is changed to 1 (CURRENT), and