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

BDMDCTE.m

Go to the documentation of this file.
  1. BDMDCTE ; IHS/CMI/LAB - UTILITY TO SET BEGINNING AND ENDING DATES ;
  1. ;;2.0;DIABETES MANAGEMENT SYSTEM;**8**;JUN 14, 2007;Build 53
  1. ;UTILITY TO SET BEGINNING AND ENDING DATES
  1. ;
  1. DATES ;EP;TO SET DATES
  1. S DIR(0)="DO"
  1. S DIR("A")="Beginning Date"
  1. S DIR("?")="Enter the earliest date you want to include."
  1. W !
  1. D DIR^BDMFDIC
  1. I Y<1 S BDMQUIT="" Q
  1. K BDMQUIT
  1. S BDMBEGIN=+Y
  1. S BDMEND=""
  1. I BDMBEGIN D Q:$D(BDMQUIT)
  1. .S DIR(0)="DO"
  1. .S DIR("A")="Ending Date..."
  1. .S DIR("?",1)="Enter the latest date you want to include."
  1. .S DIR("?")="Do not enter any date if you want to include all dates."
  1. .D DIR^BDMFDIC
  1. .I $E(X)[U S BDMQUIT="" Q
  1. .K BDMQUIT
  1. .S BDMEND=$S('Y:DT,1:Y)
  1. Q