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

ACRFSSPO.m

Go to the documentation of this file.
ACRFSSPO ;IHS/OIRM/DSD/THL,AEF - REVIEW ITEMS FOR PO PRINT; [ 11/01/2001   9:44 AM ]
 ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
 ;;ROUTINE TO REVIEW ITEMS FOR PO PRINT
EN D EN1
EXIT K ACR,ACRDSC,ACRDSC1,ACRADSC
 Q
EN1 S (ACR,ACRJ,ACRPOT,ACRPOTOT,ACRPOL,ACRPOL1)=0
 S (ACRPOPG,ACRDC)=1
 F  S ACR=$O(^ACRSS("J",ACRDOCDA,ACR)) Q:'ACR  D
 .Q:'$D(^ACRSS(ACR,0))!'$D(^ACRSS(ACR,"DT"))
 .S ACRSSDT=^ACRSS(ACR,"DT")
 .S ACRJ=ACRJ+1
 .S ACRDSC=$G(^ACRSS(ACR,"DESC"))
 .S ACRDSC1=$G(^ACRSS(ACR,"NOTES"))
 .S ACRADSC=$P($G(^ACRSS(ACR,1,0)),U,3)
 .S ACRNMS=$G(^ACRSS(ACR,"NMS"))
 .S:$P(ACRNMS,U)]""!($P(ACRNMS,U,2)]"") ACRPOL=ACRPOL+1
 .S ACRPOTOT=ACRPOTOT+$P(ACRSSDT,U,9)
 .S ACRPOT=ACRPOT+$P(ACRSSDT,U,4)
 .F I=1:1:5 I $P(ACRDSC,U,I)]"" S ACRPOL=ACRPOL+1
 .F I=1:1:5 I $P(ACRDSC1,U,I)]"" S ACRPOL=ACRPOL+1
 .S ACRPOL=ACRPOL+ACRADSC
 S ACRPOTOT=ACRPOTOT-$P($G(^ACRDOC(ACRDOCDA,13)),U,8)
 S ACRPOT=ACRPOT-$P($G(^ACRDOC(ACRDOCDA,13)),U,8)
 S:'ACRPOT ACRPOT=ACRPOTOT
 S ACRPOL=ACRPOL+2
 I $E($P(^ACRDOC(ACRDOCDA,0),U,3),5,7)>600 S ACRPOL=ACRPOL+2
 S:ACRPOL>5 ACRPOPG=ACRPOPG+1+(ACRPOL\(IOSL-$S($E($G(IOST),1,2)="P-":13,1:5)))
 Q