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

DVBANT21.m

Go to the documentation of this file.
  1. DVBANT21 ;ALB/JLU;pending 21 day certificate;9/15/94
  1. ;;2.7;AMIE;;Apr 10, 1995
  1. ;
  1. EN ;the main entry point
  1. D HDR
  1. S DVBTYPE=$$TYPE()
  1. I DVBTYPE'=1 DO
  1. .I DVBTYPE="B" D BOTH
  1. .I DVBTYPE="N" D NOTICE
  1. .I DVBTYPE="C" D CERTIF
  1. .S L=0,DIC="^DVB(396,",(FR,TO)=""
  1. .D EN1^DIP
  1. .K L,DIC,FR,TO,BY,FLDS
  1. .Q
  1. D KILL
  1. Q
  1. ;
  1. KILL K DVBTYPE,DUOUT,DTOUT
  1. Q
  1. ;
  1. HDR ;issues an initial form feed
  1. S VAR(1,0)="0,0,0,0,1^"
  1. D WR^DVBAUTL4("VAR")
  1. K VAR
  1. Q
  1. ;
  1. TYPE() ;gets from the user what type of report they are interested in.
  1. N DVBOUT
  1. S DIR(0)="SM^N:Notice of Discharge;C:21 Day Certificate;B:Both"
  1. S DIR("A")="Select the desired report"
  1. D ^DIR
  1. K DIR
  1. I $D(DUOUT)!($D(DTOUT)) S DVBOUT=1
  1. I Y="" S DVBOUT=1
  1. I "NCB"[Y S DVBOUT=Y
  1. E S DVBOUT=1
  1. Q DVBOUT
  1. ;
  1. NOTICE ;sets up the templates for the notice of discharge reports.
  1. S (FLDS,BY)="[DVBA NOTICE OF DISCHARGE]"
  1. Q
  1. ;
  1. BOTH ;sets up the templates for both the notice of discharge and 21 day cert
  1. S (FLDS,BY)="[DVBA NOT/DIS-21 DAY CERT CHECK]"
  1. Q
  1. ;
  1. CERTIF ;sets up the templates for the 21 day certificate
  1. S (FLDS,BY)="[DVBA 21 DAY CERT]"
  1. Q