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

INHPSA2.m

Go to the documentation of this file.
  1. INHPSA2 ; FRW ; 18 Aug 1999 09:49:54; Standard post processing for applications
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;
  1. Q
  1. ;
  1. POST(INTER,INEXE) ;post-processing logic - called by MESS^INHPSA
  1. ;
  1. ;If program logic defined execute and quit
  1. I $L($G(INEXE)) X INEXE Q
  1. ;Quit if application is not supported
  1. Q:'$$APPL(INTER)
  1. ;Display message
  1. D MSG(INTER)
  1. ;Execute post-processing module
  1. D @INTER
  1. Q
  1. ;
  1. ;
  1. MSG(INTER) ;Display post processing message
  1. ;
  1. N I,X
  1. ;Loop through data (comment lines) for the application
  1. F I=0:1 S X=$P($T(@INTER+(I+1)),";;",2,999) Q:'$L(X) D:'I T^INHMG1 W:'I ! D T^INHMG1 W X
  1. D:I T^INHMG1 W:I !
  1. ;
  1. Q
  1. ;
  1. BPC(INTER,INDAT,INPAR,INBPCPAR) ; Post-processing for all Background Process Control file entries for one interface (INTER)
  1. ; Input:
  1. ; INTER - (req) interface application to post-process
  1. ; INDAT - (pbr) data array of control file records for application
  1. ; INPAR - (pbr) array of parameters
  1. ; INBPCPAR - (pbr) array of BPC parameters
  1. ;
  1. ; Output:
  1. ; INERR - flag - 0 = no errors
  1. ; 1 = errors encountered
  1. ;
  1. N DA,DIC,X,Y,DIE,DR,INFLDNUM,INNAME,INREC
  1. S INREC=0
  1. ; Loop thru BPC entries associated w/ this INTERface
  1. F S INREC=$O(INDAT(INTER,4004,INREC)) Q:'INREC D
  1. . S (INNAME,X)=$P($G(INDAT(INTER,4004,INREC)),U,1),DIC=4004,DIC(0)="",Y=$$DIC^INHSYS05(DIC,X,"",DIC(0)),DA=+Y
  1. . I INNAME'=$P(Y,U,2) D T^INHMG1 W "ERROR: Wanted background process ",INNAME," but found ",$P(Y,U,2)," (",+Y,")." S INERR=1 Q
  1. . I DA<0 D T^INHMG1 W "ERROR: Background Process: ",INNAME," not found." S INERR=1 Q
  1. . Q:'$D(INBPCPAR)
  1. .; create DR string, looping thru fields in INBPCPAR
  1. . S (DR,INFLDNUM)=""
  1. . F S INFLDNUM=$O(INBPCPAR(INFLDNUM)) Q:'INFLDNUM D
  1. .. S:$L(DR) DR=DR_";" ; NOT 1st time
  1. .. S DR=DR_INFLDNUM_"///^ S X="_INBPCPAR(INFLDNUM)
  1. . S DIE=4004 D ^DIE
  1. . S INFLDNUM=""
  1. . F S INFLDNUM=$O(INBPCPAR(INFLDNUM)) Q:'INFLDNUM D:$D(INBPCPAR(INFLDNUM,"VER"))
  1. .. X INBPCPAR(INFLDNUM,"VER")
  1. Q
  1. ;
  1. APPL(INTER) ;Determine if interface application is supported
  1. ;
  1. Q $L($T(@$G(INTER)))
  1. ;
  1. AP ;Anatomic Pathology
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; ANATOMIC PATHOLOGY RECEIVER and
  1. ;; ANATOMIC PATHOLOGY TRANSMITTER background processes.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. ;
  1. BB ;DBSS
  1. ;;Remember to enter the CLIENT IP ADDRESS and IP PORT for the
  1. ;; DBSS RECEIVER
  1. ;; DBSS TRANSMITTER background processes.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. ;;Also, enter destination identifiers in the ROUTE ID multiple of
  1. ;; HL DBSS interface destination.
  1. ;;This can be done through the GIS menu. GIS->FTM->DE
  1. Q
  1. BCC ;BCC
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; BCC TRANSMITTER 1A,
  1. ;; BCC TRANSMITTER 1B,
  1. ;; BCC QR RECEIVER and
  1. ;; BCC QR TRANSMITTER background processes.
  1. ;;Remember to enter the:
  1. ;; 1) SERVER IP PORT for the BCC LOGON SERVER background process
  1. ;; 2) CLIENT IP ADDRESS for the BCC APP SERVER background process
  1. ;; (one entry for each PWS remote system).
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. CIW ;CIW
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; CIW RECEIVER and
  1. ;; CIW TRANSMITTER background processes.
  1. ;;Remember to enter the:
  1. ;; 1) SERVER IP PORT for the CIW LOGON SERVER background process
  1. ;; 2) CLIENT IP ADDRESS for the CIW APP SERVER background process
  1. ;; (one entry for each PWS remote system).
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. CLIN ;Clinicomp
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; CLINICOMP TRANSMITTER background process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. CRSPL ;Regional Scheduling - Local
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; CRSP RECEIVER 1A and CRSP RECEIVER 1B
  1. ;; CRSP TRANSMITTER 1A CRSP RECEIVER 1B background processes
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. ;;Also, enter destination identifiers in the ROUTE ID multiple and
  1. ;;the DEFAULT RECEIVING FACILITY field of
  1. ;; HL CRSP 1A and HL CRSP 1B interface destination.
  1. ;;This can be done through the GIS menu. GIS->FTM->DE
  1. N INBPCPAR
  1. S INBPCPAR(.08)=0 ; open as CLIENT
  1. S INBPCPAR(.08,"VER")="I $P($G(^INTHPC(DA,0)),U,8)'=INBPCPAR(.08) D T^INHMG1 W ""ERROR: Background Process: ""_INNAME_"" not opened as a 'CLIENT'"" S INERR=1 Q"
  1. D BPC(INTER,.INDAT,.INPAR,.INBPCPAR)
  1. Q
  1. CRSPR ;Regional Scheduling - Regional
  1. ;;Remember to enter the SERVER PORT for the
  1. ;;following background processes:
  1. ;; CRSP TRANSMITTERS 1A and 1B
  1. ;; CRSP TRANSMITTERS 2A and 2B
  1. ;; CRSP TRANSMITTERS 3A and 3B
  1. ;; CRSP RECEIVERS 1A and 1B
  1. ;; CRSP RECEIVERS 2A and 2B
  1. ;; CRSP RECEIVERS 3A and 3B
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. ;;Also, enter destination identifiers in the ROUTE ID multiple, the
  1. ;;DEFAULT RECEIVING FACILITY and the PRIMARY DESTINATION fields of
  1. ;; HL CRSP 1A
  1. ;; HL CRSP 1B
  1. ;; HL CRSP 2A
  1. ;; HL CRSP 2B
  1. ;; HL CRSP 3A
  1. ;; HL CRSP 3B interface destinations.
  1. ;;This can be done through the GIS menu. GIS->FTM->DE
  1. N INBPCPAR
  1. S INBPCPAR(.08)=1 ; open as SERVER
  1. S INBPCPAR(.08,"VER")="I $P($G(^INTHPC(DA,0)),U,8)'=INBPCPAR(.08) D T^INHMG1 W ""ERROR: Background Process: ""_INNAME_"" not opened as a 'SERVER'"" S INERR=1 Q"
  1. D BPC(INTER,.INDAT,.INPAR,.INBPCPAR)
  1. Q
  1. ;
  1. DINPACS ;DINPACS
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; DINPACS TRANSMITTER (and DINPACS TRANSMITTER 2 if needed)
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. HIV ;VIROMED/HIV ABTS RECEIVER
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; HL LA VIROMED/HIV ABTS RECEIVER background process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. ITS ;Immunization Tracking System EuroCHCS/DEERS
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; HCI ITS TRANSMITTER background process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. LSI ;LSI
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; LSI INTERFACE RECEIVER and
  1. ;; LSI INTERFACE TRANSMITTER background processes.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. MDIS ;MDIS
  1. ;
  1. Q
  1. MHC ;MHCMIS
  1. ;;Remember to populate the MHCMIS Site Parameters file.
  1. ;;This can be done through the Site Manager's Menu. INT->MHC->EDI
  1. ;;Remember to schedule the XXDMM AUTOTRANSMIT option to send the
  1. ;;message files to MHCMIS.
  1. ;
  1. Q
  1. NMIS ;NMIS
  1. ;;Remember to enter the CLIENT IP ADDRESS and IP PORT for the
  1. ;; NMIS TRANSMITTER background process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. ;;Also, enter destination identifiers in the ROUTE ID multiple of
  1. ;; HL NMIS - OUT interface destination.
  1. ;;This can be done through the GIS menu. GIS->FTM->DE
  1. Q
  1. PDTS ;PDTS
  1. ;;Remember to enter the CLIENT IP ADDRESS and IP PORT for the
  1. ;; PDTS TRANSCEIVER 1A
  1. ;; PDTS TRANSCEIVER 2A background processes.
  1. ;;Also, enter the DES KEY encryption parameter for each background
  1. ;; process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. PMN ;PACMEDNET
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; PMN RECEIVER and
  1. ;; PMN TRANSMITTER background processes.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. PWS ;PWS
  1. ;;Remember to enter the:
  1. ;; 1) SERVER IP PORT for the CHCS LOGON SERVER background process
  1. ;; 2) CLIENT IP ADDRESS for the PWS APP SERVER background process
  1. ;; (one entry for each PWS remote system).
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. TSC ;TSC
  1. ;;Remember to enter the CLIENT ADDRESS and IP PORT for the
  1. ;; TSC RECEIVER and
  1. ;; TSC TRANSMITTER background processes.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. TSCL ;TSC Loader
  1. ;;Remember to DEACTIVATE the TSC Loader interface when
  1. ;; loading is complete.
  1. Q
  1. TRAC ;Traces
  1. ;;Remember to enter the CLIENT IP ADDRESS and IP PORT for the
  1. ;; TRACES TRANSMITTER background process.
  1. ;;This can be done through the GIS menu. GIS->FTM->BPE
  1. Q
  1. TEST ;
  1. PROTO ;
  1. Q
  1. ;