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

HLCSTCPA.m

Go to the documentation of this file.
  1. HLCSTCPA ;OIFO-O/RJH - (TCP/IP) VMS ;07/10/2003 10:12
  1. ;;1.6;HEALTH LEVEL SEVEN;**84**;Oct 13, 1995
  1. ;
  1. ; 1. port number is input from VMS HLSxxxxDSM.COM or HLSxxxxCACHE.COM
  1. ; file, where xxxx is port number.
  1. ; 2. find the ien of #870(logical link file) for the HL7 multi-listener
  1. ; 3. call the appropriate entry:
  1. ; for Cache: CACHEVMS^HLCSTCP(ien of #870)
  1. ; for DSM: EN^HLCSTCP
  1. Q
  1. PORT ;
  1. ;HLIEN870: ien in #870 (logical link file)
  1. ;HLPORT: port number of multi-listener
  1. ;HLPRTS: port number in entry to be tested
  1. ;input of DSM: % = device^port number of multi-listener
  1. ;input of Cache: port number of TCPIP
  1. ;
  1. I ^%ZOSF("OS")["OpenM" D
  1. . S HLPORT=$ZF("GETSYM","PORT")
  1. I ^%ZOSF("OS")["DSM" D
  1. . S HLPORT=$P(%,"^",2)
  1. I 'HLPORT D ^%ZTER Q
  1. S HLIEN870=0
  1. F S HLIEN870=$O(^HLCS(870,"E","M",HLIEN870)) Q:'HLIEN870 D Q:(HLPRTS=HLPORT)
  1. . S HLPRTS=$P(^HLCS(870,HLIEN870,400),"^",2)
  1. I 'HLIEN870 D ^%ZTER Q
  1. ;
  1. K HLPORT,HLPRTS
  1. ;
  1. ;for Cache/VMS
  1. I ^%ZOSF("OS")["OpenM" D Q
  1. .D CACHEVMS^HLCSTCP(HLIEN870)
  1. ;
  1. ;for DSM
  1. I ^%ZOSF("OS")["DSM" D Q
  1. . S $P(%,"^",2)=HLIEN870 ;set % = device^ien of #870
  1. . K HLIEN870
  1. . D EN^HLCSTCP
  1. ;
  1. D ^%ZTER
  1. Q