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

ABMFTED.m

Go to the documentation of this file.
  1. ABMFTED ; IHS/SD/SDR - Populate Effective Date for 3P Fee Table ;
  1. ;;2.6;IHS Third Party Billing;**1**;NOV 12, 2009
  1. ;
  1. W !!,"This option will go through the Fee Schedules and prompt the user"
  1. W !,"for an effective date. This effective date will be used during the install"
  1. W !,"of patch 3 to keep a history of fees for each fee schedule."
  1. ;
  1. W !!,"The following fee schedules are on your system:"
  1. W !,"Num",?4,"Title",?51,"Owner",?66,"Effective Date"
  1. ;
  1. S ABMT=0,ABMCNT=0
  1. F S ABMT=$O(^ABMDFEE(ABMT)) Q:(+$G(ABMT)=0) D
  1. .W !,$P($G(^ABMDFEE(ABMT,0)),U)
  1. .W ?4,$P($G(^ABMDFEE(ABMT,0)),U,2)
  1. .W:($P($G(^ABMDFEE(ABMT,0)),U,4)'="") ?51,$P($G(^AUTTLOC($P($G(^ABMDFEE(ABMT,0)),U,4),0)),U,2)
  1. .W ?66,$$SDT^ABMDUTL($P($G(^ABMDFEE(ABMT,0)),U,5))
  1. .S ABMCNT=+$G(ABMCNT)+1
  1. ;
  1. W !!,"If you continue you will be prompted for an effective date for each fee schedule"
  1. W !,"listed. YOU CAN NOT EXIT OUT ONCE YOU START."
  1. ;
  1. K DIC,DIE,DIR,DA,DR,X,Y
  1. S DIR(0)="Y"
  1. D ^DIR K DIR
  1. I +Y=0 Q ;don't continue
  1. ;
  1. S ABMT=0
  1. S DIE="^ABMDFEE("
  1. S DIE("NO^")=""
  1. F S ABMT=$O(^ABMDFEE(ABMT)) Q:(+$G(ABMT)=0) D
  1. .W !,$P($G(^ABMDFEE(ABMT,0)),U),?4,$P($G(^ABMDFEE(ABMT,0)),U,2)
  1. .S DR=".05//"
  1. .I $P($G(^ABMDFEE(ABMT,0)),U,4)="" S DR=DR_";.04//"
  1. .S DA=ABMT
  1. .D ^DIE
  1. Q