Question alberto bovo · Nov 4, 2016

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

4
0 1724
Question Mark OReilly · May 18, 2023

Trying to pass pdf to save to custom file  using default Trying to pass pdf to save to custom file  and %f. but oriignal filename didn't send (it does in terminal). What is missing from setting filename from stream? can the file passthrough not out of box use outputfilename or has wrong default one been sent. 

set fname="ThisHasBeenChanged.pdf"Set test = ##class(File.EpacsPDF).%OpenId(1)
set tempStream=##Class(%Stream.FileCharacter).%New()
Set sendstream = ##Class(Ens.StreamContainer).%New()
 
set sendstream.OriginalFilename=fname
set sendstream.OutputFilename=fname
Set tempStream=
5
0 362
Article Alberto Fuentes · Jan 29, 2024 12m read

We have a yummy dataset with recipes written by multiple Reddit users, however most of the information is free text as the title or description of a post. Let's find out how we can very easily load the dataset, extract some features and analyze it using features from OpenAI large language model within Embedded Python and the Langchain framework.

Loading the dataset

First things first, we need to load the dataset or can we just connect to it?

There are different ways you can achieve this: for instance CSV Record Mapper you can use in an interoperability production or even nice OpenExchange

3
2 441
Article Robert Cemper · May 24, 2024 2m read

If one of your packages on OEX receives a review you get notified by OEX only of YOUR own package.   
The rating reflects the experience of the reviewer with the status found at the time of review.   
It is kind of a snapshot and might have changed meanwhile.   
Reviews by other members of the community are marked by * in the last column.

I also placed a bunch of Pull Requests on GitHub when I found a problem I could fix.    
Some were accepted and merged, and some were just ignored.     
So if you made a major change and expect a changed review just let me know.

3
0 149
Question Will · May 16, 2024

Hi,

I have succesfully installed IRIS client on MacOS (see bottom half of this post).  What's next?  How do I access the menu to launch IRIS Client, access Studio, and connect to remote server etc??

Thanks,

W

----------------------------------------------------------------------------------------------------------

$$> sudo sh /Users/xxx/Downloads/HealthConnect-2023.1.3.517.0-macx64/irisinstall_client

Password:

Your system type is 'Mac OS X/x86/64-bit'.

Enter a destination directory for client components.

Directory: /Users/xxx/InterSystems/Iris_Client

Directory '/Users/xxx/InterSystems/Iris_Client' does

1
0 408
Question John Steffen · May 23, 2024

Receiving HL7 messages from our EMR, and processing to send out to downstream system.  These are SIU_S12 messages, with a custom ZOR segment added by the EMR to include order information.  The purpose of including this segment is to allow us to only send messages to the vendor that contain a procedure ID that is included on the list of procedures desired by the vendor.  These values are in a LUT with the procedure ID in the key field, and a value of 1.

We are recently upgraded to 2023, so I'm strugging with two things:  the new look of the rule editor, and the exist expression to validate that

3
0 249
Question Sheetal Kairawala · May 23, 2024

Hi,

We are sending HS.Message.PatientFetchRequestAsync to one of the edge servers and gettthin this error but this doesnt happen when we send requests to a different server. Both servers are on same version of Healtshare. what could be the issue?

ERROR #6248: SOAP response is a SOAP fault: faultcode=Client faultstring=Badly formed SOAP Message faultactor= detail= <error xmlns="http://www.intersystems.com/hs/gateway/hsws"> <text>ERROR #6207: Unexpected SOAPACTION value: http://www.intersystems.com/hs/gateway/hsws/HS.Gateway.Access.WebServic…; </error>

2
0 224
Question Andy Stobirski · May 23, 2024

Hi

I've started seeing the following alerts in the message log of my Primary HealthConnect server

05/23/24-11:20:09:718 (6732) 2 [Utility.Event] Process 7248 generated 3 alerts in 10 seconds. Suspending alert notifications for this process.

Process 6732 corresponds to 

EXECUTION DETAILS
Process State: RUNW
Last Global Reference: ||ISC.BackupDBArray("USER")
Routine: SYS.VSSWriter.1
Location: VSS Writer
Source Location: +33^SYS.VSSWriter.1
5
0 156
Question Krishnaveni Kapu · May 23, 2024

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 - @''

3
0 150
Article Megumi Kakechi · May 23, 2024 2m read

InterSystems FAQ rubric

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

0
0 330
Question Anas Smith · May 23, 2024

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 

1
0 125
Article Muhammad Waseem · May 22, 2024 3m read

  

Hi Community,
In this series of articles, we will explore the following InterSystems SQL usage options:

  1. Embedded SQL

  2. Dynamic SQL

  3. Class Queries


SQL Overview

InterSystems SQL provides a full set of standard relational features, including the ability to define table schema, execute queries, and define and execute stored procedures.

0
2 339
Question David Marinkovic · May 21, 2024

  

Hi guys,

I need to check my HTTPS POST REQUEST, in order to do this I try to catch it by using wireshark.

I can't see anything because of the encryption.

I try unsuccefully to use the SSLKEYLOGFILE key (windows 11), but the generated file did not increase when I trigger my code OR postman, it grows only by the action of the web browser.

My question is so simple :

1°) How have a clear view of the HTTPS request from IRIS code in wireshark

2°) Why the keylog file did not increase when trigger the code from IRIS ?

3°) Can I use the cert of IRIS to see clearly the traffic in WireShark and where is

2
0 515
Question Kari Vatjus-Anttila · Feb 23, 2023

