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

IBEMTF1.m

Go to the documentation of this file.
  1. IBEMTF1 ;ALB/CPM - FLAG STOP CODES, DISPOSITIONS, AND CLINICS (CON'T.) ; 23-JUL-93
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. REV ; Review selected entries and de-select if necessary.
  1. W !!,"You have selected ",IBNUM," ",$P(IBINFO,";",3),"."
  1. S DIR(0)="Y",DIR("A")="Would you like to review these selections",DIR("?")="^D HREV^IBEMTF1"
  1. D ^DIR K DIR I 'Y!($D(DIRUT))!($D(DUOUT)) G REVQ
  1. ;
  1. ; - list selections and ask if user would like to de-select.
  1. D LIST W !
  1. S DIR(0)="Y",DIR("A")="Would you like to de-select any entries"
  1. S DIR("?")="Enter 'Y' to de-select entries, 'N' to continue, or '^' to quit."
  1. D ^DIR K DIR I 'Y!($D(DIRUT))!($D(DUOUT)) G REVQ
  1. ;
  1. ; - allow de-selection and pull entries from the list.
  1. S IBHIT=0 F D Q:Y<0
  1. .S DIC=$P(IBINFO,";",5),DIC(0)="QEAMZ"
  1. .S DIC("A")="De-select "_$S(IBHIT:"Next ",1:"")_$P(IBINFO,";",4)_": "
  1. .S:$P(IBINFO,";",6)]"" DIC("S")=$P(IBINFO,";",6)
  1. .D ^DIC K DIC Q:Y<0 S IBHIT=1
  1. .I '$D(^TMP("IBEMTF",$J,+Y)) W !,"Please note that ",Y(0,0)," is not currently selected."
  1. .E K ^TMP("IBEMTF",$J,+Y) S IBNUM=IBNUM-1
  1. W !!,"You have selected a total of ",IBNUM," ",$P(IBINFO,";",$S(IBNUM=1:7,1:3)),"."
  1. REVQ S:$D(DIRUT)!($D(DUOUT)) IBQ=1
  1. Q
  1. ;
  1. FILE ; File all selected entries.
  1. N IBI,IBIN,IBALR
  1. S IBI=0 F S IBI=$O(^TMP("IBEMTF",$J,IBI)) Q:'IBI S IBIN=^(IBI) D
  1. .K DD,DO,DIC,DR
  1. .S DIC=$P(IBINFO,";",8),DIC(0)="",X=IBI,DLAYGO=$P(IBINFO,";",9)
  1. .;
  1. .; - has this entry already been filed for this date?
  1. .S IBALR=$O(@(DIC_"""AIVDT"","_IBI_","_-IBDAT_",0)"))
  1. .;
  1. .; - add new entry if not yet on file for the specified date
  1. .I 'IBALR D FILE^DICN I Y<0 W !,"Unable to file ",IBIN,"..",! Q
  1. .S DIE=$P(IBINFO,";",8),DA=$S(IBALR:IBALR,1:+Y),DR=".02////"_IBDAT_";.03////"_IBFILE
  1. .D ^DIE K DA,DR,DIE W "."
  1. W " done!"
  1. Q
  1. ;
  1. LIST ; List all selected entries.
  1. W ! S I=0 F S I=$O(^TMP("IBEMTF",$J,I)) Q:'I W:$X>40 ! W:$X>2 ?40 W ^(I)
  1. Q
  1. ;
  1. HACT ; Help for the Billing action prompt.
  1. W !!,"Please enter:"
  1. W !," 'Y' to ignore Means Test billing for ",$S(IBNUM=1:"this",1:"these")," ",$P(IBINFO,";",$S(IBNUM=1:7,1:3))
  1. W !," 'N' to activate Means Test billing for ",$S(IBNUM=1:"this",1:"these")," ",$P(IBINFO,";",$S(IBNUM=1:7,1:3))
  1. W !," '^' to quit this option."
  1. Q
  1. ;
  1. HSEL ; Help for the Billing characteristic prompt.
  1. W !!,"Please enter:"
  1. W !," 'S' to ignore/activate Means Test Billing for Stop Codes"
  1. W !," 'D' to ignore/activate Means Test Billing for Dispositions"
  1. W !," 'C' to ignore/activate Means Test Billing for Clinics"
  1. W !," '^' to quit this option."
  1. Q
  1. ;
  1. HREV ; Help for the Request to Review prompt.
  1. W !!,"Enter 'Y' to review the selections, 'N' to continue, or '^' to quit."
  1. W !,"Please note that, if you choose to review the selections, you will have"
  1. W !,"the opportunity to de-select incorrect entries from the list."
  1. Q