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

INHVPMN.m

Go to the documentation of this file.
  1. INHVPMN ;JKB,KAC,DJL,CHEM ; 17 Aug 1999 16:54:18; PMN Receiver - Determine destination for inbound msg
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;CHCS TOOLS_450; GEN 3; 26-SEP-1996
  1. ;COPYRIGHT 1995 SAIC
  1. Q
  1. ;
  1. DEST ; Determine destination for an inbound DBSS 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.
  1. ;
  1. ; Input:
  1. ; INTYP - (req) msg type
  1. ; INEVN - (req) event type
  1. ;
  1. ; Variables:
  1. ; X - scratch
  1. ;
  1. ; Output:
  1. ; INDST - INTERFACE DESTINATION name
  1. ; INDSTP - INTERFACE DESTINATION ptr
  1. ; Undefined if destination determination fails.
  1. ; INDEST - array containing valid DBSS inbound destinations based
  1. ; on sending application
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ;
  1. K INDSTP
  1. N X
  1. ;
  1. ; Build INDEST array
  1. D PMNDST
  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. PMNDST ; Build array containing valid inbound PMN destinations.
  1. ;
  1. ; Output:
  1. ; INDEST - array containing valid PMN inbound destinations
  1. ; Format: INDEST(msg-type_event-type)=
  1. ; INTERFACE DESTINATION name for inbound msg
  1. ;
  1. Q:$G(INDEST)="PMN" ; array already exists?
  1. K INDEST
  1. S INDEST="PMN"
  1. S INDEST("PMNA28")="HL DG ADD PERSON - IN (PMN)"
  1. Q
  1. ;