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

ABMDTGRP.m

Go to the documentation of this file.
  1. ABMDTGRP ; IHS/ASDST/DMJ - Add/Edit Group Insurance ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;
  1. K DIC,ABM
  1. W ! S DIC="^AUTNEGRP(",DIC(0)="QEAML" D ^DIC
  1. Q:+Y<1!$D(DTOUT)!$D(DUOUT)
  1. S ABM("EGRP")=+Y
  1. I '$P(Y,U,3) W ! S DIE="^AUTNEGRP(",DA=+Y,DR=".01Modify GROUP NAME (if Desired): " D ^ABMDDIE Q:$D(Y)!$D(ABM("DIE-FAIL"))
  1. W !!?5,"NOTE: Some Insurers assign different Group Numbers based upon the",!?11,"particular type of visit (dental, outpatient, etc.) that",!?11,"occurred."
  1. W ! K DIR S DIR("B")="N",DIR(0)="Y",DIR("A")="Do the Group Numbers vary depending on Visit Type (Y/N)"
  1. S DIR("B")=$S($D(^AUTNEGRP(ABM("EGRP"),11)):"Y",1:"N") D ^DIR
  1. Q:$D(DUOUT)!$D(DTOUT) W !
  1. I Y=0 S DIE="^AUTNEGRP(",DA=ABM("EGRP"),DR=".02R~[5a] Group Number.....: " D ^ABMDDIE K ^AUTNEGRP(ABM("EGRP"),11) Q
  1. S DA=ABM("EGRP"),DIE="^AUTNEGRP(",DR="11" D ^ABMDDIE
  1. ;
  1. XIT K ABM,DIR,DR,DIE
  1. Q