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

AUP6I003.m

Go to the documentation of this file.
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