BCH2I001 ; ; 26-JUN-1997
;;1.0;IHS RPMS CHR SYSTEM;**3**;JUN 26, 1997
Q:'DIFQ(90002.01) 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,999) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DIC(90002.01,0,"GL")
;;=^BCHRPROB(
;;^DIC("B","CHR POV",90002.01)
;;=
;;^DIC(90002.01,"%D",0)
;;=^^1^1^2950201^
;;^DIC(90002.01,"%D",1,0)
;;=This file contains one record for each assessment on the CHR PCC Form.
;;^DD(90002.01,0)
;;=FIELD^^.07^7
;;^DD(90002.01,0,"DT")
;;=2970626
;;^DD(90002.01,0,"ID",.02)
;;=W ""
;;^DD(90002.01,0,"ID",.03)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^BCHR(+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(90002,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(90002.01,0,"IX","AC",90002.01,.02)
;;=
;;^DD(90002.01,0,"IX","AD",90002.01,.03)
;;=
;;^DD(90002.01,0,"IX","AY9",90002.01,.01)
;;=
;;^DD(90002.01,0,"IX","B",90002.01,.01)
;;=
;;^DD(90002.01,0,"NM","CHR POV")
;;=
;;^DD(90002.01,.01,0)
;;=PROBLEM CODE^RP90002.53'^BCHTPROB(^0;1^Q
;;^DD(90002.01,.01,1,0)
;;=^.1
;;^DD(90002.01,.01,1,1,0)
;;=90002.01^B
;;^DD(90002.01,.01,1,1,1)
;;=S ^BCHRPROB("B",$E(X,1,30),DA)=""
;;^DD(90002.01,.01,1,1,2)
;;=K ^BCHRPROB("B",$E(X,1,30),DA)
;;^DD(90002.01,.01,1,2,0)
;;=90002.01^AY9^MUMPS
;;^DD(90002.01,.01,1,2,1)
;;=S:$D(BCHLOOK) DIC("DR")=""
;;^DD(90002.01,.01,1,2,2)
;;=Q
;;^DD(90002.01,.01,1,2,"%D",0)
;;=^^1^1^2950201^
;;^DD(90002.01,.01,1,2,"%D",1,0)
;;=Sets DIC("DR") to prevent the asking of identifiers when file shifting.
;;^DD(90002.01,.01,1,2,"DT")
;;=2940916
;;^DD(90002.01,.01,3)
;;=
;;^DD(90002.01,.01,"DT")
;;=2940916
;;^DD(90002.01,.05,0)
;;=SERVICE MINUTES^RNJ4,0^^0;5^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
;;^DD(90002.01,.05,1,0)
;;=^.1
;;^DD(90002.01,.05,1,1,0)
;;=^^TRIGGER^90002^.27
;;^DD(90002.01,.05,1,1,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(90002.01,.05,1,1,89.2) S X=$P(Y(101),U,27) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU+DIV X ^DD(90002.01,.05,1,1,1.4)
;;^DD(90002.01,.05,1,1,1.4)
;;=S DIH=$S($D(^BCHR(DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,27)=DIV,DIH=90002,DIG=.27 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(90002.01,.05,1,1,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(90002.01,.05,1,1,89.2) S X=$P(Y(101),U,27) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(90002.01,.05,1,1,2.4)
;;^DD(90002.01,.05,1,1,2.4)
;;=S DIH=$S($D(^BCHR(DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,27)=DIV,DIH=90002,DIG=.27 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(90002.01,.05,1,1,89.2)
;;=S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^BCHRPROB(D0,0)):^(0),1:""),D0=$P(Y(1),U,3) S:'$D(^BCHR(+D0,0)) D0=-1 S DIV(0)=D0 S Y(101)=$S($D(^BCHR(D0,0)):^(0),1:"")
;;^DD(90002.01,.05,1,1,"CREATE VALUE")
;;=TOTAL SERVICE TIME+SERVICE MINUTES
;;^DD(90002.01,.05,1,1,"DELETE VALUE")
;;=TOTAL SERVICE TIME-OLD SERVICE MINUTES
;;^DD(90002.01,.05,1,1,"DT")
;;=2950112
;;^DD(90002.01,.05,1,1,"FIELD")
;;=#.03:#.27
;;^DD(90002.01,.05,3)
;;=Type a Number between 0 and 9999, 0 Decimal Digits
;;^DD(90002.01,.05,"DT")
;;=2970626
BCH2I001 ; ; 26-JUN-1997
+1 ;;1.0;IHS RPMS CHR SYSTEM;**3**;JUN 26, 1997
+2 IF 'DIFQ(90002.01)
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,999)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DIC(90002.01,0,"GL")
+2 ;;=^BCHRPROB(
+3 ;;^DIC("B","CHR POV",90002.01)
+4 ;;=
+5 ;;^DIC(90002.01,"%D",0)
+6 ;;=^^1^1^2950201^
+7 ;;^DIC(90002.01,"%D",1,0)
+8 ;;=This file contains one record for each assessment on the CHR PCC Form.
+9 ;;^DD(90002.01,0)
+10 ;;=FIELD^^.07^7
+11 ;;^DD(90002.01,0,"DT")
+12 ;;=2970626
+13 ;;^DD(90002.01,0,"ID",.02)
+14 ;;=W ""
+15 ;;^DD(90002.01,0,"ID",.03)
+16 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^BCHR(+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(90002,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+17 ;;^DD(90002.01,0,"IX","AC",90002.01,.02)
+18 ;;=
+19 ;;^DD(90002.01,0,"IX","AD",90002.01,.03)
+20 ;;=
+21 ;;^DD(90002.01,0,"IX","AY9",90002.01,.01)
+22 ;;=
+23 ;;^DD(90002.01,0,"IX","B",90002.01,.01)
+24 ;;=
+25 ;;^DD(90002.01,0,"NM","CHR POV")
+26 ;;=
+27 ;;^DD(90002.01,.01,0)
+28 ;;=PROBLEM CODE^RP90002.53'^BCHTPROB(^0;1^Q
+29 ;;^DD(90002.01,.01,1,0)
+30 ;;=^.1
+31 ;;^DD(90002.01,.01,1,1,0)
+32 ;;=90002.01^B
+33 ;;^DD(90002.01,.01,1,1,1)
+34 ;;=S ^BCHRPROB("B",$E(X,1,30),DA)=""
+35 ;;^DD(90002.01,.01,1,1,2)
+36 ;;=K ^BCHRPROB("B",$E(X,1,30),DA)
+37 ;;^DD(90002.01,.01,1,2,0)
+38 ;;=90002.01^AY9^MUMPS
+39 ;;^DD(90002.01,.01,1,2,1)
+40 ;;=S:$D(BCHLOOK) DIC("DR")=""
+41 ;;^DD(90002.01,.01,1,2,2)
+42 ;;=Q
+43 ;;^DD(90002.01,.01,1,2,"%D",0)
+44 ;;=^^1^1^2950201^
+45 ;;^DD(90002.01,.01,1,2,"%D",1,0)
+46 ;;=Sets DIC("DR") to prevent the asking of identifiers when file shifting.
+47 ;;^DD(90002.01,.01,1,2,"DT")
+48 ;;=2940916
+49 ;;^DD(90002.01,.01,3)
+50 ;;=
+51 ;;^DD(90002.01,.01,"DT")
+52 ;;=2940916
+53 ;;^DD(90002.01,.05,0)
+54 ;;=SERVICE MINUTES^RNJ4,0^^0;5^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
+55 ;;^DD(90002.01,.05,1,0)
+56 ;;=^.1
+57 ;;^DD(90002.01,.05,1,1,0)
+58 ;;=^^TRIGGER^90002^.27
+59 ;;^DD(90002.01,.05,1,1,1)
+60 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(90002.01,.05,1,1,89.2) S X=$P(Y(101),U,27) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU+DIV X ^DD(90002.01,.05,1,1,1.4)
+61 ;;^DD(90002.01,.05,1,1,1.4)
+62 ;;=S DIH=$S($D(^BCHR(DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,27)=DIV,DIH=90002,DIG=.27 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+63 ;;^DD(90002.01,.05,1,1,2)
+64 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(90002.01,.05,1,1,89.2) S X=$P(Y(101),U,27) S D0=I(0,0) S DIU=X K Y S X=DIV S X=DIU-X X ^DD(90002.01,.05,1,1,2.4)
+65 ;;^DD(90002.01,.05,1,1,2.4)
+66 ;;=S DIH=$S($D(^BCHR(DIV(0),0)):^(0),1:""),DIV=X I $D(^(0)) S $P(^(0),U,27)=DIV,DIH=90002,DIG=.27 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+67 ;;^DD(90002.01,.05,1,1,89.2)
+68 ;;=S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^BCHRPROB(D0,0)):^(0),1:""),D0=$P(Y(1),U,3) S:'$D(^BCHR(+D0,0)) D0=-1 S DIV(0)=D0 S Y(101)=$S($D(^BCHR(D0,0)):^(0),1:"")
+69 ;;^DD(90002.01,.05,1,1,"CREATE VALUE")
+70 ;;=TOTAL SERVICE TIME+SERVICE MINUTES
+71 ;;^DD(90002.01,.05,1,1,"DELETE VALUE")
+72 ;;=TOTAL SERVICE TIME-OLD SERVICE MINUTES
+73 ;;^DD(90002.01,.05,1,1,"DT")
+74 ;;=2950112
+75 ;;^DD(90002.01,.05,1,1,"FIELD")
+76 ;;=#.03:#.27
+77 ;;^DD(90002.01,.05,3)
+78 ;;=Type a Number between 0 and 9999, 0 Decimal Digits
+79 ;;^DD(90002.01,.05,"DT")
+80 ;;=2970626