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

DGMTCOST.m

Go to the documentation of this file.
  1. DGMTCOST ;ALB/CAW - Copay Status change from IB ; 12/23/92
  1. ;;5.3;Registration;**100**;Aug 13, 1993
  1. ;
  1. EN ; Does the prior match the after?
  1. ;
  1. G:$P(IBEVTP,U,4)=$P(IBEVTA,U,4)!($P(IBEVTA,U,4)']"") ENQ
  1. G:$D(DGMTA)!($D(DGMTP)) ENQ
  1. D STATUS
  1. ;
  1. ENQ ;
  1. K DGMTSTA,DGCOSTA,DGMT,DA,DR,DIE
  1. Q
  1. ;
  1. STATUS ; Check if status change
  1. ;
  1. S DGMTI=+$$LST^DGMTU($P(IBEVTA,U,2),+IBEVTA,2)
  1. Q:'DGMTI
  1. ;
  1. ; if copay test is no longer applicable, continue processing
  1. ; will change status to exempt (from 10 to 7) in the ANNUAL MEANS
  1. ; TEST file (#408.31)
  1. Q:$P($G(^DGMT(408.31,DGMTI,0)),U,17)]""
  1. ;
  1. 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)
  1. S DGMTYPT=2,DGMTACT="STA" D PRIOR^DGMTEVT S DFN=$P(DGMTP,U,2)
  1. S DIE="^DGMT(408.31,",DA=+DGMTI,DR=".03////"_$S($P(IBEVTA,U,4)=1:7,1:8) D ^DIE
  1. D AFTER^DGMTEVT
  1. S DGMTINF=1 D EN^DGMTAUD
  1. Q