- IBINI01Z ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(350.6) 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.6,2.01,1,1,1.4)
- ;;=S DIH=$S($D(^IBE(350.6,DIV(0),2)):^(2),1:""),DIV=X S $P(^(2),U,3)=DIV,DIH=350.6,DIG=2.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350.6,2.01,1,1,2)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,2)):^(2),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(350.6,2.01,1,1,2.4)
- ;;^DD(350.6,2.01,1,1,2.4)
- ;;=S DIH=$S($D(^IBE(350.6,DIV(0),2)):^(2),1:""),DIV=X S $P(^(2),U,3)=DIV,DIH=350.6,DIG=2.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350.6,2.01,1,1,"CREATE VALUE")
- ;;=S X=DUZ
- ;;^DD(350.6,2.01,1,1,"DELETE VALUE")
- ;;=@
- ;;^DD(350.6,2.01,1,1,"DT")
- ;;=2920424
- ;;^DD(350.6,2.01,1,1,"FIELD")
- ;;=#2.03
- ;;^DD(350.6,2.01,21,0)
- ;;=^^2^2^2920427^^
- ;;^DD(350.6,2.01,21,1,0)
- ;;=The date/time that the archiving of data is initiated is automatically
- ;;^DD(350.6,2.01,21,2,0)
- ;;=stuffed into this field by the 'Archive' option.
- ;;^DD(350.6,2.01,"DT")
- ;;=2920424
- ;;^DD(350.6,2.02,0)
- ;;=ARCHIVE END DATE/TIME^D^^2;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350.6,2.02,3)
- ;;=
- ;;^DD(350.6,2.02,21,0)
- ;;=^^4^4^2920427^^
- ;;^DD(350.6,2.02,21,1,0)
- ;;=The date/time that the archiving of data was completed is automatically
- ;;^DD(350.6,2.02,21,2,0)
- ;;=stuffed into this field by the 'Archive' option. The existence of this
- ;;^DD(350.6,2.02,21,3,0)
- ;;=field in the log entry assures that archiving was successful, and thus
- ;;^DD(350.6,2.02,21,4,0)
- ;;=the field is used as a flag to allow purging.
- ;;^DD(350.6,2.03,0)
- ;;=ARCHIVE INITIATOR^P200'^VA(200,^2;3^Q
- ;;^DD(350.6,2.03,5,1,0)
- ;;=350.6^2.01^1
- ;;^DD(350.6,2.03,21,0)
- ;;=^^2^2^2920427^^
- ;;^DD(350.6,2.03,21,1,0)
- ;;=This field contains the individual who archived the file. The field is
- ;;^DD(350.6,2.03,21,2,0)
- ;;=updated by a trigger when the ARCHIVE BEGIN DATE/TIME field is updated.
- ;;^DD(350.6,2.03,"DT")
- ;;=2920408
- ;;^DD(350.6,3.01,0)
- ;;=PURGE BEGIN DATE/TIME^D^^3;1^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350.6,3.01,1,0)
- ;;=^.1
- ;;^DD(350.6,3.01,1,1,0)
- ;;=^^TRIGGER^350.6^3.03
- ;;^DD(350.6,3.01,1,1,1)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,3)):^(3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(350.6,3.01,1,1,1.4)
- ;;^DD(350.6,3.01,1,1,1.4)
- ;;=S DIH=$S($D(^IBE(350.6,DIV(0),3)):^(3),1:""),DIV=X S $P(^(3),U,3)=DIV,DIH=350.6,DIG=3.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350.6,3.01,1,1,2)
- ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,3)):^(3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(350.6,3.01,1,1,2.4)
- ;;^DD(350.6,3.01,1,1,2.4)
- ;;=S DIH=$S($D(^IBE(350.6,DIV(0),3)):^(3),1:""),DIV=X S $P(^(3),U,3)=DIV,DIH=350.6,DIG=3.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- ;;^DD(350.6,3.01,1,1,"CREATE VALUE")
- ;;=S X=DUZ
- ;;^DD(350.6,3.01,1,1,"DELETE VALUE")
- ;;=@
- ;;^DD(350.6,3.01,1,1,"DT")
- ;;=2920424
- ;;^DD(350.6,3.01,1,1,"FIELD")
- ;;=#3.03
- ;;^DD(350.6,3.01,21,0)
- ;;=^^2^2^2920427^
- ;;^DD(350.6,3.01,21,1,0)
- ;;=The date/time that purging is initiated is automatically stuffed into
- ;;^DD(350.6,3.01,21,2,0)
- ;;=this field by the 'Purge' option.
- ;;^DD(350.6,3.01,"DT")
- ;;=2920424
- ;;^DD(350.6,3.02,0)
- ;;=PURGE END DATE/TIME^D^^3;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- ;;^DD(350.6,3.02,3)
- ;;=
- ;;^DD(350.6,3.02,21,0)
- ;;=^^3^3^2920427^
- ;;^DD(350.6,3.02,21,1,0)
- ;;=The date/time that the purging of data was completed is automatically
- ;;^DD(350.6,3.02,21,2,0)
- ;;=stuffed into this field by the 'Purge' option. When this field is
- ;;^DD(350.6,3.02,21,3,0)
- ;;=updated the status of the log entry is updated to CLOSED.
- ;;^DD(350.6,3.03,0)
- ;;=PURGE INITIATOR^P200'^VA(200,^3;3^Q
- IBINI01Z ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(350.6)
- 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.6,2.01,1,1,1.4)
- +2 ;;=S DIH=$S($D(^IBE(350.6,DIV(0),2)):^(2),1:""),DIV=X S $P(^(2),U,3)=DIV,DIH=350.6,DIG=2.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +3 ;;^DD(350.6,2.01,1,1,2)
- +4 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,2)):^(2),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(350.6,2.01,1,1,2.4)
- +5 ;;^DD(350.6,2.01,1,1,2.4)
- +6 ;;=S DIH=$S($D(^IBE(350.6,DIV(0),2)):^(2),1:""),DIV=X S $P(^(2),U,3)=DIV,DIH=350.6,DIG=2.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +7 ;;^DD(350.6,2.01,1,1,"CREATE VALUE")
- +8 ;;=S X=DUZ
- +9 ;;^DD(350.6,2.01,1,1,"DELETE VALUE")
- +10 ;;=@
- +11 ;;^DD(350.6,2.01,1,1,"DT")
- +12 ;;=2920424
- +13 ;;^DD(350.6,2.01,1,1,"FIELD")
- +14 ;;=#2.03
- +15 ;;^DD(350.6,2.01,21,0)
- +16 ;;=^^2^2^2920427^^
- +17 ;;^DD(350.6,2.01,21,1,0)
- +18 ;;=The date/time that the archiving of data is initiated is automatically
- +19 ;;^DD(350.6,2.01,21,2,0)
- +20 ;;=stuffed into this field by the 'Archive' option.
- +21 ;;^DD(350.6,2.01,"DT")
- +22 ;;=2920424
- +23 ;;^DD(350.6,2.02,0)
- +24 ;;=ARCHIVE END DATE/TIME^D^^2;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- +25 ;;^DD(350.6,2.02,3)
- +26 ;;=
- +27 ;;^DD(350.6,2.02,21,0)
- +28 ;;=^^4^4^2920427^^
- +29 ;;^DD(350.6,2.02,21,1,0)
- +30 ;;=The date/time that the archiving of data was completed is automatically
- +31 ;;^DD(350.6,2.02,21,2,0)
- +32 ;;=stuffed into this field by the 'Archive' option. The existence of this
- +33 ;;^DD(350.6,2.02,21,3,0)
- +34 ;;=field in the log entry assures that archiving was successful, and thus
- +35 ;;^DD(350.6,2.02,21,4,0)
- +36 ;;=the field is used as a flag to allow purging.
- +37 ;;^DD(350.6,2.03,0)
- +38 ;;=ARCHIVE INITIATOR^P200'^VA(200,^2;3^Q
- +39 ;;^DD(350.6,2.03,5,1,0)
- +40 ;;=350.6^2.01^1
- +41 ;;^DD(350.6,2.03,21,0)
- +42 ;;=^^2^2^2920427^^
- +43 ;;^DD(350.6,2.03,21,1,0)
- +44 ;;=This field contains the individual who archived the file. The field is
- +45 ;;^DD(350.6,2.03,21,2,0)
- +46 ;;=updated by a trigger when the ARCHIVE BEGIN DATE/TIME field is updated.
- +47 ;;^DD(350.6,2.03,"DT")
- +48 ;;=2920408
- +49 ;;^DD(350.6,3.01,0)
- +50 ;;=PURGE BEGIN DATE/TIME^D^^3;1^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- +51 ;;^DD(350.6,3.01,1,0)
- +52 ;;=^.1
- +53 ;;^DD(350.6,3.01,1,1,0)
- +54 ;;=^^TRIGGER^350.6^3.03
- +55 ;;^DD(350.6,3.01,1,1,1)
- +56 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,3)):^(3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(350.6,3.01,1,1,1.4)
- +57 ;;^DD(350.6,3.01,1,1,1.4)
- +58 ;;=S DIH=$S($D(^IBE(350.6,DIV(0),3)):^(3),1:""),DIV=X S $P(^(3),U,3)=DIV,DIH=350.6,DIG=3.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +59 ;;^DD(350.6,3.01,1,1,2)
- +60 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IBE(350.6,D0,3)):^(3),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(350.6,3.01,1,1,2.4)
- +61 ;;^DD(350.6,3.01,1,1,2.4)
- +62 ;;=S DIH=$S($D(^IBE(350.6,DIV(0),3)):^(3),1:""),DIV=X S $P(^(3),U,3)=DIV,DIH=350.6,DIG=3.03 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
- +63 ;;^DD(350.6,3.01,1,1,"CREATE VALUE")
- +64 ;;=S X=DUZ
- +65 ;;^DD(350.6,3.01,1,1,"DELETE VALUE")
- +66 ;;=@
- +67 ;;^DD(350.6,3.01,1,1,"DT")
- +68 ;;=2920424
- +69 ;;^DD(350.6,3.01,1,1,"FIELD")
- +70 ;;=#3.03
- +71 ;;^DD(350.6,3.01,21,0)
- +72 ;;=^^2^2^2920427^
- +73 ;;^DD(350.6,3.01,21,1,0)
- +74 ;;=The date/time that purging is initiated is automatically stuffed into
- +75 ;;^DD(350.6,3.01,21,2,0)
- +76 ;;=this field by the 'Purge' option.
- +77 ;;^DD(350.6,3.01,"DT")
- +78 ;;=2920424
- +79 ;;^DD(350.6,3.02,0)
- +80 ;;=PURGE END DATE/TIME^D^^3;2^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
- +81 ;;^DD(350.6,3.02,3)
- +82 ;;=
- +83 ;;^DD(350.6,3.02,21,0)
- +84 ;;=^^3^3^2920427^
- +85 ;;^DD(350.6,3.02,21,1,0)
- +86 ;;=The date/time that the purging of data was completed is automatically
- +87 ;;^DD(350.6,3.02,21,2,0)
- +88 ;;=stuffed into this field by the 'Purge' option. When this field is
- +89 ;;^DD(350.6,3.02,21,3,0)
- +90 ;;=updated the status of the log entry is updated to CLOSED.
- +91 ;;^DD(350.6,3.03,0)
- +92 ;;=PURGE INITIATOR^P200'^VA(200,^3;3^Q