source: FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMV35.m@ 1621

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

initial load of FOIAVistA 6/30/08 version

File size: 783 bytes
Line 
1DGPMV35 ;ALB/MIR - CHECK-OUT LODGERS ; MAR 12 1990
2 ;;5.3;Registration;**111**;Aug 13, 1993
3 ;
4 I '$P(DGPMA,"^",4) W !,"Incomplete Check-Out Movement" S DIK="^DGPM(",DA=DGPMDA D ^DIK W " deleted" S DGPMA="" G Q
5 ;D ADM^DGPMV33
6Q Q
7ONLY ;determine if this is the only CHECK-OUT movement type
8 N C,I S C=0
9 F I=0:0 S I=$O(^DG(405.1,"AT",5,I)) Q:'I I $D(^DG(405.1,I,0)),$P(^(0),"^",4) S C=C+1,DGPMCO=I I C>1 K DGPMCO Q
10 Q
11REAS ;called from enter/edit reasons for lodging option
12 S (DIC,DIE)="^DG(406.41,",DIC(0)="AELQMZ",DLAYGO=406.41 D ^DIC G REASQ:Y<0,REAS:'Y!$P(Y,"^",3)
13 I '$P(Y,"^",3) S DR=.01,DA=+Y D ^DIE I '$D(Y) G REAS
14REASQ K DA,DIC,DIE,DLAYGO,DR,X,Y Q
15 Q
16DICS S DGX=$P(DGPMAN,"^",4) I $S('$D(^DG(405.1,+DGX,0)):0,'$D(^DG(405.1,+Y,"F",+DGX)):1,1:0) S DGER=1 Q
17 S DGER=0
18 Q
Note: See TracBrowser for help on using the repository browser.