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

VAFCMSG5.m

Go to the documentation of this file.
  1. VAFCMSG5 ;ALB/JRP - MESSAGE BUILDER UTILITIES;12-SEP-1996
  1. ;;5.3;Registration;**91**;Jun 06, 1996
  1. ;
  1. GETSRVR(EVNTTYPE) ;Get pointer to HL7 Server Protocol for given event type
  1. ;
  1. ;Input : EVNTTYPE - Event type to build list for (Defaults to A08)
  1. ; Currently supported events:
  1. ; A04, A08, A28
  1. ;Output : SRVRPTR - Pointer to HL7 Server Protocol (value for HLEID)
  1. ;Notes : Zero (0) will be returned if the event does not have an
  1. ; associated HL7 Server Protocol or the HL7 Server Protocol
  1. ; can not be found in the PROTOCOL file (#101)
  1. ;
  1. ;Check input
  1. S EVNTTYPE=$G(EVNTTYPE)
  1. S:(EVNTTYPE="") EVNTTYPE="A08"
  1. ;Declare variables
  1. N SRVRNAME,X,OK
  1. ;Check for supported event
  1. S OK=0
  1. F X="A04","A08","A28" I X=EVNTTYPE S OK=1 Q
  1. Q:('OK) 0
  1. ;Determine name of HL7 Server Protocol
  1. S SRVRNAME="VAFC ADT-"_EVNTTYPE_" SERVER"
  1. ;Return pointer to HL7 Server Prototol
  1. Q +$O(^ORD(101,"B",SRVRNAME,0))
  1. ;
  1. NOW() ;Function call that returns the current date/time in FileMan format
  1. ;
  1. ;Input : None
  1. ;Output : Current date/time in FileMan format
  1. ;
  1. ;Declare variables
  1. N %,%H,%I,X,Y
  1. ;Get current date/time
  1. D NOW^%DTC
  1. ;Return current date/time
  1. Q %