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

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

initial load of FOIAVistA 6/30/08 version

File size: 888 bytes
Line 
1DGMTCOST ;ALB/CAW - Copay Status change from IB ; 12/23/92
2 ;;5.3;Registration;**100**;Aug 13, 1993
3 ;
4EN ; Does the prior match the after?
5 ;
6 G:$P(IBEVTP,U,4)=$P(IBEVTA,U,4)!($P(IBEVTA,U,4)']"") ENQ
7 G:$D(DGMTA)!($D(DGMTP)) ENQ
8 D STATUS
9 ;
10ENQ ;
11 K DGMTSTA,DGCOSTA,DGMT,DA,DR,DIE
12 Q
13 ;
14STATUS ; Check if status change
15 ;
16 S DGMTI=+$$LST^DGMTU($P(IBEVTA,U,2),+IBEVTA,2)
17 Q:'DGMTI
18 ;
19 ; if copay test is no longer applicable, continue processing
20 ; will change status to exempt (from 10 to 7) in the ANNUAL MEANS
21 ; TEST file (#408.31)
22 Q:$P($G(^DGMT(408.31,DGMTI,0)),U,17)]""
23 ;
24 S DGCOSTA=$P($G(^DGMT(408.31,DGMTI,0)),U,3) Q:$S(DGCOSTA=7&($P(IBEVTA,U,4)=1):1,DGCOSTA=8&($P(IBEVTA,U,4)=0):1,1:0)
25 S DGMTYPT=2,DGMTACT="STA" D PRIOR^DGMTEVT S DFN=$P(DGMTP,U,2)
26 S DIE="^DGMT(408.31,",DA=+DGMTI,DR=".03////"_$S($P(IBEVTA,U,4)=1:7,1:8) D ^DIE
27 D AFTER^DGMTEVT
28 S DGMTINF=1 D EN^DGMTAUD
29 Q
Note: See TracBrowser for help on using the repository browser.