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

ORXTABS2.m

Go to the documentation of this file.
  1. ORXTABS2 ; SLC/PKS - Edit calls, tab parameters preferences. [10/2/00 3:53pm]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**9,47,84**;Dec 17, 1997
  1. ;
  1. ; Individual preferences edit/input code; called from ORXTABS1.
  1. ;
  1. ; NOTES: Most ORX* variables used herein are NEW'd in calling
  1. ; routines. Tags herein (except "INPUT") must match the
  1. ; name of a piece entry in the TABS tag of the ORXTABS
  1. ; routine and return:
  1. ;
  1. ; 1 - A new value entered or selected by the user,
  1. ; 2 - A null string,
  1. ; 3 - The string "*Invalid*" - to repeat due to invalid entry,
  1. ; 4 - The "^" character, indicating user's cancel action.
  1. ;
  1. ; If there are dissimilar types of values - to be obtained from
  1. ; the user - which utilize the same tag name, such differences
  1. ; must be handled within the individual tags herein by, for
  1. ; instance, examining the ORXPDIR variable which will reveal
  1. ; the current TABS line being processed.
  1. ;
  1. ; New variable used herein:
  1. ;
  1. ; ORXPASS = Holds ORXNOW original passed value.
  1. ;
  1. ; Important variables used or assigned by calling routines:
  1. ;
  1. ; ORXPDIR = Current tab's "prompt" or display string.
  1. ; ORXPDIS = Current value's "prompt" or display string.
  1. ; ORXNOW = Current value of setting, passed in each call.
  1. ;
  1. ; Actual code for these tags generally resides in a subsequent
  1. ; ORXTABSx routine, to keep this routine as a driver and with
  1. ; size limits. The tags in the subsequent routines use the
  1. ; same names for convenience.
  1. ;
  1. Q
  1. ;
  1. INPUT ; Call DIR, return user input - used by various tags called herein.
  1. ;
  1. W !! ; Spacing for screen display.
  1. ;
  1. ; Assign default promtp, if any:
  1. S:($D(ORXNOW)&(ORXNOW'="")) DIR("B")=ORXNOW
  1. D ^DIR ; FM call for user input.
  1. S ORXNOW=Y ; Assign input to ORXNOW.
  1. K DIR,X,Y ; Clean up each time.
  1. ;
  1. Q
  1. ;
  1. BEG(ORXNOW) ; Beginning date of date range.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D BEG^ORXTABS3 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. END(ORXNOW) ; Ending date of date range.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D END^ORXTABS3 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. MAX(ORXNOW) ; Maximum number of items to display.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D MAX^ORXTABS3 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. AUTHOR(ORXNOW) ; Select note author.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D AUTHOR^ORXTABS3 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. STATUS(ORXNOW) ; Status.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D STATUS^ORXTABS4(ORXPDIR) ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. TYPE(ORXNOW) ; Type.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D TYPE^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. DISPGRP(ORXNOW) ; Display Group..
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D DISPGRP^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. OUTPT(ORXNOW) ; Outpatient or Inpatient Meds.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D OUTPT^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. SUBJECT(ORXNOW) ; Subject.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D SUBJECT^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. FORMAT(ORXNOW) ; Format.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D FORMAT^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. COMMENTS(ORXNOW) ; Comments On/Off.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D COMMENTS^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. SERVICE(ORXNOW) ; Service.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D SERVICE^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;
  1. OCCLIM(ORXNOW) ; Occlim.
  1. ;
  1. N ORXPASS
  1. S ORXPASS=ORXNOW
  1. ;
  1. ; Use loop to account for invalid entries:
  1. F D Q:ORXNOW'="*Invalid*"
  1. .S ORXNOW=ORXPASS ; Reset each time.
  1. .D OCCLIM^ORXTABS5 ; Call input dialogue.
  1. ;
  1. Q ORXNOW ; Return resulting value.
  1. ;