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

IBINI09Z.m

Go to the documentation of this file.
  1. IBINI09Z ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(399) 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(399,.11,1,1,2)
  1. ;;=Q
  1. ;;^DD(399,.11,1,1,"CREATE CONDITION")
  1. ;;=S X=(X="i"&($S('$D(^DGCR(399,DA,"M")):1,'+^("M"):1,'$D(^DIC(36,+^("M"),0)):1,1:0)))
  1. ;;^DD(399,.11,1,1,"CREATE VALUE")
  1. ;;=D EN1^IBCU5
  1. ;;^DD(399,.11,1,1,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,.11,1,1,"DT")
  1. ;;=2930908
  1. ;;^DD(399,.11,1,1,"FIELD")
  1. ;;=#112
  1. ;;^DD(399,.11,1,2,0)
  1. ;;=399^AML1^MUMPS
  1. ;;^DD(399,.11,1,2,1)
  1. ;;=D EN^IBCU5
  1. ;;^DD(399,.11,1,2,2)
  1. ;;=D DEL^IBCU5
  1. ;;^DD(399,.11,1,2,"%D",0)
  1. ;;=^^1^1^2940214^
  1. ;;^DD(399,.11,1,2,"%D",1,0)
  1. ;;=Loads/deletes the mailing address.
  1. ;;^DD(399,.11,1,3,0)
  1. ;;=399^AREV6^MUMPS
  1. ;;^DD(399,.11,1,3,1)
  1. ;;=S DGRVRCAL=1
  1. ;;^DD(399,.11,1,3,2)
  1. ;;=S DGRVRCAL=2
  1. ;;^DD(399,.11,1,3,"%D",0)
  1. ;;=^^2^2^2940214^
  1. ;;^DD(399,.11,1,3,"%D",1,0)
  1. ;;=Variable causes revenue codes and chrges to be re-calculated on return
  1. ;;^DD(399,.11,1,3,"%D",2,0)
  1. ;;=to the enter/edit billing screens.
  1. ;;^DD(399,.11,3)
  1. ;;=Enter the code which identifies the party responsible for payment of this bill.
  1. ;;^DD(399,.11,5,1,0)
  1. ;;=399^.07^2
  1. ;;^DD(399,.11,21,0)
  1. ;;=^^1^1^2880928^
  1. ;;^DD(399,.11,21,1,0)
  1. ;;=This identifies the party responsible for payment of this bill.
  1. ;;^DD(399,.11,"DT")
  1. ;;=2930908
  1. ;;^DD(399,.13,0)
  1. ;;=STATUS^RS^1:ENTERED/NOT REVIEWED;2:REVIEWED;3:AUTHORIZED;4:PRINTED;5:TRANSMITTED;7:CANCELLED;0:CLOSED;^0;13^Q
  1. ;;^DD(399,.13,1,0)
  1. ;;=^.1
  1. ;;^DD(399,.13,1,1,0)
  1. ;;=^^TRIGGER^399^.14
  1. ;;^DD(399,.13,1,1,1)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,14),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(399,.13,1,1,1.4)
  1. ;;^DD(399,.13,1,1,1.4)
  1. ;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,14)=DIV,DIH=399,DIG=.14 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(399,.13,1,1,2)
  1. ;;=Q
  1. ;;^DD(399,.13,1,1,"CREATE VALUE")
  1. ;;=TODAY
  1. ;;^DD(399,.13,1,1,"DELETE VALUE")
  1. ;;=NO EFFECT
  1. ;;^DD(399,.13,1,1,"FIELD")
  1. ;;=#.14
  1. ;;^DD(399,.13,1,2,0)
  1. ;;=399^AOP^MUMPS
  1. ;;^DD(399,.13,1,2,1)
  1. ;;=I X>0,X<3,$P(^DGCR(399,DA,0),U,2) S ^DGCR(399,"AOP",$P(^(0),U,2),DA)=""
  1. ;;^DD(399,.13,1,2,2)
  1. ;;=I $P(^DGCR(399,DA,0),U,2) K ^DGCR(399,"AOP",$P(^(0),U,2),DA)
  1. ;;^DD(399,.13,1,3,0)
  1. ;;=399^AST^MUMPS
  1. ;;^DD(399,.13,1,3,1)
  1. ;;=I +X=3 S ^DGCR(399,"AST",+X,DA)=""
  1. ;;^DD(399,.13,1,3,2)
  1. ;;=K ^DGCR(399,"AST",+X,DA)
  1. ;;^DD(399,.13,1,3,"%D",0)
  1. ;;=^^1^1^2940214^^^^
  1. ;;^DD(399,.13,1,3,"%D",1,0)
  1. ;;=Cross reference of all Authorized bills.
  1. ;;^DD(399,.13,1,3,"DT")
  1. ;;=2940127
  1. ;;^DD(399,.13,3)
  1. ;;=Enter the code which defines whether or not billing record is editable.
  1. ;;^DD(399,.13,5,1,0)
  1. ;;=399^.01^6
  1. ;;^DD(399,.13,5,2,0)
  1. ;;=399^17^1
  1. ;;^DD(399,.13,5,3,0)
  1. ;;=399^14^1
  1. ;;^DD(399,.13,5,4,0)
  1. ;;=399^9^3
  1. ;;^DD(399,.13,5,5,0)
  1. ;;=399^6^3
  1. ;;^DD(399,.13,21,0)
  1. ;;=^^5^5^2940216^^^^
  1. ;;^DD(399,.13,21,1,0)
  1. ;;=This identifies the status of this billing record. That is, whether or not
  1. ;;^DD(399,.13,21,2,0)
  1. ;;=this record is open for editing. Current valid statuss are:
  1. ;;^DD(399,.13,21,3,0)
  1. ;;=1=ENTERED/NOT REVIEWED, 2=REVIEWED, 3=AUTHORIZED, 4=PRINTED, 5=TRANSMITTED,
  1. ;;^DD(399,.13,21,4,0)
  1. ;;=7=CANCELLED, 0=CLOSED
  1. ;;^DD(399,.13,21,5,0)
  1. ;;=Only ENTERED/NOT REVIEWED and REVIEWED bills are editable.
  1. ;;^DD(399,.13,"DT")
  1. ;;=2940127
  1. ;;^DD(399,.14,0)
  1. ;;=STATUS DATE^RD^^0;14^S %DT="E" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(399,.14,3)
  1. ;;=Enter the date of last status change.
  1. ;;^DD(399,.14,5,1,0)
  1. ;;=399^.13^1
  1. ;;^DD(399,.14,21,0)
  1. ;;=^^1^1^2880831^
  1. ;;^DD(399,.14,21,1,0)
  1. ;;=This is the date of the last status change.
  1. ;;^DD(399,.14,"DT")
  1. ;;=2880608
  1. ;;^DD(399,.15,0)
  1. ;;=BILL COPIED FROM^*P399'^DGCR(399,^0;15^S DIC("S")="I $P(^(0),U,13)=7" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X