INPUT TRANSFORM: K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X D:$D(X) OND^PSGWUTL
LAST EDITED: FEB 28, 1991
HELP-PROMPT: Type a Number between 0 and 9999, 0 Decimal Digits.
This contains the quantity returned from the Area of Use for the item.
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
1)= Q:$D(PSGWV) D RET^PSGWUTL
2)= Q:$D(PSGWV) D KRET^PSGWUTL
This cross-reference is set everytime a quantity greater than zero is returned for a stock item. The nightly job "Update AMIS Stats File" will process this cross-reference and store the data in the AR/WS Stats File
(#58.5). After the cross-reference is processed, it is deleted.
1)= Q:$D(PSGWV) D RETERR^PSGWUTL
2)= Q:$D(PSGWV) D KRETERR^PSGWUTL
This cross-reference is set by the nightly job "Update AMIS Stats File" if an AMIS transaction is found to have invalid or missing Inpatient Site data. Existence of this cross-reference will cause a MailMan message
to be sent to holders of the PSGWMGR security key informing them of the invalid or missing data.
DESCRIPTION: A TaskMan background routine ^PSGWUAS (option PSGW UPDATE AMIS STATS) runs each night. As the data for a return transaction is completed, this "COMPILED FLAG" will be set to "1". This will enable the
cross-reference ^PSI(58.5,"AMIS") to be recompiled via the option PSGW RE-INDEX AMIS or via VA FileMan should the need arise.