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

BSTSWSV.m

Go to the documentation of this file.
  1. BSTSWSV ;GDIT/HS/BEE-Standard Terminology Web Service Handling ; 5 Nov 2012 9:53 AM
  1. ;;2.0;IHS STANDARD TERMINOLOGY;;Dec 01, 2016;Build 62
  1. ;
  1. Q
  1. ;
  1. ;
  1. ;Input
  1. ;OUT-Output variable/global to ret data in (VAR)
  1. ;IN Array-List of search parms
  1. ;DEBUG-1:DEBUG mode
  1. ;
  1. ;Output
  1. ;Function returns - [1]^[2]^[3]
  1. ;[1]-1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ;[2]-Primary Remote Error Message
  1. ;[3]-Secondary Remote Error Message (if applicable)
  1. ;
  1. ;VAR(#)-[1]^[2]^[3]
  1. ;[1]-Concept ID
  1. ;[2]-DTS ID
  1. ;[3]-Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get server list
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . S CSTS=$$SEARCH^BSTSDTS2(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status var
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. CNCSR(OUT,IN,DEBUG) ;EP - Perform Web Service Concept Id Search
  1. ;
  1. ;Input
  1. ;OUT-Output variable/global to return information in (VAR)
  1. ;IN Array-List of search parameters
  1. ;DEBUG-1:DEBUG mode
  1. ;
  1. ;Output
  1. ;Function returns - [1]^[2]^[3]
  1. ;[1]-1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ;[2]-Primary Remote Error Message
  1. ;[3]-Secondary Remote Error Message (if applicable)
  1. ;
  1. ;VAR(#)-[1]^[2]^[3]
  1. ;[1]-Concept ID
  1. ;[2]-DTS ID
  1. ;[3]-Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$CNCSR^BSTSDTS0(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status var
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. ICD2SMD(OUT,IN,DEBUG) ;EP - Perform Web Service ICD9 to SNOMED mapping retrieval
  1. ;
  1. ;Input
  1. ;OUT-Output variable/global to return information in (VAR)
  1. ;IN Array-List of search parameters
  1. ;DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ;Function returns-[1]^[2]^[3]
  1. ;[1]-1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ;[2]-Primary Remote Error Message
  1. ;[3]-Secondary Remote Error Message (if applicable)
  1. ;
  1. ;VAR(#)-[1]^[2]^[3]
  1. ;[1]-Concept ID
  1. ;[2]-DTS ID
  1. ;[3]-Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get server list
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$ICD2SMD^BSTSDTS2(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status var
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. DSCLKP(OUT,IN,DEBUG) ;EP - Perform a Web Service Description Id Search
  1. ;
  1. ;Input
  1. ;OUT-Output variable/global to return information in (VAR)
  1. ;IN Array-List of search parameters
  1. ;DEBUG-1:DEBUG mode
  1. ;
  1. ;Output
  1. ;Function returns - [1]^[2]^[3]
  1. ;[1]-1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ;[2]-Primary Remote Error Message
  1. ;[3]-Secondary Remote Error Message (if applicable)
  1. ;
  1. ;VAR(#)-[1]^[2]^[3]
  1. ;[1]-Concept ID
  1. ;[2]-DTS ID
  1. ;[3]-Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get server list
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$DSCSRCH^BSTSDTS2(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status var
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. SUBLST(DLIST,IN,DEBUG) ;EP - Perform a Web Service Subset Listing
  1. ;
  1. ;Input
  1. ; OUT - Output variable/global to return information in (VAR)
  1. ; IN Array - List of search parameters
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. ; VAR(#) - [1]
  1. ; [1] - DTSId
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$SUBLST^BSTSDTS2(DLIST,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times (needs completed)
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status variable
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. DTSSR(OUT,IN,DEBUG) ;EP - Perform a Web Service DTS Id Lookup
  1. ;
  1. ;Input
  1. ; OUT - Output variable/global to return information in (VAR)
  1. ; IN Array - List of search parameters
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. ; VAR(#) - [1]^[2]^[3]
  1. ; [1] - Concept ID
  1. ; [2] - DTS ID
  1. ; [3] - Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found"
  1. I $D(BSTSSRV)>1 S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=IN
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$DTSSR^BSTSDTS1(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times (needs completed)
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status variable
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. GCDSET(DEBUG) ;EP - Poll server(s) for codeset information
  1. ;
  1. ;Input
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$GCDSDTS4^BSTSDTS0(.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times (needs completed)
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status variable
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. GVRSET(NMID,DEBUG) ;EP - Poll server(s) for codeset information
  1. ;
  1. ;Input
  1. ; NMID - Namespace ID
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . S BSTSWS("NAMESPACEID")=NMID
  1. . ;
  1. . ;Note - do not check for working DTS since this call is used by
  1. . ;the underlying $$CKDTS^BSTSWSV1 call. This would cause an endless loop
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$GVRDTS4^BSTSDTS0(.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times (needs completed)
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status variable
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. SUBSET(OUT,NMID,DEBUG) ;EP - Poll server(s) for subset information
  1. ;
  1. ;Input
  1. ; NMID - Namespace ID
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. N BSTSSRV,PRI,STS,II
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. ;Get list of servers
  1. S STS=$$WSERVER(.BSTSSRV,DEBUG)
  1. ;
  1. ;Loop through list and make each call
  1. S STS=0,PRI="" F II=2:1 S PRI=$O(BSTSSRV(PRI)) Q:PRI="" D Q:+STS
  1. . ;
  1. . N BSTSWS,TYPE,TIME,CSTS
  1. . M BSTSWS=BSTSSRV(PRI)
  1. . S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. . S BSTSWS("NAMESPACEID")=NMID
  1. . ;
  1. . ;Check if DTS server is set to local
  1. . S STS=$$CKDTS^BSTSWSV1(.BSTSWS) I '+STS Q
  1. . ;
  1. . ;Call DTS
  1. . I TYPE="D" S CSTS=$$SUBSET^BSTSDTS2(OUT,.BSTSWS)
  1. . I $G(BSTSWS("DEBUG")) W !!,"DTS: ",CSTS,!
  1. . ;
  1. . ;Log call times (needs completed)
  1. . S TIME=$P(CSTS,U,3)
  1. . ;
  1. . ;Define status variable
  1. . S $P(STS,U)=+CSTS
  1. . I II<4 S $P(STS,U,II)=$P(CSTS,U,2)
  1. ;
  1. Q STS
  1. ;
  1. TEST(OUT,IN,DEBUG) ;EP - Perform a Test Web Service Search
  1. ;
  1. ;Input
  1. ; OUT - Output variable/global to return information in (VAR)
  1. ; IN Array - List of search parameters
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function returns - [1]^[2]^[3]
  1. ; [1] - 1:Successful remote call
  1. ; 0:Unsuccessful remote call
  1. ; [2] - Primary Remote Error Message
  1. ; [3] - Secondary Remote Error Message (if applicable)
  1. ;
  1. ; VAR(#) - [1]^[2]^[3]
  1. ; [1] - Concept ID
  1. ; [2] - DTS ID
  1. ; [3] - Description ID
  1. ;
  1. N BSTSSRV,PRI,STS,II,BSTSWS,TYPE,TIME,CSTS
  1. ;
  1. ;Define DEBUG
  1. S DEBUG=$G(DEBUG,"")
  1. ;
  1. M BSTSWS=IN
  1. ;
  1. ;Retrieve Web Service Information
  1. S STS=$$GETWSV(BSTSWS("SERVICE"),.BSTSSRV,DEBUG)
  1. ;
  1. ;Make sure service was found
  1. I $D(BSTSSRV)<10 S STS="0^No Active Server Found" Q 0
  1. ;
  1. M BSTSWS=BSTSSRV(1)
  1. S TYPE=$G(BSTSWS("TYPE")),CSTS=""
  1. ;
  1. ;Call DTS
  1. I TYPE="D" S CSTS=$$TSRCH^BSTSDTS1(OUT,.BSTSWS)
  1. ;
  1. Q CSTS
  1. ;
  1. WSERVER(BSTSSRV,DEBUG) ;P - Retrieve array of Web Server Information
  1. ;
  1. ;Input
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function - 0:No Data Returned, 1:Data Returned
  1. ; BSTSSRV - Array of web service connection information
  1. ;
  1. ;Quit if install is running
  1. L +^TMP("BSTSINSTALL"):1 E Q 0
  1. L -^TMP("BSTSINSTALL")
  1. ;
  1. N NMIEN
  1. ;
  1. ;Loop through servers until successful call
  1. S NMIEN=0 F S NMIEN=$O(^BSTS(9002318,NMIEN)) Q:'NMIEN D
  1. . N PRI
  1. . S PRI="" F S PRI=$O(^BSTS(9002318,NMIEN,1,"C",PRI)) Q:'PRI D
  1. .. N IEN
  1. .. S IEN="" F S IEN=$O(^BSTS(9002318,NMIEN,1,"C",PRI,IEN)) Q:'IEN D
  1. ... N WSIEN,STS,DA,IENS
  1. ... ;
  1. ... ;Pull Web Service IEN
  1. ... S DA(1)=NMIEN,DA=IEN,IENS=$$IENS^DILF(.DA)
  1. ... S WSIEN=$$GET1^DIQ(9002318.01,IENS,".01","I") Q:WSIEN=""
  1. ... ;
  1. ... ;Retrieve Web Service Information
  1. ... S STS=$$GETWSV(WSIEN,.BSTSSRV,DEBUG)
  1. ;
  1. Q $S($O(BSTSSRV(""))]"":"1",1:"0")
  1. ;
  1. GETWSV(WSIEN,BSTSSRV,DEBUG) ;EP - Retrieve Single Web Service Connection Info
  1. ;
  1. ;Input
  1. ; WSIEN - Pointer to 9002318.2
  1. ; DEBUG - 1:DEBUG mode
  1. ;
  1. ;Output
  1. ; Function - 0:No Data Returned, 1:Data Returned
  1. ; BSTSSRV - Array of web service connection information
  1. ;
  1. N DA,IENS,URLRT,PORT,TYPE,TIME,USER,PASS,II,SPATH,IADT,SSL,CTIME,MSTM,RETRY,MFAIL,FWAIT
  1. ;
  1. ;Pull Server information
  1. S IADT=$$GET1^DIQ(9002318.2,WSIEN_",",".1","I")
  1. I IADT]"",IADT<DT Q 0
  1. S URLRT=$$GET1^DIQ(9002318.2,WSIEN_",",".02","E")
  1. S PORT=$$GET1^DIQ(9002318.2,WSIEN_",",".03","E")
  1. S TYPE=$$GET1^DIQ(9002318.2,WSIEN_",",".04","I")
  1. S TIME=$$GET1^DIQ(9002318.2,WSIEN_",",".05","I")
  1. S USER=$$GET1^DIQ(9002318.2,WSIEN_",",".07","E")
  1. S PASS=$$GET1^DIQ(9002318.2,WSIEN_",",".08","E")
  1. S IADT=$$GET1^DIQ(9002318.2,WSIEN_",",".1","I")
  1. S SPATH=$$GET1^DIQ(9002318.2,WSIEN_",",".11","E")
  1. S SSL=$$GET1^DIQ(9002318.2,WSIEN_",","2.01","E")
  1. S RETRY=$$GET1^DIQ(9002318.2,WSIEN_",","4.01","E") S:RETRY="" RETRY=1
  1. S RETRY=RETRY+1
  1. S CTIME=$$GET1^DIQ(9002318.2,WSIEN_",",".12","I") S:CTIME="" CTIME=2
  1. S MSTM=$$GET1^DIQ(9002318.2,WSIEN_",",.15,"I") S:MSTM="" MSTM=60
  1. S MFAIL=$$GET1^DIQ(9002318.2,WSIEN_",","4.02","E") S:MFAIL="" MFAIL=10
  1. S FWAIT=$$GET1^DIQ(9002318.2,WSIEN_",","4.03","E") S:FWAIT="" FWAIT=7200
  1. S II=$O(BSTSSRV(""),-1)+1
  1. S BSTSSRV(II,"URLROOT")=URLRT
  1. S BSTSSRV(II,"PORT")=PORT
  1. S BSTSSRV(II,"TYPE")=TYPE
  1. S BSTSSRV(II,"USER")=USER
  1. S BSTSSRV(II,"PASS")=PASS
  1. S BSTSSRV(II,"TIMEOUT")=TIME
  1. S BSTSSRV(II,"DEBUG")=DEBUG
  1. S BSTSSRV(II,"SERVICEPATH")=SPATH
  1. S BSTSSRV(II,"SSL")=SSL
  1. S BSTSSRV(II,"CTIME")=CTIME
  1. S BSTSSRV(II,"IEN")=WSIEN
  1. S BSTSSRV(II,"MSTM")=MSTM
  1. S BSTSSRV(II,"RETRY")=RETRY
  1. S BSTSSRV(II,"MFAIL")=MFAIL
  1. S BSTSSRV(II,"FWAIT")=FWAIT
  1. ;
  1. Q 1