Can any one explain about types of inbound and outbound adapters along with its methods?
Thanks in advance
InterSystems Ensemble is a complete and easy-to-use integration platform that enables users to connect people, processes, and applications in record
time.
Can any one explain about types of inbound and outbound adapters along with its methods?
Thanks in advance
How to increase the performance of the production when getting multiple messages from various Healthcare organizations
Hi Community,
I am receiving a JSON file as input in ensemble and i need to convert the JSON message to HL7 message.
Can anyone share few points how to read a JSON file into Ensemble production by creating a Custom Business service?
I have created a custom business service as below but i am not aware which parameters i need to pass in OnProcessInput method?
Method OnProcessInput(pInput As Ens.Request, Output pOutput As %RegisteredObject) As %Status
Do i need to Ens.Request or RegisteredObject or Ens.StreamContainer?
Thanks,
Joe
Data for InterSystems products (table row data, object instance data) is stored in global variables.
The data size of each global can be obtained by clicking the properties of the global you want to view from the Management Portal > System > Configuration > Local Database > Globals page, and then clicking the Calculate Size button on the Global Attributes page that appears.
To display the data sizes of globals in a namespace, you can call ^%GSIZE utility on the terminal.
The method of execution is as follows.
From time to time we develop an Ensemble Production with simple SQL Inbound data from external databases, we need to develop a few new classes. There are at least:
Let's say, if these codes can be generated automatically in order to make the entire development more "low code".
The procedure for uploading/downloading from an FTP server is as follows.
1. Upload the image file to the FTP server
set tmpfile="c:\temp\test.jpg"
set ftp=##class(%Net.FtpSession).%New()
// connect to FTP server
do ftp.Connect("","<username>","<password>")
// set transfer mode to BINARY
do ftp.Binary()
// Move to the directory to upload
do ftp.SetDirectory("/temp/upload")
// Prepare a stream of files to upload
set file=##class(%File).%New(tmpfile)
do file.Open("UK\BIN\")
// upload file
// 1st argument: File name to create at upload destination
// 2nd argument: File
If you want to run an OS executable file, command, or a program created within an InterSystems product when the InterSystems product starts, write the processing in the SYSTEM^%ZSTART routine. (The %ZSTART routine is created in the %SYS namespace).
Before you write any code in SYSTEM^%ZSTART, make sure that it works properly under all conditions.
If the ^%ZSTART routine is written incorrectly, or if it is written correctly but the command does not return a response or an error occurs during processing, InterSystems products may not be able to start.
For more information,
Hi Guys,
Not really familiar with how to secure URLs and using SSLs, but we currently looking to change our url from http:/www to https:/www so my understanding is once we get a certificate its a matter of creating a new SSL/TLS configuration and assign the certificate to it, then what how to apply it in out URL, or do we have to do this in IIS?
Thanks
I receive request xml object as
pRequest =
<getURL>
<Url1><.png)
but if I click on the dropdown box option 4 is selected,
I am trying to work with the FHIR Object Model where I convert an incoming HL7v2 to SDA then FHIR. From here I would like to be able to process the FHIR Object by deserializing it to a Bundle object using the following code my problem is I keep on getting an error which is not explaining much about what is wrong with what I am doing any help will be appreciated thanks.
Property FHIRAdapter As HS.JSON.AdaptorFHIR;
Method OnRequest(pRequest As HS.Message.FHIR.Request, Output pResponse As HS.Message.FHIR.Response) As %Status
{
set pmReqFHIRobj=##class(HS.FHIR.Model.Resource.Bundle).
Hi guys,
How can call a clientMethod, Method or classMethod from a html component?
I've this hyperlink acting as a button in a zen page and onclick I've tried the below which is actually executing the function but failing to call the classMethod line, and is there a way to just call clientMethod instead of javascript ?
<td><a id="btnLast" data-role="button" onclick="getWOs();" href="MyOrders.WO.cls">Last </a></td>
ClassMethod retGetWO(wo)
{
Set (WO,Note,Desc,out)=""
if MtcId'=""
{
&SQL(Select Wo into :WO From Purchace.Order Where id=:wo)
}
I WO'="" s %session.Data("WO")=WO}
function getWOs()
{
va
I receive dateTime in this format - yyyy-mm-ddThh:mm:ss+01:00
for ex : 2024-05-31T17:33:08+01:00
I wanted it to convert to yyyymmddhhmmss
desired output = 20240531173308
Beginning with the release of InterSystems IRIS® data platform 2022.3, InterSystems corrected the license enforcement mechanism to include REST and SOAP requests. Due to this change, environments with non-core-based licenses that use REST or SOAP may experience greater license utilization after upgrading. To determine if this advisory applies to your InterSystems license, follow the instructions in the FAQ linked below.
This table summarizes the enforcement:
|
Product |
REST & SOAP requests included in license enforcement? |
|
InterSystems Caché® |
Yes |
|
InterSystems |
To disable the timeout, set the query timeout to disabled in the DSN settings:
Windows Control Panel > Administrative Tools > Data Sources (ODBC) > System DSN configuration
If you check Disable query timeout, the timeout will be disabled.
If you want to change it on the application side, you can set it at the ODBC API level.
Set the SQL_ATTR_QUERY_TIMEOUT attribute when calling the ODBC SQLSetStmtAttr function before connecting to the data source.
Hi everybody,
I created my own REST service class by extending EnsLib.REST.Service.
In some particular conditions of the parameters of the request, the REST service should respond to the client with an HTTP status response code 400 "Bad request".
I read the article "RESTful Exception Handling " and I try to use the suggested:
do ..ReportHttpStatusCode(400)
But the server seems ignore it and get back to client the 500 http response code.
Any suggestions?
I am sorry if the question is a too low knowledge level but I am pretty newbie to Intersystems world.
Alberto
I would like to send bundle object to a router and then
perform a DTL with in the routing rule ( this BundleObject as a source to my DTL).
during this process , I get below exception
reqStream = json content in a stream
Set BundleObject=##class(HS.FHIR.DTL.vR4.Model.Resource.Bundle).FromJSON(reqStream,"vR4")
Set tSC = BusinessService.SendRequestSync("SAMPLE_ROUTER", BundleObj)
expection :
ERROR <Ens>ErrException: <METHOD DOES NOT EXIST>zNewRequestMessage+4^Ens.MessageHeader.1 *%GetSwizzleObject,HS.FHIR.DTL.vR4.Model.Resource.Bundle -- logged as '-' number - @''
The TIMESTAMP type corresponds to the %Library.TimeStamp data type (=%TimeStamp) in InterSystems products, and the format is YYYY-MM-DD HH:MM:SS.nnnnnnnnn.
If you want to change the precision after the decimal point, set it using the following method.
1) Set system-wide
Management Portal: [System Administration] > [Configuration] > [SQL and Object Settings] > [General SQL Settings]
Default time precision for GETDATE(), CURRENT_TIME, CURRENT_TIMESTAMP. You can specify the number of digits in the range 0 to 9.
For details on the settings, please refer to the document page
Hi guys,
Does anyone know what this error message mean, we are trying to save records to My.Package.List
class and sometimes we get this error message at first but when I try to save the same record again from the Terminal it does save fine?
"Error:0 4"_$c(1,4,4)_"«"_$c(22,30,1)_"My.Package.List"_$c(2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1)_"
Thanks
Hi,
I'm trying to get an Ensemble 2017.1 environment to make a https connection to a webservice, but currently seeing SSL handshake errors.A fare bit of troubleshooting later, this looks to be related to SNI support, as the webservice I'm trying to hit will only take connections from clients that have SNI support, and has had TLS.v1 enabled for the troubleshooting.Testing this on 2017.2 versions and above the connection works fine, but on 2017.1 and below am seeing handshake errors.
Hello Community,
I have below issue -
I have an ID with 123456.(ID as a dynamic value coming from request message)
I wanted it to be displayed as "123456" in Json Stream.
Code Example:
set object = ##class(%ZEN.proxyObject).%New()
set object.ID = ID
set x = ##class(%ZEN.Auxiliary.jsonArrayProvider).%WriteJSONStreamFromObject(.json,object)
Case:1
ID : 123456
Will output:
{
"ID": 123456
}
but I need :
{
"ID": "123456"
}
Case:2
ID : "123456" (adding double quotes)
Will output:
{
"ID": "\"123456\""
}
but I need :
{
"ID": "123456"
}
Thanks in advance.
Hi Guys
I'm using the below to populate a tree to just show the root with a folder icon but whenever I click on a folder it loops back to the original folder, how can I disable the root folder from expanding to the next, I only want to show the main opened root folder and not to go any further?
<dynaTree OnGetTreeInfo="GetTreeInfo" showLabel="true" id="editLocTree" onclick="zenPage.setData(zenThis.value)" showLines="false"/>
Method GetTreeInfo(pRoot As %String, Output pTree, ByRef pParms) As %Status
{
Set MyId=..GetId,pos=1
&Sql(Select Name,ID into :name,:id from MSDS_COM.Loc where Parent=:MyId)