Forum Replies Created
-
AuthorReplies
-
June 2, 2021 at 1:19 pm in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #118919
Hi Torfinn,
We did finally solve this issue. Infor had supplied a “test” site called “dtcsample” which included examples of DTC processing and some FHIR processing. As a part of that sample site, they provided some tclprocs as well. One of them is called tpsFhirSetServerUrl and this will help you set up the dynamic URL. We did have to modify it for our own use, but this should help you get started. Initially we had it set up as a post tps which passed the dynamic URL to our PROTOCOL:java/ws-rawclient thread.
Hopefully this will help you. We struggled for a very long time before we found this proc. We tried several other things including global variables, but we could never make it work any other way. Good Luck!!
Marla
January 24, 2020 at 4:53 pm in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #115029Right now, I just have the inbound thread set to read a file. I haven’t set up receiving a thread that accepts inbound calls. I am routing it to a java/ws-rawclient thread. I’ve included screen shots in my last post that might help explain what I’m trying to do. This is more of a POC right now so it’s pieced together while I work on getting it to work.
January 24, 2020 at 4:48 pm in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #115026I’ve included some screen shots of the basic set up that I’m using. It’s totally bare bones, but I’ve been trying to just get the concepts to work before I really get into building it out.
Attachments:
You must be logged in to view attached files.January 24, 2020 at 4:38 pm in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #115025I am actually passing it a message to basically just “trigger” the process. Right now, I’m not sending any real data and you are correct that I don’t really care about that actual data right now. I just want to be able to build and pass the URL.
I commented out the msgset $mh “” and it’s still saying BAD DATA, but the error db now includes my very basic message data ($mh).
java:java:ERR /1:Cerner_CERT2_0:01/24/2020 16:30:38] com.infor.cloverleaf.gjdws.WSRawClient processMessageFromCloverleaf:SEVERE: Caught exception trying to process message from Cloverleaf
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] Catch Execption:
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] at com.infor.cloverleaf.gjdws.WSRawClient.processMessageFromCloverleaf(WSRawClient.java:132)
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] at com.lawson.cloverleaf.driver.FromCloverleafLink.doMsg(FromCloverleafLink.java:46)
[java:wrte:ERR /0:Cerner_CERT2_0:01/24/2020 16:30:38] Call to “doMsg” returned error string “BADDATA caught exception trying to processMessageFromCloverleaf: caught exception trying to process message from Cloverleaf”. Returning bad send to engine.msg: 0x0x7ff6bfc40078
msgType : DATA
msgClass : PROTOCOL
msgState : Bad data (419)
msgPriority : 5120
msgRecoveryDbState: Log:update (3)
msgFlags : 0x8002
msgMid : [0.0.30846]
msgSrcMid : [0.0.30844]
msgSrcMidGroup : midNULL
msgHostId : 3278342957
msgOrigSrcThread : Reply_CERT2
msgOrigDestThread : Cerner_CERT2
msgSrcThread : Reply_CERT2
msgDestThread : Cerner_CERT2
msgXlateThread :
msgSkipXlate : 0
msgSepChars :
msgNumRetries : 0
msgGroupId : 0
msgDriverControl : {_TRXID_ _HCI_static_route_}
msgRecordFormat :
msgRoutes :
msgUserData : {httpRequestInfo {requestURL https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/MedicationAdministration/7283373}}
msgStaticIsDirty : 0
msgVariableIsDirty: 0
msgRetryTimes :
msgTimeStartIb : 1579901438.057(Fri Jan 24 16:30:38 2020)
msgTimeStartOb : 1579901438.275(Fri Jan 24 16:30:38 2020)
msgTimeCurQueStart: 0.000(Wed Dec 31 19:00:00 1969)
msgTimeTotalQue : 0.005
msgTimeRecovery : 1579901438.272(Fri Jan 24 16:30:38 2020)
msgEoConfig : 0x(nil)
msgData (BO) : 0x0x7ff6bfc40238
message : ‘{\x0a\x09″resourceType”:”MedicationAdministration”,\x0a\x09″subject”:{\x0a\x09},\x0a\x09″_id”:{\x0a\x09\x09″id”:””\x0a\x09}\x0a}’THANKS!!
January 24, 2020 at 4:10 pm in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #115021Hi Tipu,
This has been very helpful information. I’ve tried creating a very basic tclproc that I’ve been running on the outbound tab. Below is the main body of my tcl and the Error message I’m getting. Do you happen to have an suggestions?
For POC, I was just hard coding my medication value into the URL to see if I could get it to work that way.
Main part of the tcl:
keylget args MSGID mh
lappend dispList “CONTINUE $mh”
# Get the message content and HL7 Control characters
set msgData [msgget $mh]
set fieldsep [string index $msgData 3]
set compsep [string index $msgData 4]
set repsep [string index $msgData 5]# set meta [msgmetaget $mh USERDATA]
# echo meta: $metaset myURL “https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/MedicationAdministration/”
append myURL “7283373”
set userData “{httpRequestInfo {requestURL $myURL}}”
echo myURL: $myURL
msgmetaset $mh USERDATA $userData
echo [msgmetaget $mh USERDATA]
msgset $mh “”This looks like it builds the URL perfectly, but it’s throwing a Bad Data error and sending my URL to the error DB.
msg: 0x0x7f78492ba078
msgType : DATA
msgClass : PROTOCOL
msgState : Bad data (419)
msgPriority : 5120
msgRecoveryDbState: Log:update (3)
msgFlags : 0x8002
msgMid : [0.0.30842]
msgSrcMid : [0.0.30840]
msgSrcMidGroup : midNULL
msgHostId : 3278342957
msgOrigSrcThread : Reply_CERT2
msgOrigDestThread : Cerner_CERT2
msgSrcThread : Reply_CERT2
msgDestThread : Cerner_CERT2
msgXlateThread :
msgSkipXlate : 0
msgSepChars :
msgNumRetries : 0
msgGroupId : 0
msgDriverControl : {_TRXID_ _HCI_static_route_}
msgRecordFormat :
msgRoutes :
msgUserData : {httpRequestInfo {requestURL https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/MedicationAdministration/7283373}}
msgStaticIsDirty : 0
msgVariableIsDirty: 0
msgRetryTimes :
msgTimeStartIb : 1579899178.718(Fri Jan 24 15:52:58 2020)
msgTimeStartOb : 1579899178.968(Fri Jan 24 15:52:58 2020)
msgTimeCurQueStart: 0.000(Wed Dec 31 19:00:00 1969)
msgTimeTotalQue : 0.005
msgTimeRecovery : 1579899178.966(Fri Jan 24 15:52:58 2020)
msgEoConfig : 0x(nil)
msgData (BO) : 0x0x7f78492ba238
message : ”Log File:
[java:java:ERR /1:Cerner_CERT2_0:01/24/2020 15:52:59] com.infor.cloverleaf.gjdws.WSRawClient processMessageFromCloverleaf:SEVERE: Caught exception trying to process message from Cloverleaf
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] Catch Execption:
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] at com.infor.cloverleaf.gjdws.WSRawClient.processMessageFromCloverleaf(WSRawClient.java:132)
[java:java:ERR /1:Cerner_CERT2_0:–/–/—- –:–:–] at com.lawson.cloverleaf.driver.FromCloverleafLink.doMsg(FromCloverleafLink.java:46)
[java:wrte:ERR /0:Cerner_CERT2_0:01/24/2020 15:52:59] Call to “doMsg” returned error string “BADDATA caught exception trying to processMessageFromCloverleaf: caught exception trying to process message from Cloverleaf”. Returning bad send to engine. -
AuthorReplies