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

INLIOIN.m

Go to the documentation of this file.
  1. INLIOIN ;KAC ; 20 Sep 1999 05:51 ; GIS Lab Interoperability - Support Utilities
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;
  1. Q
  1. ;
  1. DEST ; Determine destination for an inbound response messages
  1. ;
  1. ; Called by:
  1. ; - eXec'd from IN^INHUSEN where the context includes the input vars
  1. ; & expects the output vars documented below - called by
  1. ; querying system receiver
  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. ; CPX - scratch
  1. ; INBLDST - entry reference to build array of valid 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 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,CPX
  1. S INSEND=$P(INMSH,INDELIM,3),INRECV=$P(INMSH,INDELIM,5),INMESSID=$P(INMSH,INDELIM,10)
  1. ;
  1. ; Build INDEST array
  1. D LIO
  1. ;
  1. S CPX=$G(INTYP)_$G(INEVN)
  1. I $D(INDEST(CPX)) S INDST=INDEST(CPX) I $D(^INRHD("B",INDST)) S INDSTP=$O(^(INDST,0))
  1. Q
  1. ;
  1. LIO ; Build array containing valid inbound GIS LIO destinations.
  1. ; Output:
  1. ; INDEST - array containing valid inbound destinations
  1. ; Format: INDEST(msg-type_event-type) = INTERFACE DESTINATION name for inbound msg
  1. Q:$G(INDEST)="LIO" ; array already exists
  1. K INDEST
  1. S INDEST="LIO"
  1. ;network
  1. S INDEST("ACKACK")="INCOMING ACK"
  1. S INDEST("ORMO01")="HL LAB LRSL ACCESSION"
  1. S INDEST("ORRO02")="HL LAB LRSL ACK"
  1. S INDEST("ORUR01")="HL LAB INT RESULTS"
  1. Q
  1. ;
  1. ;