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

SROPSEL.m

Go to the documentation of this file.
  1. SROPSEL ;B'HAM ISC/MAM - SELECT CASE ; [ 01/10/04 2:22 PM ]
  1. ;;3.0; Surgery ;**121,125**;24 Jun 93
  1. D ID Q:SRSOUT=1
  1. S DFN=+Y D DEM^VADPT
  1. Q
  1. ID S SRNOPE=0,SRSEL=1 K DIR
  1. S DIR("?",1)=" To lookup by patient, enter patient name or patient ID. To lookup by"
  1. S DIR("?",2)=" surgical case/assessment number, enter the number preceded by ""#"","
  1. S DIR("?")=" e.g., for case 12345 enter ""#12345"" (no spaces)."
  1. S DIR("A")="Select Patient: ",DIR(0)="FOA" D ^DIR K DIR
  1. I $D(DTOUT)!$D(DUOUT)!(Y="") S SRSOUT=1 Q
  1. I $E(X)="#" S Y=$E(X,2,$L(X)),SRSEL=2 D G:SRNOPE ID Q
  1. .I 'Y S SRSOUT=1 Q
  1. .S SROP=Y,Y=$G(^SRF(Y,0)) I '+Y W !!," "_SROP_" is an invalid entry. Please try again." W ! S SRNOPE=1 Q
  1. K DIC S X=Y,DIC=2,DIC(0)="QEM" D ^DIC K DIC
  1. G:Y<0 ID I $D(DUOUT)!$D(DIRUT) S SRSOUT=1
  1. Q