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

BLRDOSE.m

Go to the documentation of this file.
  1. BLRDOSE ; IHS/OIT/MKK - EXECUTE CODE FOR DOSE ONLY ; [ 12/19/2005 12:35 PM ]
  1. ;;5.2;LR;**1021**;Jul 27, 2006
  1. ;;
  1. ;; Cloned from DOSE^LREXECU and modified for Dose ONLY.
  1. EP ;
  1. W !!,$C(7),$C(7),$C(7),!
  1. W "Run from Label",!!
  1. Q
  1. ;;
  1. DOSE ;EP - DOSE/DRAW TIMES
  1. S %DT("A")="Enter the last dose time: ",%DT="AT" D ^%DT S LRDOSE=Y
  1. I Y<1 W !,"Time unknown" S %=2 D YN^DICN S:%=1 LRDOSE="UNKNOWN" G:%'=1 DOSE
  1. I Y>1,Y'["." W !,"You must enter a time, e.g. T@6AM" G DOSE
  1. I LRDOSE["." S Y=LRDOSE D DD^LRX S LRDOSE=Y
  1. S LRCCOM="~Last dose: "_LRDOSE
  1. W !,LRCCOM
  1. W !,"OK" S %=1 D YN^DICN G DOSE:%'=1
  1. K LRDOSE,%DT
  1. Q