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

ACGSRQD.m

Go to the documentation of this file.
ACGSRQD ;IHS/OIRM/DSD/THL,AEF - UPDATE REQUIRED FIELDS SET FROM ORIGINAL CONTRACT; [ 03/27/2000   2:22 PM ]
 ;;2.0t1;CONTRACT INFORMATION SYSTEM;;FEB 16, 2000
 ;;UPDATE REQUIRED FIELDS SET FROM ORIGINAL CONTRACT DEPENDING ON TYPE
 ;;CONTRACT
A ;EP
D ;EP
I ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=1,2,4,5,12,13,16:1:21 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=22,23,25,27,28,29,32,37 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 F ACG=45,51:1:53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56,57,58,62,63 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
C ;EP
M ;EP
R ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=12,13,17:1:20 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=22,27,28 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 F ACG=45,51,53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56,57,58,62,63 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
Q ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=12,13,17:1:19,20 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=22,27,28 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 F ACG=45,51,53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56:1:58,62,63 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
G ;EP
N ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=12,13,17:1:20 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=22,27,28 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 F ACG=45,51,53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56:1:58,62 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
B ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=12,13,17:1:20 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=28,30 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
O ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=22,27,28 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
P ;EP
PM ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=12,13,15:1:19 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=22,27:1:31 S ACGX=ACG-21 S:$P(^ACGS(ACGCNO,"DT1"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT1"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT1"),U,ACGX)_";"
 F ACG=45,51,53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56:1:58,62,63 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
T ;EP
U ;EP
 S DR="",DA=ACGRDA,DIE="^ACGS("
 F ACG=13,17,18 S:$P(^ACGS(ACGCNO,"DT"),U,ACG)'=""&($P(^ACGS(ACGRDA,"DT"),U,ACG)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT"),U,ACG)_";"
 F ACG=45,51,53 S ACGX=ACG-35 S:$P(^ACGS(ACGCNO,"DT2"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT2"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT2"),U,ACGX)_";"
 F ACG=56,57,62,63 S ACGX=ACG-55 S:$P(^ACGS(ACGCNO,"DT3"),U,ACGX)'=""&($P(^ACGS(ACGRDA,"DT3"),U,ACGX)="") DR=DR_ACG_"////"_$P(^ACGS(ACGCNO,"DT3"),U,ACGX)_";"
 D:DR'="" ^DIE K DA,DR,DIE
 Q
 ;