Forum Replies Created
-
AuthorReplies
-
Hi Bill,
I am working with this vendor and have it configure to send out information to them successfully. My first attempt at sending to api with Cloverleaf. With this being sent to https server for the api in the conduit did you do any configuration for TLS in regards to truststore and keystore?
Thank you,
Mike
July 11, 2022 at 10:38 am in reply to: Trying to send dynamic address to a FHIR connection using ws-rawclient protocol #119850Hello Marla,
We are beginning to play with FHIR configurations. We are a Cerner client and are using Cloverleaf as well. There are times we are looking for better ways to pull information from Cerner than using jdbc.
I know the process for registering an app and providing a redirect url for fhir apps with Cerner. In this case where the request would be from Cloverleaf were you able to set it up for provisioning and the oAuth2 token to make a GET request to Cerner? I haven’t found any documentation on how that would be achieved.
Any information you may have would be appreciated.
Mark if your code is still not working email me and I can send you the code I had to use for the DFT messages in which I dealt with this issue.
December 26, 2012 at 8:36 pm in reply to: Readin PDF files and sending imbedded PDF trough interface #76800I have successfully created the message with the Base64 encoding and tested the message by adding a decode to create a new PDF. When doing a compare there are now differences.
The problem I have is that the message does not leave Cloverleaf, it remains in a Pending state. There are no errors so I can’t tell where the error is at. I have smaller text messages going through the same thread so I know this piece is working. Any ideas where to look as I don’t get any errors?
Hello Rich,
I’ve been following this post as I am attempting to send a PDF from Xcelera into Cerner. I have been able to create the message and encode the PDF in BASE64 in the OBX 5 field and tested decoding to make sure that I have the complete code in the field.
While testing I have been writing the output to a file and now I am trying to send this into Cerner via a tcpip connection. Once I do this when I replay the message my ORU from Cerner shows Pending and the PDF into Cerner shows no activity. I checked logs in both Cloverleaf and Cerner and have not found any errors.
Any suggestions on what to look at? Anyone feel free to respond all suggestions are welcome. We are currently on 5.7 ver 2.
thank you,
Mike
September 12, 2012 at 2:19 pm in reply to: Readin PDF files and sending imbedded PDF trough interface #76799Daniel,
Thank you for the code example it helped greatly. I made a modification since I was pulling in the full path with filename from the xlate but other than that I ran the code as you provided.
When I sent a message through I received the following error:
error message
Invalue first is: EmptyFillerOrderNumber_U2837_Stress{1}_09_05_12_0750a.pdf
pdfmap is: EmptyFillerOrderNumber_U2837_Stress{1}_09_05_12_0750a.pdf
encode value is: /quovadx/qdx5.7/integrator/cl_test_site/MikeT/EmptyFillerOrderNumber_U2837_Stress{1}_09_05_12_0750a.pdf
input: file300
[xlt :xlat:ERR /0: ORU_xlate:09/11/2012 15:36:17] [0.0.33714269] Xlate ‘ORU_From_Xcelera_To_Cerner_MDM.xlt’ failed: Tcl callout error
erroCode: NONE
errorInfo:
wrong # args: should be “encode text”
while executing
“encode -wrapchar “” [read $fi]”
(procedure “PDF_Encode_Base64” line 18)
invoked from within
“PDF_Encode_Base64”
I then made another modification that is now working and doing the encoding. Here is a copy of what is working for me now.
Code:
package require base64proc PDF_Encode_Base64 {} {
upvar xlateId xlateId
xlateInList xlateInList
xlateInTypes xlateInTypes
xlateInVals xlateInVals
xlateOutList xlateOutList
xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals# global HciSiteDir
set file [lindex $xlateInVals 0] ;# Get the PDF file name from xlateInVals
set DEBUG 1
set fi [open $file r] ;# Open the PDF file for reading
if $DEBUG {
echo “input: $fi”
}fconfigure $fi -translation {binary binary} ;# Set the file channel to a binary read
set en64Var [::base64::encode [read $fi]] ;# Base64 encode the PDF file into $en64Var
close $fi ;# close the PDF fileif $DEBUG {
echo “output: $en64Var”
}set xlateOutVals [list $en64Var] ;# Write the encoded PDF to xlateOutVals
}September 11, 2012 at 6:39 pm in reply to: Readin PDF files and sending imbedded PDF trough interface #76797Hello,
I am a newcomer to Cloverleaf and Tcl and could use some assistance. I am attempting to encode a PDF and send this through HL7 to the receiving system which will decode it. I receive a message from Xcelera with the name of the PDF in the message. We then get the PDF through FTP and place it in a directory so it can be opened in Tcl.
I have already set the OBX-5 to unlimited so the size is taken care of. In the Xlate I am passing the filename to the tclproc to open the file. I can open the file however I can’t seem to get this to work past that point. Once the file is opened I am trying to encode the PDF and pass this back to the Xlate. I have reviewed the various posts on how to do this through Tcl without success. I saw Steve is using a similar process. Would someone have working code they would be willing to share?
If needed I can provide the various iterations I have tried but was hoping a working example would be best in the interest of time.
Thank you,
Mike
-
AuthorReplies