Hello,

I need a way to securely store credentials in IRIS that are used to access third-party APIs. These credentials include different clientId/secret pairs that I don't want to expose. While I know that it's possible to define Production Credentials in Ens.Config.Credentials, I understand that they are stored in plain text.

Does anyone have an idea of how to securely store credentials in IRIS?

5
0 776
InterSystems Official Bob Kuszewski · May 21, 2024

Here’s our Q2’2024 quarterly platforms update.  If you’re new to these updates, welcome!  This update aims to share recent changes as well as our best current knowledge on upcoming changes, but predicting the future is tricky business and this shouldn’t be considered a committed roadmap. 

With that said, on to the update…

InterSystems IRIS Production Operating Systems and CPU Architectures

Red Hat Enterprise Linux

0
0 424
Announcement Kristina Lauer · May 21, 2024

Spotlight on Personal Training, Global Summit. Sign up for a session with Joe Gallant or Deirdre Viau, Technical Trainers.


⏱ In the final countdown to Global Summit 2024, don't forget to booka personal training session!

🌟 This week the spotlight is on two Technical Trainers.

💬 Meet with @joe.gallantto discuss Interoperability, InterSystems ObjectScript, System Admin, and Analytics/BI.

💬 Talk to @Deirdre Viau about HealthShare® Patient Index, HealthShare Unified Care Record®, or Analytics/BI.

Take advantage of their expertise by signing up for a 45m session. Refresh your memory on previous classroom training, discuss a technical concept, or start learning about InterSystems technologies.

📧 Email GSTechExchange@intersy

0
0 146
Announcement Kristina Lauer · May 21, 2024

Develop in InterSystems IRIS, Implement InterSystems IRIS


Are you new to coding in InterSystems IRIS® data platform?

👩‍💻 Learn how to start developing an app in InterSystems ObjectScript alongside your language of choice (program, 20h).

🥇 Earn a digital badge by demonstrating your skills in the final assessment!

Need to learn how to implement InterSystems IRIS?

👨‍💻 Get familiar with InterSystems IRIS integration and programming(program, 26h). Digital badges are available for some learning paths within this program.

0
1 272
Question Santosh Kannan · May 21, 2024

I want to customized retry frequency of transaction so that 503 error can be prevented while pushing FHIR bundle to the LFS.

How do I achieve this?

Reference the following algorithm to increase the retry interval of IRIS transaction

An exponential backoff algorithm retries requests exponentially, increasing the waiting time between retries up to a maximum backoff time. The following algorithm implements truncated exponential backoff with jitter:

  1. Send a request to the Cloud Healthcare API.
  2. If the request fails, wait 1 + random-fraction seconds, then retry the request.
  3. If the request fails,
2
0 183
Question Harikumar V · May 19, 2024

I created a Dotnet api to connect with IRIS database to do some task.
"InterSystems.Data.IRISClient.dll" (NativeAPI) is used in dotnet api to connect IRIS.
I used following code in dotnet to open and close the IRIS connection.

Open Connection
---------------------------
IRISConnection iRISConnect = new IRISConnection();
IRISCommand command = new IRISCommand();
iRISConnect.ConnectionString = "Server=xxxx.com; Port=1972; Namespace=aaa; Password=yyyy; User ID=xxxxxx;";
IRIS NativeAPI = IRIS.CreateIRIS(iRISConnect);
iRISConnect.Open();

Connection Close
--------------------------
command.Dispose();
iRISConnect

1
0 216
Question Robert Steed · May 21, 2024

I created %ZSTART, having just learned about it. I included some minimal code to test it, as follows:
%ZSTART
SYSTEM
         WRITE "SYSTEM.",!
         QUIT
JOB
         WRITE "JOB.",!
         QUIT
LOGIN
         WRITE "LOGIN.",!
         QUIT
CALLIN
         WRITE "CALLIN.",!
         QUIT

Now Terminal still works as normal, and sure enough I get "LOGIN" displayed, but when I start Studio I get an error message such as the following. I wonder what Caché ODBC has to do with it.

---------------------------
Studio
---------------------------
Unable to log on to server BOBSCACHE, namespace APEX
[Cache

3
1 243
Article Kurro Lopez · May 21, 2024 9m read

Continuing with the series of articles on voice file management, we are going to see how we can convert text into audio and receive the file with the chosen voice.
We will also explore how a service from OpenAI can help us analyze a text and determine the mood expressed in it.
Let's analyze how you can create your own voice file and how it can “read” your feelings.

0
2 484
Question Santosh K · May 16, 2024

Hi Team,

I am trying to use the inbuilt class: EnsLib.HL7.Service.FileService to pass through an HL7 ADT message as a part of an HL7 to FHIR transformation. We have a client requirement, where we are receiving an NTE segment as a part of the ADT message. I am trying to map the NTE segment to an OBX Segment. I need to implement a counter for OBX segment whenever a NTE segment is found and map the NTE fields to the new OBX segment

How do I implement the counter for OBX?

Thanks

Santosh 

1
0 225
Article Robert Cemper · May 19, 2024 2m read

If one of your packages on OEX receives a review you get notified by OEX only of YOUR own package.   
The rating reflects the experience of the reviewer with the status found at the time of review.   
It is kind of a snapshot and might have changed meanwhile.   
Reviews by other members of the community are marked by * in the last column.

I also placed a bunch of Pull Requests on GitHub when I found a problem I could fix.    
Some were accepted and merged, and some were just ignored.     
So if you made a major change and expect a changed review just let me know.

0
0 167