#Ensemble

23 Followers · 2.4K Posts

InterSystems Ensemble is a complete and easy-to-use integration platform that enables users to connect people, processes, and applications in record

time.

Learn more

Documentation

Question Touggourt · Feb 20, 2023

Hi Guys,

I'm looking for an easy to allow certain user to only have access to one CSP or Zen page from my application, my thoughts is to create a role to only access that specific page then allocate that role to my user, but can find the Zen page so I can allocate it to a role? 

 

Thanks

1
0 299
Question Madhumohan PEDDANNAGARI · Feb 20, 2023

Hi, I am facing below error while sending the data from one namespace to another namespace.

ERROR <Ens>ErrFailureTimeout: FailureTimeout of 15 seconds exceeded in EnsLib.TCP.PassthroughOperation; status from last attempt was ERROR <Ens>ErrOutConnectionLost: Lost TCP Counted Read connection to xx.xxxx.xxs- detected via ERROR <Ens>ErrException: <READ>zReadCountedStream+10 ^EnsLib.TCP.CountedCommon.1|Block Count -- logged as '-'
number - @'
Else { Read tLenStr#4:pStartTimeout Set tTimedOut = '$Test }'

 

Sender  Version is Ensemble 2017.1

Receiver version: HealthConnect:3.5.

3
0 473
Question Nezla · Jan 27, 2023

Hi Guys,

Sealy question but I'm between a hard and rock :)

I've a running method that deletes a list of records and its has been running for hrs and did place locks so other processes can't progress, and to what I can see it will still run for a few more hours, so how can I stop this process at this point without losing what already has been deleted?

If I close the terminal all records that has been deleted will roll back as it happened to before ?

 

Thanks

7
0 324
Question Joe Jones · Jan 24, 2023

Hi Community,

I have created a HL7 production in my working environment, Ens.Alert ,EMailAlert, PagerAlert, and  BadMessageHandler are created.

Can anyone explain how Ens.Alert and BadMessageHandler will work when an HL7 message in Passed in Business service and how these 2 are related when any error occurs in the Production envinorment?

1
0 346
Question Joe Jones · Jan 18, 2023

Hi community,

I am working on Converting Non HL7 message (Using record maps) into HL7 message.

1.Can anyone share few details how to save Non HL7 message into SQL table and the converted HL7 message into SQL table

2.In Message Viewer is there any SQL tables are linked to the session id or where the information regarding the message will be stored? Will the message trace details are stored in globals or in SQL table,If yes can anyone share the details in which tables or globals will it be stored?

 

Joe

2
0 444
Question Nezla · Jan 16, 2023

Hi Guys,

we are having a problem with the Cache.dat file is not expanding anymore since it has reached 2.2TB, we still have extra 260Gb of free disk space in our drive but for some reason it's raising a FILEFULL which is a result or the database not able to expand.

4
0 675
Question Touggourt · Jan 10, 2023

Hi Guys,

I have a scheduled task that run every 5 mins to execute a function with 10 things to do, issue that those 10 thing are processed in a loop that takes more than 7 mins to finish, so basically I would like to understand what will happen when the task will run in next 5 mins given that the 10 things to do in my function from the first run didn't finish yet, would it ignore what's left from the 10 things to do and start again or the first run or would the first run  continue to execute in some job # and the new run will run in parallel with new Job#, and if that's the case would this

2
0 256
Question Smythe Smythee · Jan 9, 2023

Hi Community,

Can anyone explain how to apply early binding and late binding to a transformation.

Example:

I have DOB value as 12/12/2000

In transformation i need to format  DOB value to 20001212-->this value i can achieve by using  $E(DOB,7,10)_$E(DOB,4,5)_$E(DOB,1,2)

 

But how can i apply early binding and late binding to the above Data tranformation?

5
0 375
Question Nezla · Nov 29, 2022

Hi Guys,

Our system admin has installed a new SSL certificate to replace the old one in our Windows server 2016.

So should it be ok to just then remove the old Certificate given that we installed the new one, knowing that the old one has been used previously or do we need to do something in existing SSL/TLS configurations ?

 

 

Thanks Guys

2
0 403
Question Nezla · Nov 19, 2022

Hi Guys,

I've this :

- NodeJS example,

let buf = Buffer.from('02010605166E2A0923100950205450524F424520303030323730', 'hex')

let temper = buf.readInt16BE(7) / 100

 

- Python example,

import binascii

buf = binascii.a2b_hex('02010605166E2A0923100950205450524F424520303030323730')

temper = int.from_bytes(x[7:9],byteorder='big') / 100

 

what would be the equivalent of this using Cache scripts?

 

Thanks Guys 

4
0 542
Question Smythe Smythee · Nov 14, 2022

Hi Community,

I am configuring new SSL Configuration for Gmail (For sending errors to gmail in ensemble production) by following the below steps.

Step1:

Step2:Giving the server address smtp.gmail.com

Step3:Giving the port number , I have tried giving 465,587,25 as port number still is not connecting 

Can anyone please tell me where i am doing wrong on configuration?

 

Thanks,

Saroja.A

7
0 857
Question Sheetal Kairawala · Nov 4, 2022

Hello Developers.

I have a question regarding X12 834 file for Payers.

We have a client thats sending X12 834 file with single ST SE block and has thousands of members in one single block and X12 process is throwing STORE error when processing this file.

Has anyone ran into this issue and has a way of splitting 834 file into single <ST> <SE> block?

Thank you in advance

Sheetal

2
0 331
Question Nezla · Oct 13, 2022

Hi Guys,

I'm really not that familiar with Rest APIs in Ensemble and came across one while investigating some issues.

I got the below code which I'm guessing that is a Rest API that provide services that can be accessed providing url and would like to understand it and my question is, does this url http://52.24.106.151:80/Csp/Upload/CreateRoute/Bmc&nbsp;  means that someone use it to run cmCreateRouteBmcDev classmethod for example and does POST means we can send a request or we can receive a request (a post), this MSDS.BluMicello.

4
0 864
Question Nezla · Oct 11, 2022

Hi Guys,

 

I've the following node js code (see https://github.com/CassiaNetworks/CassiaSDKGuide/blob/master/node_examp…) that I would like to use in one of my csp pages by including it in my  <script type="text/javascript"> tag but some syntax is not recognized and I'm guessing that node js has some extra libraries doesn't exist in regular Javascript (some examples below), so is the a way to include node js in my page?

 

thanks

3
0 343
Question Nezla · Oct 9, 2022

Hi Guys,

This link (https://github.com/CassiaNetworks/CassiaSDKGuide/blob/master/node_examp…)   uses Javascript request to open a a steam and collect data in an array  (screenshot below) and I'm trying to replicate this with Cache script with HTTP request which is connecting Ok but don't know how can I collect data because the code is hanging at Set tSc=Httprequest.Get(HttpURL) and cannot execute BLEConnect=Httprequest.HttpResponse.StatusLine or any line after it.

9
0 590
Question Smythe Smythee · Sep 28, 2022

Hi ,

I am Converting HL7 message into SDA3 format by using  Ens.DataTransform Class but transformation is not happening while using this class and throwing the below error

ERROR <Ens>ErrException: <UNDEFINED>zTransform+1^Hosiptal.SDA3.DataTrans.1 *target -- logged as '-' number - @' Set target.Patient.Name=source.GetValueAt("PID:5")'

Let me know if any mistake please refer the below code

Class Hosiptal.SDA3.DataTrans Extends Ens.DataTransform
{

ClassMethod Transform(source As EnsLib.HL7.Message, target As HS.SDA3.Container) As %Status
{
 
   Set target.Patient.Name=source.

15
0 658
Question Scott Roth · Jun 3, 2022

I noticed today that when we are creating a message from one doc type to another doc type, that the message type categories are not necessarily set. This is causing some issues with routing rules when we try to reference the Message Type Categories. Is there a way to make sure the Message Type Categories are being set within a DTL to make sure this doesn't cause problems down the road?

Thanks

Scott

7
0 487
Question Nezla · May 30, 2022

Hi Guys,

I'm using the below code to post a JSON file:

 FilePath="D:\Allied_InterfaceData\ResponseFiles\CollectionData\CollectionGood\CollectionGood_9503948.json"
 Set File = ##class(%File).%New(FilePath)
Do File.Open("R")
  Set Httprequest=##class(%Net.HttpRequest).%New()
Set Httprequest.SSLConfiguration="RTLS"
Set Httprequest.Server="vibra-api-dev.azurewebsites.net"
Set Httprequest.Timeout=30
Set Httprequest.Https=1
set Httprequest.ContentType="application/json"
Do Httprequest.SetHeader("Accept","*/*")
  Do Httprequest.SetHeader("Authorization","Bearer "_^Token)
 While ('File.

3
0 610
Question Nezla · May 28, 2022

Hi Guys,

how can I write a json file in httprequest, I'm using the below but when I check what's in mystring it's actually truncated and doen't include all my file?

 

 Set stream=##class(%FileBinaryStream).%New()
    FilePath="D:\Allied_InterfaceData\ResponseFiles\CollectionData\CollectionGood\CollectionGood_9431312.json"
   Set File = ##class(%File).%New(FilePath)
Do File.Open("R")
Set Line = File.Read(1000)
While (File.Read(1000)'="") { S mystring=mystring_File.Read(1000)
} 
  Set Httprequest=##class(%Net.HttpRequest).%New()
Set Httprequest.SSLConfiguration="RTLS"
Set Httprequest.

10
0 566
Question Nezla · May 27, 2022

Hi Guys,

I've a JSON file and I'm using the below code to post it but I'm geting "HTTP/1.1 415 Unsupported Media Type" error, could help pls? 

 Set RootMIMEPart=##class(%Net.MIMEPart).%New()      
     Set BinaryMIMEPart=##class(%Net.MIMEPart).%New()
     Set contentdisp="form-data; name="_$CHAR(34)_"file"_$CHAR(34)_"; filename="_$CHAR(34)_""_$CHAR(34)
     Do BinaryMIMEPart.SetHeader("Content-Disposition",contentdisp)
     Set stream=##class(%FileBinaryStream).%New()
     Set stream.Filename=FilePath
     Do stream.LinkToFile(FilePath)      Set BinaryMIMEPart.Body=stream
    Do BinaryMIMEPart.

4
0 471
Question Nezla · May 26, 2022

Hi Guys,

I had a record with name field has a uniqueKeyIndex, so because I couldn't change and update the name description using SQL, I went and changed the name description in the Globals and removed the Index on name with old description, but now I wanted to create a new record with the old description that I removed from Globals but I'm getting UniqueIndex error, which means the old description is still somewhere in one of the globals, but I can't find that record anywhere in both data or index globals ?

 

 

 

thanks

3
0 395
Question Nezla · May 24, 2022

Hi Guys,

I'm using the below so I can put JSON file in an object and read each property:

  ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(JSONString3,,.list)
 S Job= list.jobGUID

but because the JSON starts and ends with [ ] my list is empty, and I had to remove them to get a good list.

So is there a way that I can handle this which having me removing those brackets each time, because I thought %ConvertJSONToObject to be able to handle this anyway?

7
0 444
Question gerald hanford · May 23, 2022

I am using the EnsLib.File.PassthroughService class in the business service, this business service will accept a text file from a location and pass it through to the BPL as a stream.  I have been trying to work with the BPL in the GUI and I have been reading the documentation and trying to get it to work but I can not I continue to get errors and I am not sure why. 

I will attach the Photos of what I have been trying, I think there is a problem with my call action because when I try and trace the message the context of the file does not even make it to the business operation.

2
0 402
Question Nezla · May 22, 2022

Hi Guys,

I'm running Ensemble 2014 and I'm using this to convert JSON to object:

class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject

 but how can I convert to %CharacterStream because I'm saving a %CharacterStream field

 

Thanks

1
0 351
Question Nezla · May 22, 2022

Hi Guys.

 

I'm a newbie in productions and services and I'm using this code to get HTTP response with JSON file, is a way to do this via a production service?

 

set Httprequest ##class(%Net.HttpRequest).%New()
  Set Httprequest.SSLConfiguration="RTLS"                              
  Set Httprequest.Server="serverurl"                 
  Set Httprequest.Https=1
  Set Httprequest.Timeout=30
  Token="sometoken_value"
   set Httprequest.ContentType="application/json"
Do Httprequest.SetHeader("Accept","application/json")
Do Httprequest.SetHeader("Authorization","Bearer "_Token)
   set tSc = Httprequest.

2
0 266