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

ABMDRCO.m

Go to the documentation of this file.
  1. ABMDRCO ; IHS/ASDST/DMJ - PRINT LIST OF CO & DEPEN VISITS ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Original;TMD;02/07/96 12:22 PM
  1. ;This report lists outpatient and inpatients visits to a
  1. ;facility by commissioned officers and their dependents
  1. ;
  1. W !!,$C(7),$C(7),"THIS REPORT MUST BE PRINTED ON 132 COLUMN PAPER OR ON A PRINTER THAT IS",!,"SET UP FOR CONDENSED PRINT!!!",!,"IF YOU DO NOT HAVE SUCH A PRINTER AVAILABLE - SEE YOUR SITE MANAGER.",!
  1. BDATE K ABMD S %DT="AEPQ",%DT("A")="Select beginning date: ",X="" D ^%DT
  1. G END:Y=-1 S ABMD("BDT")=Y
  1. EDATE S %DT="AEPQ",%DT("A")="Select ending date: ",X="" D ^%DT
  1. G END:Y=-1 S ABMD("EDT")=Y
  1. ;
  1. VST S DIR(0)="S^1:Outpatient Visits Only;2:Inpatient Visits Only;3:Dental Visits Only;4:All"
  1. S DIR("?")="Enter either 1, 2, 3, or 4 for the report desired."
  1. S DIR("A")="Select (1, 2, 3, or 4)"
  1. S DIR("B")=4
  1. D ^DIR K DIR
  1. I $D(DUOUT)!($D(DIRUT))!($D(DIROUT))!($D(DTOUT)) G END
  1. I Y=1!(Y=4) S ABMD("TOP")=""
  1. I Y=2!(Y=4) S ABMD("TIP")=""
  1. I Y=3!(Y=4) S ABMD("TDEN")=""
  1. ;
  1. S ABMD("$J")=DUZ_"-"_$P($H,",",1)_"-"_$P($H,",",2)
  1. D INIT^ABMDRCO1
  1. S ABMQ("RC")="MAIN^ABMDRCO1",ABMQ("RP")="^ABMDRCO2",ABMQ("NS")="ABMD",ABMQ("RX")="END^ABMDRCO2"
  1. D ^ABMDRDBQ
  1. Q
  1. END ;CLEAN UP AND QUIT
  1. K ABMD,ABMDSTOP Q