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

ANSDATE.m

Go to the documentation of this file.
  1. ANSDATE ;IHS/OIRM/DSD/CSC - UTILITY TO SET BEGINNING AND ENDING DATES; [ 02/25/98 10:32 AM ]
  1. ;;3.0;NURSING PATIENT ACUITY;;APR 01, 1996
  1. ;UTILITY TO SET BEGINNING AND ENDING DATES
  1. ;
  1. DATES ;EP;TO SET DATES
  1. S DIR(0)="DO",DIR("A")="Beginning Date",DIR("?",1)="Enter the earliest date you wish to include.",DIR("?")="Do not enter any date if you want to include all dates."
  1. D DIR^ANSDIC
  1. I $E(X)[U S ANSQUIT="" Q
  1. K ANSQUIT
  1. S ANSBEGIN=+Y,ANSEND=""
  1. I ANSBEGIN D Q:$D(ANSQUIT)
  1. .S DIR(0)="DO",DIR("A")="Ending Date...",DIR("?",1)="Enter the latest date you wish to include.",DIR("?")="Do not enter any date if you want to include all dates."
  1. .D DIR^ANSDIC
  1. .I $E(X)[U S ANSQUIT="" Q
  1. .K ANSQUIT
  1. .S ANSEND=$S(Y="":DT,1:Y)
  1. Q