source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHHS.m@ 1446

Last change on this file since 1446 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1PRCHHS ;ID/RSD-HASHING ROUTINE ;25SEP1987/7:54 AM
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4EN1 Q:X="" S PX=$E(X,1,20),PY=PX,X="",PL=$L(PX) F PI=1:1:PL S PY1=$E(PY),PZ=$A(PY1)#20+1,PY=$E(PY,2,20),PA(PI)=$S(PY[PY1:$P($T(Z+(PZ+PI#20+1)),";",3,9),1:$P($T(Z+PZ),";",3,9))
5 F PZ=1:1 Q:$L(X)>19 D C S X=$S(PZ#2:PX_X,1:X_PX)
6 S X=$E(X,1,20) G Q
7EN2 Q:X="" S PX=X,X="",PL=$L(PX) D CL S PR=DA*P#94,PY="" F PI=1:1:PL S PA(PI)=$E(PA(PI),PR,999)_$E(PA(PI),1,PR-1),PY1=$E(PA(PI),$A(PX,PI)#94+1),PY=PY_PY1
8 S X=PY G Q
9EN3 Q:X="" S PX=X,X="",PL=$L(PX) D CL S PR=DA*P#94,PY="" F PI=1:1:PL S PA(PI)=$E(PA(PI),PR,999)_$E(PA(PI),1,PR-1),PY1=$F(PA(PI),$E(PX,PI))-2,PY1=$S(PY1<32:PY1+94,1:PY1),PY=PY_$C(PY1)
10 S X=PY G Q
11Q K PA,PI,PJ,PL,PR,PX,PY,PY1,PZ Q
12C S PR=0 F PI=1:1:PL S PR=PR+$A(PX,PI)
13 S PR=PR#94,PY=""
14 F PI=1:1:PL S PJ=$F(PA(PI),$E(PX,PI))-1+PR\2,PA(PI)=$E(PA(PI),PJ,999)_$E(PA(PI),1,PJ-1),PY1=$E(PA(PI),$A(PX,PI)#94+1) S PY=PY_PY1
15 S PX=PY Q
16CL F PI=1:1:PL S PA(PI)=$P($T(Z+(DA+PI#20+1)),";",3,9)
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