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

INHVCRL4.m

Go to the documentation of this file.
  1. INHVCRL4 ;JKB,KAC ; 20 Oct 1999 18:38 ; Logon Server (LoS) - Determine destination for inbound msg
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;
  1. Q
  1. DEST2 ;Entry point From Background Message
  1. ;Anyone can log in flag
  1. N INSEND
  1. S INANYONE=1
  1. S INSEND=$P(INMSH,INDELIM,3)
  1. S $P(INSEND,"\")="CIW",$P(INMSH,INDELIM,3)=INSEND
  1. D DEST
  1. Q
  1. DEST3 ;Entry point From Background Message
  1. ;Anyone can log in flag
  1. N INSEND
  1. S INANYONE=1
  1. S INSEND=$P(INMSH,INDELIM,3)
  1. S $P(INSEND,"\")="BCC",$P(INMSH,INDELIM,3)=INSEND
  1. D DEST
  1. Q
  1. DEST ; Determine destination for an inbound logon message.
  1. ;
  1. ; Called by:
  1. ; - eXec'd from IN^INHUSEN where the context includes the input vars
  1. ; & expects the output vars documented below. The code that is
  1. ; eXec'd is set in the Logon Server (LoS), INHVCRL (file #4004,
  1. ; node #8).
  1. ;
  1. ; Input:
  1. ; ING - (req) var name for inbound data array
  1. ; INTYP - (req) msg type
  1. ; INEVN - (req) event type
  1. ; INMSH - (req) MSH segment
  1. ; INDELIM - (req) segment delimiter
  1. ;
  1. ; Variables:
  1. ; X - scratch
  1. ; INBLDST - entry reference to build array of valid LoS inbound
  1. ; destinations based on sending application
  1. ; INMESSID - message control ID (MSH:10)
  1. ; INRECV - receiving app (MSH:5) - Not currently used.
  1. ; INSEND - sending app (MSH:3)
  1. ;
  1. ; Output:
  1. ; INDST - INTERFACE DESTINATION name
  1. ; INDSTP - INTERFACE DESTINATION ptr
  1. ; Undefined if destination determination fails.
  1. ; INDEST - array containing valid LoS inbound destinations based
  1. ; on sending application
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ; INERR - array containing error msg used to log an error
  1. ; Unaltered if destination determination succeeds.
  1. ;
  1. K INDSTP
  1. N INBLDST,INMESSID,INRECV,INSEND,X
  1. S INSEND=$P(INMSH,INDELIM,3),INRECV=$P(INMSH,INDELIM,5),INMESSID=$P(INMSH,INDELIM,10)
  1. ;
  1. ; Build INDEST array
  1. S INBLDST=$P(INSEND,"\")_"BLD"
  1. I '$L($TEXT(@INBLDST)) S INERR="Message "_INMESSID_" contains unsupported sending application: '"_INSEND_"'" Q
  1. S:INSEND["DDSA" INANYONE=1 ; DDSA
  1. D @INBLDST
  1. ;
  1. S X=$G(INTYP)_$G(INEVN)
  1. I $D(INDEST(X)) S INDST=INDEST(X) I $D(^INRHD("B",INDST)) S INDSTP=$O(^(INDST,0))
  1. Q
  1. ;
  1. DDSABLD ;DDSA
  1. PWSBLD ; Build array containing valid inbound PWS destinations for LoS.
  1. ;
  1. ; Output:
  1. ; INDEST - array containing valid PWS inbound destinations for LoS
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ;
  1. Q:$G(INDEST)="PWS" ; array already exists?
  1. K INDEST
  1. S INDEST="PWS"
  1. S INDEST("ZILZ01")="HL PWS LOGON REQUEST FROM REMOTE SYSTEM"
  1. Q
  1. CIWBLD ; Build array containing valid inbound PWS destinations for LoS.
  1. ;
  1. ; Output:
  1. ; INDEST - array containing valid CIW inbound destinations for LoS
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ;
  1. Q:$G(INDEST)="CIW" ; array already exists?
  1. K INDEST
  1. S INDEST="CIW"
  1. S INDEST("ZILZ01")="HL CIW LOGON REQUEST FROM REMOTE SYSTEM"
  1. Q
  1. ;
  1. BCCBLD ; Build array containing valid inbound BCC destinations for LoS.
  1. ;
  1. ; Output:
  1. ; INDEST - array containing valid PWS inbound destinations for LoS
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ;
  1. Q:$G(INDEST)="BCC" ; array already exists?
  1. K INDEST
  1. S INDEST="BCC"
  1. S INDEST("ZILZ01")="HL BCC LOGON REQUEST FROM REMOTE SYSTEM"
  1. Q