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

ACHSPQTS.m

Go to the documentation of this file.
ACHSPQTS ;IHS/ITSC/JVK- TEST DOCUMENTS IN "PQ" WITHOUT ESIG [ 03/28/2005  11:29 AM ]
 ;;3.1;CONTRACT HEALTH MGMT SYSTEM;**12**;JUN 11, 2001
 ;ITSC/SET/JVK-PROGRAMMER UTILITY MENU
TEST ;-EN FOR FIXING DOCUMENTS NOT SIGNED- 
 S ACHSEFL=""
 I $D(^ACHSESIG(DUZ(2))) S ACHSEFL=$P($G(^ACHSESIG(DUZ(2),0)),U,2,3)
 I ACHSEFL'="" D MOVE
 Q
MOVE ;
 S ACHSTYPV=""
 S COUNT=0
 F  S ACHSTYPV=$O(^ACHSF("PQ",DUZ(2),ACHSTYPV)) Q:ACHSTYPV'?1N.N  D
 . S ACHSDIEN=""
 . F  S ACHSDIEN=$O(^ACHSF("PQ",DUZ(2),ACHSTYPV,ACHSDIEN)) Q:+ACHSDIEN=0  D
 ..I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,3)=2 Q
 ..I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,12)>1 Q
 ..I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,2)<$P(^ACHSESIG(DUZ(2),0),U,3) Q
 ..;I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,24)="" S COUNT=COUNT+1  W COUNT,"  ",ACHSDIEN,"  " 
 ..;I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,28)="" W ACHSDIEN,!
 ..I $P(^ACHSF(DUZ(2),"D",ACHSDIEN,0),U,24)="" S ^ACHSF("EQ",DUZ(2),ACHSTYPV,ACHSDIEN,1)=""
 .Q