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

DGMTLK.m

Go to the documentation of this file.
  1. DGMTLK ;ALB/RMO - Look-up a Means Test for a Patient ;28 MAY 1992 10:41 am
  1. ;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
  1. ;
  1. ; Input -- DFN Patient IEN
  1. ; DIC DIC variables as defined by FM ^DIC call
  1. ; DIC("A"), DIC("B"), DIC("S") are Optional
  1. ; Special Notes:
  1. ; - DIC(0) should NOT contain A, M or N for
  1. ; performance purposes
  1. ; - DIC("B") should be in internal format and will
  1. ; be converted to external format when displayed
  1. ; Output -- All variables as defined by FM ^DIC call
  1. ;
  1. EN ;Entry point to look-up a means test for a patient
  1. W !,$S($D(DIC("A")):DIC("A"),1:"Select DATE OF TEST: ") I $D(DIC("B")) S %=DIC("B") D DT^DGUTL K % W "// "
  1. R X:DTIME I '$T S DTOUT=1,Y=-1 G Q
  1. I X="",$D(DIC("B")) S X=DIC("B")
  1. S:X["^" DUOUT=1 I X["^"!(X="") S Y=-1 G Q
  1. I X["?" S D="ADFN"_DFN D IX^DIC K D G EN
  1. D ^DIC G EN:Y<0
  1. Q Q