AUP6I003 ; ; 31-AUG-2004
;;93.2;AUP6;;AUG 31, 2004
Q:'DIFQ(9000001) 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
;;^DD(9000001,0,"PT",9002253,.02)
;;=
;;^DD(9000001,0,"PT",9002254,.02)
;;=
;;^DD(9000001,0,"PT",9002257,.02)
;;=
;;^DD(9000001,0,"PT",9002274.3,.01)
;;=
;;^DD(9000001,0,"PT",9002274.4,.05)
;;=
;;^DD(9000001,0,"PT",9002313.57,5)
;;=
;;^DD(9000001,0,"PT",9002313.59,5)
;;=
;;^DD(9000001,0,"PT",9009012,.01)
;;=
;;^DD(9000001,0,"PT",9009012.5,.01)
;;=
;;^DD(9000001,0,"PT",9009013,.01)
;;=
;;^DD(9000001,0,"PT",9009013.1,.01)
;;=
;;^DD(9000001,0,"PT",9009014,.01)
;;=
;;^DD(9000001,0,"PT",9009015.01,.01)
;;=
;;^DD(9000001,0,"PT",9009032,.04)
;;=
;;^DD(9000001,0,"PT",9009035.1,2)
;;=
;;^DD(9000001,0,"PT",9009052,.04)
;;=
;;^DD(9000001,0,"PT",9009062,.01)
;;=
;;^DD(9000001,0,"PT",9009062.021,.01)
;;=
;;^DD(9000001,0,"PT",9009062.022,.01)
;;=
;;^DD(9000001,0,"PT",9009062.08,.01)
;;=
;;^DD(9000001,0,"PT",9009063.1,.02)
;;=
;;^DD(9000001,0,"PT",9009065.05,.01)
;;=
;;^DD(9000001,0,"PT",9009066,.01)
;;=
;;^DD(9000001,0,"PT",9009080,.02)
;;=
;;^DD(9000001,0,"PT",9009081,.01)
;;=
;;^DD(9000001,0,"SCR")
;;=I '$P(^DPT(Y,0),U,19)
;;^DD(9000001,.01,0)
;;=NAME^RP2'X^DPT(^0;1^S:$D(X) DINUM=X
;;^DD(9000001,.01,1,0)
;;=^.1^^-1
;;^DD(9000001,.01,1,1,0)
;;=9000001^B
;;^DD(9000001,.01,1,1,1)
;;=S ^AUPNPAT("B",$E(X,1,30),DA)=""
;;^DD(9000001,.01,1,1,2)
;;=K ^AUPNPAT("B",$E(X,1,30),DA)
;;^DD(9000001,.01,10)
;;=011/PINAME
;;^DD(9000001,.01,"DEL",.01,0)
;;=I 1
;;^DD(9000001,.01,"DT")
;;=3020620
;;^DD(9000001,.14,0)
;;=PRIMARY CARE PROVIDER^P6'^DIC(6,^0;14^Q
;;^DD(9000001,.14,1,0)
;;=^.1
;;^DD(9000001,.14,1,1,0)
;;=9000001^AK
;;^DD(9000001,.14,1,1,1)
;;=S ^AUPNPAT("AK",$E(X,1,30),DA)=""
;;^DD(9000001,.14,1,1,2)
;;=K ^AUPNPAT("AK",$E(X,1,30),DA)
;;^DD(9000001,.14,1,1,"%D",0)
;;=^^1^1^2970212^
;;^DD(9000001,.14,1,1,"%D",1,0)
;;=Provides a PRIMARY CARE PROVIDER sorting index.
;;^DD(9000001,.14,1,1,"DT")
;;=2940519
;;^DD(9000001,.14,1,2,0)
;;=^^TRIGGER^9000001^.33
;;^DD(9000001,.14,1,2,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,33),X=X S DIU=X K Y S X=DIV S X=$G(DUZ) X ^DD(9000001,.14,1,2,1.4)
;;^DD(9000001,.14,1,2,1.4)
;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,33)=DIV,DIH=9000001,DIG=.33 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(9000001,.14,1,2,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,33),X=X S DIU=X K Y S X=DIV S X=$G(DUZ) X ^DD(9000001,.14,1,2,2.4)
;;^DD(9000001,.14,1,2,2.4)
;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,33)=DIV,DIH=9000001,DIG=.33 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(9000001,.14,1,2,"%D",0)
;;=^^1^1^2990928^
;;^DD(9000001,.14,1,2,"%D",1,0)
;;=This triggers the .33 field.
;;^DD(9000001,.14,1,2,"CREATE VALUE")
;;=S X=$G(DUZ)
;;^DD(9000001,.14,1,2,"DELETE VALUE")
;;=S X=$G(DUZ)
;;^DD(9000001,.14,1,2,"DT")
;;=2990928
;;^DD(9000001,.14,1,2,"FIELD")
;;=#.33
;;^DD(9000001,.14,1,3,0)
;;=^^TRIGGER^9000001^.34
;;^DD(9000001,.14,1,3,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,34),X=X S DIU=X K Y S X=DIV S X=$G(DT) X ^DD(9000001,.14,1,3,1.4)
;;^DD(9000001,.14,1,3,1.4)
;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,34)=DIV,DIH=9000001,DIG=.34 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(9000001,.14,1,3,2)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,34),X=X S DIU=X K Y S X=DIV S X=$G(DT) X ^DD(9000001,.14,1,3,2.4)
;;^DD(9000001,.14,1,3,2.4)
;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,34)=DIV,DIH=9000001,DIG=.34 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(9000001,.14,1,3,"CREATE VALUE")
;;=S X=$G(DT)
;;^DD(9000001,.14,1,3,"DELETE VALUE")
;;=S X=$G(DT)
;;^DD(9000001,.14,1,3,"DT")
;;=2990928
;;^DD(9000001,.14,1,3,"FIELD")
;;=#.34
;;^DD(9000001,.14,"DT")
;;=2990928
AUP6I003 ; ; 31-AUG-2004
+1 ;;93.2;AUP6;;AUG 31, 2004
+2 IF 'DIFQ(9000001)
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 ;;^DD(9000001,0,"PT",9002253,.02)
+2 ;;=
+3 ;;^DD(9000001,0,"PT",9002254,.02)
+4 ;;=
+5 ;;^DD(9000001,0,"PT",9002257,.02)
+6 ;;=
+7 ;;^DD(9000001,0,"PT",9002274.3,.01)
+8 ;;=
+9 ;;^DD(9000001,0,"PT",9002274.4,.05)
+10 ;;=
+11 ;;^DD(9000001,0,"PT",9002313.57,5)
+12 ;;=
+13 ;;^DD(9000001,0,"PT",9002313.59,5)
+14 ;;=
+15 ;;^DD(9000001,0,"PT",9009012,.01)
+16 ;;=
+17 ;;^DD(9000001,0,"PT",9009012.5,.01)
+18 ;;=
+19 ;;^DD(9000001,0,"PT",9009013,.01)
+20 ;;=
+21 ;;^DD(9000001,0,"PT",9009013.1,.01)
+22 ;;=
+23 ;;^DD(9000001,0,"PT",9009014,.01)
+24 ;;=
+25 ;;^DD(9000001,0,"PT",9009015.01,.01)
+26 ;;=
+27 ;;^DD(9000001,0,"PT",9009032,.04)
+28 ;;=
+29 ;;^DD(9000001,0,"PT",9009035.1,2)
+30 ;;=
+31 ;;^DD(9000001,0,"PT",9009052,.04)
+32 ;;=
+33 ;;^DD(9000001,0,"PT",9009062,.01)
+34 ;;=
+35 ;;^DD(9000001,0,"PT",9009062.021,.01)
+36 ;;=
+37 ;;^DD(9000001,0,"PT",9009062.022,.01)
+38 ;;=
+39 ;;^DD(9000001,0,"PT",9009062.08,.01)
+40 ;;=
+41 ;;^DD(9000001,0,"PT",9009063.1,.02)
+42 ;;=
+43 ;;^DD(9000001,0,"PT",9009065.05,.01)
+44 ;;=
+45 ;;^DD(9000001,0,"PT",9009066,.01)
+46 ;;=
+47 ;;^DD(9000001,0,"PT",9009080,.02)
+48 ;;=
+49 ;;^DD(9000001,0,"PT",9009081,.01)
+50 ;;=
+51 ;;^DD(9000001,0,"SCR")
+52 ;;=I '$P(^DPT(Y,0),U,19)
+53 ;;^DD(9000001,.01,0)
+54 ;;=NAME^RP2'X^DPT(^0;1^S:$D(X) DINUM=X
+55 ;;^DD(9000001,.01,1,0)
+56 ;;=^.1^^-1
+57 ;;^DD(9000001,.01,1,1,0)
+58 ;;=9000001^B
+59 ;;^DD(9000001,.01,1,1,1)
+60 ;;=S ^AUPNPAT("B",$E(X,1,30),DA)=""
+61 ;;^DD(9000001,.01,1,1,2)
+62 ;;=K ^AUPNPAT("B",$E(X,1,30),DA)
+63 ;;^DD(9000001,.01,10)
+64 ;;=011/PINAME
+65 ;;^DD(9000001,.01,"DEL",.01,0)
+66 ;;=I 1
+67 ;;^DD(9000001,.01,"DT")
+68 ;;=3020620
+69 ;;^DD(9000001,.14,0)
+70 ;;=PRIMARY CARE PROVIDER^P6'^DIC(6,^0;14^Q
+71 ;;^DD(9000001,.14,1,0)
+72 ;;=^.1
+73 ;;^DD(9000001,.14,1,1,0)
+74 ;;=9000001^AK
+75 ;;^DD(9000001,.14,1,1,1)
+76 ;;=S ^AUPNPAT("AK",$E(X,1,30),DA)=""
+77 ;;^DD(9000001,.14,1,1,2)
+78 ;;=K ^AUPNPAT("AK",$E(X,1,30),DA)
+79 ;;^DD(9000001,.14,1,1,"%D",0)
+80 ;;=^^1^1^2970212^
+81 ;;^DD(9000001,.14,1,1,"%D",1,0)
+82 ;;=Provides a PRIMARY CARE PROVIDER sorting index.
+83 ;;^DD(9000001,.14,1,1,"DT")
+84 ;;=2940519
+85 ;;^DD(9000001,.14,1,2,0)
+86 ;;=^^TRIGGER^9000001^.33
+87 ;;^DD(9000001,.14,1,2,1)
+88 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,33),X=X S DIU=X K Y S X=DIV S X=$G(DUZ) X ^DD(9000001,.14,1,2,1.4)
+89 ;;^DD(9000001,.14,1,2,1.4)
+90 ;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,33)=DIV,DIH=9000001,DIG=.33 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+91 ;;^DD(9000001,.14,1,2,2)
+92 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,33),X=X S DIU=X K Y S X=DIV S X=$G(DUZ) X ^DD(9000001,.14,1,2,2.4)
+93 ;;^DD(9000001,.14,1,2,2.4)
+94 ;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,33)=DIV,DIH=9000001,DIG=.33 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+95 ;;^DD(9000001,.14,1,2,"%D",0)
+96 ;;=^^1^1^2990928^
+97 ;;^DD(9000001,.14,1,2,"%D",1,0)
+98 ;;=This triggers the .33 field.
+99 ;;^DD(9000001,.14,1,2,"CREATE VALUE")
+100 ;;=S X=$G(DUZ)
+101 ;;^DD(9000001,.14,1,2,"DELETE VALUE")
+102 ;;=S X=$G(DUZ)
+103 ;;^DD(9000001,.14,1,2,"DT")
+104 ;;=2990928
+105 ;;^DD(9000001,.14,1,2,"FIELD")
+106 ;;=#.33
+107 ;;^DD(9000001,.14,1,3,0)
+108 ;;=^^TRIGGER^9000001^.34
+109 ;;^DD(9000001,.14,1,3,1)
+110 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,34),X=X S DIU=X K Y S X=DIV S X=$G(DT) X ^DD(9000001,.14,1,3,1.4)
+111 ;;^DD(9000001,.14,1,3,1.4)
+112 ;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,34)=DIV,DIH=9000001,DIG=.34 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+113 ;;^DD(9000001,.14,1,3,2)
+114 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^AUPNPAT(D0,0)):^(0),1:"") S X=$P(Y(1),U,34),X=X S DIU=X K Y S X=DIV S X=$G(DT) X ^DD(9000001,.14,1,3,2.4)
+115 ;;^DD(9000001,.14,1,3,2.4)
+116 ;;=S DIH=$S($D(^AUPNPAT(DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,34)=DIV,DIH=9000001,DIG=.34 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+117 ;;^DD(9000001,.14,1,3,"CREATE VALUE")
+118 ;;=S X=$G(DT)
+119 ;;^DD(9000001,.14,1,3,"DELETE VALUE")
+120 ;;=S X=$G(DT)
+121 ;;^DD(9000001,.14,1,3,"DT")
+122 ;;=2990928
+123 ;;^DD(9000001,.14,1,3,"FIELD")
+124 ;;=#.34
+125 ;;^DD(9000001,.14,"DT")
+126 ;;=2990928