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

IBINI06I.m

Go to the documentation of this file.
  1. IBINI06I ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(356.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(356.399,.02,1,3,1.4)
  1. ;;=S DIH=$S($D(^IBT(356,DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,11)=DIV,DIH=356,DIG=.11 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(356.399,.02,1,3,2)
  1. ;;=X ^DD(356.399,.02,1,3,2.3) I X S X=DIV X ^DD(356.399,.02,1,3,89.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) S DIU=X K Y S X="" X ^DD(356.399,.02,1,3,2.4)
  1. ;;^DD(356.399,.02,1,3,2.3)
  1. ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(356.399,.02,1,3,79.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1))=$S('$D(^DGCR(399,+$P(Y(1),U,2),0)):"",1:$P(^(0),U,1)) S D0=I(0,0)
  1. ;;^DD(356.399,.02,1,3,2.4)
  1. ;;=S DIH=$S($D(^IBT(356,DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,11)=DIV,DIH=356,DIG=.11 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
  1. ;;^DD(356.399,.02,1,3,69.2)
  1. ;;=S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^IBT(356.399,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^IBT(356,+D0,0)) D0=-1 S Y(101)=$S($D(^IBT(356,D0,0)):^(0),1:"")
  1. ;;^DD(356.399,.02,1,3,79.2)
  1. ;;=S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^IBT(356.399,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^IBT(356,+D0,0)) D0=-1 S Y(101)=$S($D(^IBT(356,D0,0)):^(0),1:"")
  1. ;;^DD(356.399,.02,1,3,89.2)
  1. ;;=S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^IBT(356.399,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^IBT(356,+D0,0)) D0=-1 S DIV(0)=D0 S Y(101)=$S($D(^IBT(356,D0,0)):^(0),1:"")
  1. ;;^DD(356.399,.02,1,3,"%D",0)
  1. ;;=^^3^3^2930826^
  1. ;;^DD(356.399,.02,1,3,"%D",1,0)
  1. ;;=Sets the events Initial Bill Number (356,.11) if that field does not
  1. ;;^DD(356.399,.02,1,3,"%D",2,0)
  1. ;;=already have a value. Deletes the Initial Bill Number if that bill
  1. ;;^DD(356.399,.02,1,3,"%D",3,0)
  1. ;;=is being deleted from this entry.
  1. ;;^DD(356.399,.02,1,3,"CREATE CONDITION")
  1. ;;=CLAIM TRACKING ID:INITIAL BILL NUMBER=""
  1. ;;^DD(356.399,.02,1,3,"CREATE VALUE")
  1. ;;=S X=$P(^IBT(356.399,DA,0),U,2)
  1. ;;^DD(356.399,.02,1,3,"DELETE CONDITION")
  1. ;;=CLAIM TRACKING ID:INITIAL BILL NUMBER=BILL NUMBER
  1. ;;^DD(356.399,.02,1,3,"DELETE VALUE")
  1. ;;=@
  1. ;;^DD(356.399,.02,1,3,"DT")
  1. ;;=2930825
  1. ;;^DD(356.399,.02,1,3,"FIELD")
  1. ;;=CLAIM TRACKING ID:INITIAL BILL NUMBER
  1. ;;^DD(356.399,.02,3)
  1. ;;=The bill number associated with this Claims Tracking ID.
  1. ;;^DD(356.399,.02,21,0)
  1. ;;=^^1^1^2931128^^^
  1. ;;^DD(356.399,.02,21,1,0)
  1. ;;=This is the Bill associated with this Claims Tracking Entry.
  1. ;;^DD(356.399,.02,"DT")
  1. ;;=2931029