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

ABMURSEL.m

Go to the documentation of this file.
  1. ABMURSEL ; IHS/SD/SDR - UFMS Report selection ;
  1. ;;2.6;IHS Third Party Billing;**1**;NOV 12, 2009
  1. ;
  1. ; IHS/SD/SDR - abm*2.6*1 - NOHEAT - Removed open/reopened status from report.
  1. ; It causes errors or skews the averages on the bottom if the sessions aren't
  1. ; closed. Will now only report closed/transmitted/reconciled sessions.
  1. ;
  1. SEL K DIC,DIR,ABMY
  1. S U="^"
  1. S ABMY("X")="W $$SDT^ABMDUTL(X)"
  1. I $D(ABM("POS")) S ABMY("POS")=ABM("POS")
  1. I $D(ABM("SSTAT")) M ABMY("SSTAT")=ABM("SSTAT")
  1. ;
  1. LOOP ;
  1. ; Display current exclusion parameters
  1. G XIT:$D(DUOUT)!$D(DTOUT)!$D(DIROUT)
  1. W !!?3,"EXCLUSION PARAMETERS Currently in Effect for RESTRICTING the EXPORT to:",!?3,"======================================================================="
  1. W !?3,"- Users..............:"
  1. I '$D(ABMY("USER")) W " ALL"
  1. E D
  1. .S ABMU=0,ABMSFLG=0
  1. .F S ABMU=$O(ABMY("USER",ABMU)) Q:+ABMU=0 D
  1. ..I ABMSFLG=1 W !
  1. ..W ?26,$P($G(^VA(200,ABMU,0)),U)
  1. ..S ABMSFLG=1
  1. I $D(ABMY("DT")) W !?3,"- Date Range.........: "
  1. I S X=ABMY("DT",1) X ABMY("X") W " to: " S X=ABMY("DT",2) X ABMY("X")
  1. I $D(ABMY("POS")) W !?3,"- POS Claims.........: ",$S(ABMY("POS")=1:"Included",1:"Excluded")
  1. S ABMSTAT="",ABMSFLG=0
  1. F S ABMSTAT=$O(ABMY("SSTAT",ABMSTAT)) Q:ABMSTAT="" D Q:ABMSTAT="A"
  1. .W !?3,$S(ABMSFLG=0:"- Session status.....: ",1:"")
  1. .I ABMSTAT="A" W:ABMSFLG=1 ?26 W "ALL"
  1. .;I ABMSTAT="O" W:ABMSFLG=1 ?26 W "OPEN" ;abm*2.6*1
  1. .I ABMSTAT="C" W:ABMSFLG=1 ?26 W "CLOSED"
  1. .I ABMSTAT="R" W:ABMSFLG=1 ?26 W "RECONCILED"
  1. .I ABMSTAT="T" W:ABMSFLG=1 ?26 W "TRANSMITTED"
  1. .;I ABMSTAT="S" W:ABMSFLG=1 ?26 W "REOPENED" ;abm*2.6*1
  1. .S ABMSFLG=1
  1. PARM ;
  1. ; Choose additional exclusion parameters
  1. K DIR
  1. S DIR(0)="SO^1:DATE RANGE;2:USERS;3:POS CLAIMS;4:SESSION STATUS"
  1. S DIR("A")="Select ONE or MORE of the above EXCLUSION PARAMETERS"
  1. S DIR("?")="The report can be restricted to one or more of the listed parameters. A parameter can be removed by reselecting it and making a null entry."
  1. D ^DIR
  1. K DIR
  1. G XIT:$D(DIRUT)!$D(DIROUT)
  1. D @($S(Y=1:"DT",Y=2:"USER",Y=3:"POS",Y=4:"STAT")_"^ABMURSL1") G LOOP
  1. XIT ;
  1. G XIT2:$D(DIROUT)!$D(DTOUT)!$D(DUOUT)
  1. W !
  1. ;start old code abm*2.6*1 NOHEAT
  1. ;K DIR
  1. ;S DIR(0)="Y"
  1. ;S DIR("A")="Print Summary screen only"
  1. ;S DIR("B")="N"
  1. ;S DIR("?")="By selecting NO both a summary and detail will print. If you select YES it will print the summary page ONLY"
  1. ;D ^DIR
  1. ;I '$D(DIROUT)&('$D(DIRUT)) S ABMY("SUM")=Y
  1. ;end old code abm*2.6*1
  1. S ABMY("SUM")=1 ;always summary for now ;abm*2.6*1 NO HEAT
  1. ;
  1. XIT2 ;
  1. K ABMY("I"),ABMY("X"),DIR
  1. Q