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

HDISVAP.m

Go to the documentation of this file.
  1. HDISVAP ;ALB/RMO,BPFO/JRM - Application Programmer API(s); 2/11/05@9:10:00
  1. ;;1.0;HEALTH DATA & INFORMATICS;**2**;Feb 22, 2005
  1. ;
  1. NTRTMSG(HDISARYF,HDISARY) ;New Term Rapid Turnaround (NTRT) Message
  1. ; Input -- HDISARYF Return Text in an Array Flag (Optional- Default 0)
  1. ; 1=Yes and 0=No
  1. ; Output -- HDISARY If requested, an array containing the NTRT Message is returned otherwise
  1. ; the message is diplayed on the screen. The Output variable is assumed
  1. ; to be Null when the API is invoked.
  1. N HDISLNE,HDISTXT
  1. F HDISLNE=1:1 S HDISTXT=$P($T(MSG+HDISLNE),";;",2) Q:HDISTXT="END" D
  1. . I $G(HDISARYF) D
  1. . . S HDISARY(HDISLNE)=HDISTXT
  1. . ELSE D
  1. . . W !?3,HDISTXT
  1. Q
  1. ;
  1. LOSVUID(CODE) ;Convert Lab's Organism Screen set of codes to VUID
  1. ; Input: Code - Code representing organism screen
  1. ;Output: VUID - VUID for input code
  1. ; NULL returned on bad input
  1. ; Notes: This API is only to be used to determine the VUID for the
  1. ; Organism Screen fields that a site may add to the Organism
  1. ; multiple (subfile #63.3) in the Microbiology multiple
  1. ; (subfile #63.05) of the Lab Data file (#63) via the option
  1. ; LRWU7 [Add a new internal name for an antibiotic]
  1. ;
  1. N RSLT
  1. S CODE=$G(CODE)
  1. S RSLT=$S(CODE="A":4500665,CODE="N":4500805,CODE="R":4500877,1:"")
  1. Q RSLT
  1. ;
  1. LOSCODE(VUID) ;Convert Lab's Organism Screen VUID to set of codes
  1. ;Input: VUID - VUID representing organism screen
  1. ;Output: Code - Code for input VUID
  1. ; NULL returned on bad input
  1. ; Notes: This API is only to be used to determine the code for the
  1. ; Organism Screen fields that a site may add to the Organism
  1. ; multiple (subfile #63.3) in the Microbiology multiple
  1. ; (subfile #63.05) of the Lab Data file (#63) via the option
  1. ; LRWU7 [Add a new internal name for an antibiotic]
  1. ;
  1. N RSLT
  1. S VUID=$G(VUID)
  1. S RSLT=$S(VUID=4500665:"A",VUID=4500805:"N",VUID=4500877:"R",1:"")
  1. Q RSLT
  1. ;
  1. MSG ;NTRT message text
  1. ;;
  1. ;;In support of national standardization of the contents of this file,
  1. ;;local site addition and modification functions are no longer available.
  1. ;;If you wish to request a new term or modify an existing term, please
  1. ;;refer to the New Term Rapid Turnaround (NTRT) web site located at
  1. ;;http://vista.med.va.gov/ntrt/. If you have any questions regarding this
  1. ;;new term request process, please contact the ERT NTRT Coordinator
  1. ;;via e-mail at VHA OI SDD HDS NTRT.
  1. ;;
  1. ;;END