I have an interface that does not send me specific ID's, so I am scanning the AIL3.2 (Text) field for certain characters. The Routing rule is getting pretty big with all the OR statements. Is there a way that I can define what I am searching for in the data lookup table, and not have to scan the whole field that it does by default? Is there a way that I can simplify this?
What happens if you don't declare a Persistent value when you call ExecuteQuery()? What does Ensemble set as the key value for your query? I have a query that I've executed on SQL Server, and I get 15 rows, but because this is my second time querying the data Ensemble thinks it exists.
The Method in question is SelectProviderClarityAudit. If I call this query multiple times it is not returning the same number of results each time in Ensemble.
{
Parameter ADAPTER = "EnsLib.SQL.
We are seeing something funky when using $ZSTRIP.
LOCKTEST
Shouldn't this be returning....SLOCKTEST and not LOCKTEST, the goal is to remove ZZZZTEST from the beginning of the string.
THanks
Scott Roth
The Ohio State University Wexner Medical Center
We are starting to look into our BPL's and catch errors that calls may return. Can someone explain how to use the THROW and CATCH within the Business Process Language or have a sample of how it should work?
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
I have a process that I am trying to duplicate from SQL Integration Services (SSIS) into Ensemble so that the rest of my team can help support any issues that may happen.
This particular job creates multiple dictionary files, but for each one of the dictionary files it creates, it also creates a control file that tells the vendor what to process.
So example....I have a result set that is written to a.txt but I also need to create a a.ctrl, then I will have a b.txt and need a b.ctrl.
Using only one EnsLib.RecordMap.
I am trying to replace one of our SQL Integration Service jobs with Ensemble and I am running into an issue executing a query against a MS SQL database using JDBC drivers.
My SQL Outbound code looks like this.
Method SelectPaceartCharges(pRequest As osuwmc.Paceart.DataStructures.SelectPaceartBillingExtract, Output pResponse As EnsLib.SQL.
We are trying to convert some of our SQL Service Integration Service jobs from Visual Studio to Ensemble. If we execute a Stored Procedure within SQL Server Management Studio it is returning approx 12,000 rows. However when Ensemble executes the same Stored Procedure it is only returning 250 rows.
Is there a limitation to EnsLib.SQL.Snapshot?
This is how we are calling the Stored procedure
{
Set SPQuery = "{ ?= call dbo.
I know there are numerous Java libraries available to scan a PDF meta data, but is there a way to scan a PDF using native cache object script? We are looking to take a PDF from an external vendor, scan for meta data, create the HL7 message, and embed the PDF within the HL7 message.
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
I am currently working on a issue with WRC on one of my Inbound SQL Adapters not returning all the records it should be. If I looked at the count of the records in Ensemble and compare it to that of a Microsoft SQL View, Ensemble seems to be off by a few records here and there. I am using a full dynamic select statement in my settings of the adapter.
I have come across several cases where I need to set a Date filter to send only send any admit/scheduled date past a certain point. We have a couple different date comparison functions but none looking at the true date. Most of them are date + 15 or etc. Does anyone have a good date function they have written to say if x > 20170102 ?
Thanks
Scott
I have a case where I am creating a PDF file from an Encoded String, and I need to transfer this file over to another server. I was wondering since this is PDF file if I could just invoke the FTP.OutboundAdapter within my Object script that is creating the PDF from the encoded string. Is this possible? Does anyone have an examples of using EnsLib.FTP.OutboundAdpater within their Object Script?
Thanks
Scott Roth
Integration - Interfaces
The Ohio State University Wexner Medical Center
Does anyone have a good example of setting up an Inbound Email Adapter Service to retrieve an email? I am thinking of sending this email to a BPL to retrieve the Attachment that is in the email. Would that be the correct method to do that?
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
We have a vendor that can only send us a uu-encoded PDF. Is there a way to decrypt it in Ensemble?
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
Awhile back we had someone write some code to Log messages like we did in eGate but with Ensemble.
{
set vDIR="/ensemble/"_^OSUWMCInstance_"/logs/"
set fs=##class(%Stream.FileCharacter).%New()
set fs.Filename=vDIR_pComponent_".log"
do fs.MoveToEnd()
set vTM=$PIECE($ZDATETIME($HOROLOG)," ",2)
//$ZTIME($PIECE($H,",",2),1)
do fs.WriteLine(vTM_" : "_pMsgIn)
do fs.%Save()
set fs = "" // Close file
}
We found that the IO on this was slowing messages down, and those Operations that had high volume of message would fall behind.
With help from others here I had developed some code to take a Base64 PDF within a OBX.5 and save it locally to the file structure on the server.
I had to make a change to the code to return me a String so I can pass the Path back into Ensemble to use it in the message. When I made this change I am getting " ERROR #5034: Invalid status code structure ("/ensemble/data/transfer/AncillaryPDF/TMSAUDIO/Apr-11-1/980512729TMSAUDIO1046784936436537800.pdf")"
Here is the code...
ClassMethod DecodeBase64HL7ToFile(base64 As
One of our Departments are claiming that we are loosing HL7 messages that are sent from their Vendor's system to Ensemble.
I know interfaces 101 if we have no record of the message then we never received it, however they are insisting they are sending it.
I asked them to provide the ACK's if they sent the messages but Ensemble had no corresponding Message Control ID (MSH.10) .
Currently I have the following settings.
Is there a way to have a Data Lookup table be automatically updated via a script or cache code? We have a file that is being created by our EMR, and we need to import it into Ensemble to update it. Just trying to see if we can automate this process.
Thanks
Scott Roth
Ohio State University Wexner Medical Center
Using the following...
//Get PDF stream object previously saved
Set pdfStreamContainer = ##Class(Ens.StreamContainer).%OpenId(context.StreamContainerID)
Try {
Set pdfStreamObj = pdfStreamContainer.StreamGet()
}
Catch {
$$$TRACE("Error opening stream object ID = "_context.StreamContainerID)
Quit
}Would it be possible to search the pdfStreamObj for certain values like a Medical Record, or Patient Name?
Thanks
Scott
Does anyone have a good example of using
Thanks
Scott
Can you connect to FHIR through ensemble or do you have to have HealthShare to connect to FHIR services?
I have a standard text file that is coming out of a system new line delimited. Each document will have the same field structure each time.
ID: xxxxxxxxx Name: xxxx,xxxx Age: xx Sex: x OSU Wexner Medical Center Harding Hospital Treatment at 7/14/2016 10:39:34 AM % Energy Set 50 % Charge Delivered 255.4 mC Current 0.91 A Stimulus Duration 7.0 Sec Frequency 40 Hz Pulse Width 0.
I am trying to write some code to check to see if a directory exists before creating a new directory.
When I do the following I am not getting a response, but the directory exists..
do ##class(%File).DirectoryExists("/ensemble/")am I missing something?
We have a couple of systems that send us a URL link to a PDF instead of base 64 encoding it in the HL7 message. Has anyone ever tired to take that URL, and retrieve the file off of the server to save it off somewhere?
I am trying to come up with a way to decode the Base64 we receive in an HL7 message into a PDF file and save it in a directory on our AIX machine. I thought I had the following working at one time but I am having issues. Has anyone done this before?
{
set Oref = ##class(%FileBinaryStream).%New()
set Oref.Filename = Ancillary
Do base64.Rewind()
While 'base64.AtEnd {
set ln=base64.ReadLine()
set lnDecoded=$system.Encryption.Base64Decode(ln)
do Oref.Write(lnDecoded)
}
Do Oref.%Save()
quit 1
}
Thanks
Scott
maybe I am not looking in the correct spots, but how should one handle an Exception from a SOAP web service within the Business Process Language? For example I am sending a request to a Web Service to try to get information, but the response I am getting is an Exception like "Patient Not Found".
Is there a function I can call to check the response similar to what I do to check a SQL Snapshot to see if it is valued?
Thanks
Scott Roth
Sr. Applications Development Analyst
Information Technology Integration - Interfaces
The Ohio State University Wexner Medical Center
Has anyone tried to extract a Microsoft SQL Image Column into a JPG file using Ensemble? We currently have a Microsoft SQL Integration Services job that exports a SQL Image column into a JPG and then resizes it. I would like to get this job off of Microsoft so the rest of our team can support it and wondered if we could do it in Cache Object Script using Ensemble.
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
At the Global Summit several folks had mention that they developed their own production monitor. I am looking to create a monitor similar to eGate that we only display those Services/Processes/Operations that are in trouble, and those Errors that are showing up in the Event Log. Does anyone have any examples of this?
Thanks
Scott Roth
The Ohio State University Wexner Medical Center
During the Unconfernce and Sessions during the Global Summit several folks had questions and wanted to see how Ohio State setup our Managed Alerts. Attached is an export I did along with Documentation I had given to our group here at OSU for Managed Alerts.
I am trying to find the presentation for the User Group Sessions that were given at Global Summit last week. In particular the Healthshare Provider Directory presentation, so I can share the ideas with others at my organization. Does anyone know where I can find those? I am not seeing them under the Global Summit tag.
Thanks
Scott Roth
The Ohio State University Wexner Medical Center