[613] | 1 | DGMTCOST ;ALB/CAW - Copay Status change from IB ; 12/23/92
|
---|
| 2 | ;;5.3;Registration;**100**;Aug 13, 1993
|
---|
| 3 | ;
|
---|
| 4 | EN ; 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 | ;
|
---|
| 10 | ENQ ;
|
---|
| 11 | K DGMTSTA,DGCOSTA,DGMT,DA,DR,DIE
|
---|
| 12 | Q
|
---|
| 13 | ;
|
---|
| 14 | STATUS ; 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
|
---|