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

ABMUXCLD.m

Go to the documentation of this file.
  1. ABMUXCLD ; IHS/SD/SDR - 3PB/UFMS populate Exclusion Table
  1. ;;2.6;IHS 3P BILLING SYSTEM;**11**;NOV 12, 2009;Build 133
  1. ;
  1. ; new routine - v2.5 p12 SDD item 4.4
  1. ;
  1. EP ; EP
  1. W !!?3,"WARNING: Entries into the following file will prohibit data from being"
  1. W !?12,"sent to UFMS."
  1. W !?12,"Use EXTREME caution when creating entries."
  1. W !!,"The default to your current location."
  1. K DIR
  1. W !!
  1. S DIR(0)="E",DIR("A")="Enter RETURN to Continue" D ^DIR K DIR
  1. ;location
  1. I +$P($G(^ABMUXCLD(0)),U,3)=0 W !!,"There is currently no data in file.",!,"""^"" to exit without entry.",!
  1. K DIC,DIE,DA,X,Y
  1. S DIC="^ABMUXCLD("
  1. S DIC(0)="AEMQL"
  1. S DIC("A")="Select Location: "
  1. S DIC("B")=DUZ(2)
  1. D ^DIC
  1. Q:+Y<0
  1. Q:$D(DTOUT)!$D(DUOUT)
  1. S ABMLOC=+Y
  1. ;
  1. DISP ;display of existing entries in file
  1. W !!,"Existing entries for "_$P($G(^DIC(4,ABMLOC,0)),U)_":"
  1. W !?3,"Eff. Date"
  1. W ?15,"End Date"
  1. W ?28,"Clinic"
  1. W ?55,"Insurer Type",!
  1. F ABMI=1:1:80 W "-"
  1. S ABMEDT=0
  1. I +$O(^ABMUXCLD(ABMLOC,1,ABMEDT))=0 W !?5,"NO ENTRIES EXIST"
  1. F S ABMEDT=$O(^ABMUXCLD(ABMLOC,1,ABMEDT)) Q:+ABMEDT=0 D
  1. .S ABMREC=$G(^ABMUXCLD(ABMLOC,1,ABMEDT,0))
  1. .W !?3,$$SDT^ABMDUTL($P(ABMREC,U))
  1. .W ?15,$$SDT^ABMDUTL($P(ABMREC,U,2))
  1. .W:$P(ABMREC,U,3)'="" ?28,$P($G(^DIC(40.7,$P(ABMREC,U,3),0)),U,2),?31,$E($P($G(^DIC(40.7,$P(ABMREC,U,3),0)),U),1,20)
  1. .I $P(ABMREC,U,4)'="" D
  1. ..S ABMTYP=$P(ABMREC,U,4)
  1. ..;W ?55,$P($T(@ABMTYP^ABMUCASH),";;",2) ;abm*2.6*11 insurer type
  1. ..W ?55,$$INSTYP^ABMUCASH(ABMTYP) ;abm*2.6*11 insurer type
  1. W !
  1. ;effective date
  1. K DIC,DIE,DA,X,Y
  1. S DA(1)=ABMLOC
  1. S DIC="^ABMUXCLD(DA(1),1,"
  1. S DIC(0)="AEQLV"
  1. D ^DIC
  1. Q:+Y<0
  1. Q:$D(DTOUT)!$D(DUOUT)
  1. S ABMEFFDT=+Y
  1. ;everything else
  1. K DIC,DIE,DA,X,Y
  1. S DA(1)=ABMLOC
  1. S DIE="^ABMUXCLD(DA(1),1,"
  1. S DA=ABMEFFDT
  1. S DR=".03;.04;.02"
  1. D ^DIE
  1. G DISP
  1. Q