Hi,
Do you have any experience in inserting a panda dataframe into SQL IRIS Table? The dataframe.to_sql method uses sqlalchemy and it seems no dialect is available for IRIS.
thanks, Blaise
Hi,
Do you have any experience in inserting a panda dataframe into SQL IRIS Table? The dataframe.to_sql method uses sqlalchemy and it seems no dialect is available for IRIS.
thanks, Blaise
Hey Community,
my Caché Version: 2013.1 and can't update now.
is it possible to highlight SQL Statements like in embedded SQL with all the features from SQL Statements?
Actually I use SQL Statements with a simple string like:
set myquery = "SELECT TOP 5 Name,DOB AS bdate,FavoriteColors FROM Sample.Person"But when the queries are more complex it will be very cluttered and unstructured.
It would be nicer if I could set line breaks (I know here could I use indexed variables) and have highlighting like in an embedded SQL:
&sql(
SELECT TOP 5 Name,DOB AS bdate,FavoriteColors
FROM Sample.One of the things I want from VSCode is to have a familiar Studio look.
Thankfully VSCode is easily customizable so you can choose any color for any element.
Here's what I got so far:
.png)
To get the same look add to your settings.json:
"workbench.colorTheme": "Default Light+",
"editor.tokenColorCustomizations":{
"textMateRules": [
{
"scope": "entity.other.attribute-name.objectscript_class",
"settings": {
"foreground": "#000000"
}
},
{
"scope": "string.quoted.double.Hi Community,
We're pleased to invite you to join the upcoming InterSystems IRIS 2020.1 Tech Talk: Data Science, ML & Analytics on April 21st at 10:00 AM EDT!
In this first installment of InterSystems IRIS 2020.1 Tech Talks, we put the spotlight on data science, machine learning (ML), and analytics. InterSystems IntegratedMLTM brings automated machine learning to SQL developers. We'll show you how this technology supports feature engineering and chooses the most appropriate ML model for your data, all from the comfort of a SQL interface. We'll also talk about what's new in our open analytics offerings. Finally, we'll share some big news about InterSystems Reports, our "pixel-perfect" reporting option. See how you can now generate beautiful reports and export to PDF, Excel, or HTML.
Hey Community,
my Caché Version is 2013.1 and I can't update now.
I want to serialize a SQL Answer row into an Array filled with objects and then convert it to json.
Actually I use the following, which is very error prone when I have to do that often:
set list = ##class(%Library.ListOfDataTypes).%New()
&sql(
declare queryONLWK01 cursor for
select F0103, F0104
into :articlenumber, :amount
from GL.Hi, i have installed Prometheus as solution to monitor IAM, Iris & Docker, someone have experience using something like :
https://github.com/Lusitaniae/apache_exporter
this use mod_status, but i'm not sure if possible activate this on containers, ideas ?
I want monitor WebGateways on Prometheus, finally have a full Grafana based monitor for all systems.

InterSystems offers an API-design first approach.
You can check this post for more informations : https://community.intersystems.com/post/iris-api-explorer-application.
One practical thing about this approch and the OpenAPI specification is the definition of exchange objects.
The do ^%REST command does not create object definitions, but only routes and associated methods.
Output for the do ^%REST command for PetShop example :
REST Command Line Interface (CLI) helps you CREATE or DELETE a REST application.
Hi!
I believe the simplest is (to work with csv delimited by ";"):
set file = ##class(%File).%New( "data.csv" )
set sc = file.Open( "R" )
if $$$ISERR(sc) quit ; or do smth
while 'file.AtEnd {
set str=file.ReadLine()
for i=1:1:$length( str, ";" ) {
set id=$piece( str, ";" ,i )
write !, id // or do smth
}
}
do file.Close()
Possible options:
different variants of error handling with sc code.
Embrace while loop into try/catch block.
And what's yours?
Hi Developers,
Please welcome another "Coding Talk" video specially recorded for the second IRIS Programming Contest:
⏯ How to Build, Test and Publish ZPM Package with REST Application for InterSystems IRIS
I’m excited to announce that InterSystems will be joining the open source community for InterSystems ObjectScript extension to Visual Studio Code. Early this year I posted that we were on a journey to redefine the future of our IDE strategy, and what came out of that is Visual Studio Code is the IDE that can support that future.
Download MX into folder C:/mx (if Windows)
Create the REST application MX in IRIS namespace USER:
Prepare excel sheet - place on it mx-formulas and mumps-commands:

To connect excel correctly, you must first specify the server address and port in MX_CONFI.xlsb sheet 'connections'. Port see in ^|"%SYS"|%SYS("WebServer","Port").
Run MX.XLSB. Commands written on sheet created a test global on the server and the interface buttons.
- Currently we are receiving one NTE (See Below) from the source system
NTE|1|Result Comment|TESTING:\.br\\.br\This is a test results. \.br\\.br\This test is a Test.
- We would like to create multiple NTE segments and send to destination system by using ".\br\"(Line Break)
NTE|1||TESTING:
NTE|2||
NTE|3||This is a test results.
NTE|4||
NTE|5||This test is a Test.
Bit we are running into compile issue on the code block. NOt sure if there is a better way to do this. Any help is greatly appreciated.
code:
set iTotCnt=$L(sNTE,"\.br\")
for i1=1:1:iTotCnt d
. s sTmp=$p(sNTE,i1)
. s target.{ORCgrp(k1).
Hi Community,
New "Coding Talk" video was specially recorded by @Evgeny Shvarov for the second IRIS Programming Contest:
Hi All,
I am trying to add pdfbox-2.0.18.jar file into Ensemble and getting below error but with pdfbox-1.x it's working fine. So can anybody please assist me to do fix below issue as showing in screen shot.
Thanks,
Asif
.png)
Due to bussiness requirements.I want to add some bussiness field on intersystem message view ui .
eg:
1. add new action page to display bussiness detail
2. add new function to do more Fine-grained things.
3. add new database field in message table.
finally, I hope get more detail of messae view due to customize it.
Tks.
Hello!
I need to create a .zip file with several files from% Stream.GlobalBinary objects. Can someone help me?
Hi,
I issue a sql like follow:
select *, %vid from (select * from order_info) where %vid between 1 and 10
I got error
[SQLCODE: <-400>:<Fatal error occurred>]
[%msg: <Remote JDBC error: ORA-00911: invalid character >]
So ,what's the correct paging syntax for query external data?
Tks.
■Setting up CACHÉ preferred connection server. server name:localhost ip adress:127.0.0.1 port:1972 Telnetport:23 web server port:57772 web server ip adress: CSP server instance: comment: Authentication method=>password
■hosts localhost 127.0.0.1
■os windows10 (virtual box)
■>ifconfig windows IP configuration Ethernet adapter Ethernet: Connection-specific DNS suffix: Link local IPv6 address: fe80 :: b943: 6646: 21a8: 1a5b% 2 IPv4 address: 10.0.2.15 Subnet mask: 255.255.255.0 Default gateway: 10.0.2.2
■>ping 127.0.0.
Hi all.
I working with ORU messages where I'm only interested in routing the message to an operation where any of the contained OBR:UniversalServiceIdentifier.identifier segments contains certain values.
The problem I'm facing is that the OBRs are nested within a repeating ORCgrp, which is then nested in a repeating PIDgrpgrp (although the source only ever uses a single PIDgrpgrp).
Is there a simple way of achieving this without a massive OR for each possible ORCgrp value?
For clarity, this is the current path with the value in the brackets set: HL7.{PIDgrpgrp(1).ORCgrp(1).
Hi all,
I have a class that has been working so far :(
The class extends the EnsLib.RecordMap.Service.FTPService class and add some information for each rows.
Now, when it saves the object it is raising the following error
ERROR #5803: Failed to acquire exclusive lock error
I've seen the other question in the community and I've tried to unlock
Surely there is an easy way to invoke a ClassMethod from a DeepSee detail listing line, in a similar way to launching a URL. In this case I need to do a little preprocessing of a request adding a SAML token.
I thought I knew how to do it long ago, but I can't read my faded notes on that old parchment.
-Kevin
Ready to use demo of an FHIR Server with IRIS for Health 2020.2 :

Clone this repository
git clone https://github.com/grongierisc/FHIR-HL7v2-SQL-Demo.git
Docker
docker-compose up --build -d
Can use postman config in misc/fhirhl7v2demo.postman_collection.json
Use UX at http://localhost:4201
Login/Password : SuperUser/password

3 steps to use it :
Click on the left arrow between IRIS and the ambulance.
Hope most of you already familiar with project CachéQuality from @Daniel.Tamajon. For those who don’t know about it, it is a static syntax analyzer for your code written for InterSystems products. It may help you to find and solve many different types of issues in your code, and even possible bugs before clients will find it in production. So, with help of CachéQuality you will be able to deliver a better product. You can find the complete list of rules used to check ObjectScript code here.
It was already available in Studio. And now it is also available in VSCode.
This is the first in a pair of articles on SQL indices.
Picture the last time you went to a library. Typically they have books sorted by subject matter (and then author and title), and each shelf has an end-plate with a code describing the subject of its books. If you wanted to collect books of a certain subject, instead of walking across every aisle and reading the inside cover of every book, you could head straight for the bookshelf labelled with your desired subject matter and choose your books.
I am experimenting with Relationships, both Parent to Child and One to Many.
I have done some SQL look-ups and have searched through the documentation, however not in a lot detail, but wonder if there are more and better ways to access both sides of Relationships through SQL?
Thank you in advance for any help provided.
Hello Guys,
Can someone help me?
I'm triggering a Rest Services, my JSON is a String variable(Request.JSON), when I pass it on EntityBody.Write, WS returns me the 403 error.
When I pass Obj = {} it responds by saying that no Data has been sent.
So, my problem is to set the "Obj" with the String variable, I should convert it, correct? But how do I do this? My JSON is all in this variable.
MyCode:
Set Dados = ##class(%Net.HttpRequest).%New(),
Dados.Authorization = pBearer _ Request.Token,
Dados.ContentType = "application/json"
$$$TRACE(Dados.
Some weeks ago, I was reading a book by Stephen Hawking and Leonard Mlodinow, The Grand Design. At a certain point, trying to define why do we exist? , why do we use the models we use in physics?, ...those kind of things you know... they pointed at the Game of Life example invented by the mathematician John Coward in 1970... Basically he wanted to show that a system with really basic fundamental laws (Physics) could evolve and "live" to become a more complex system (Chemistry) in which "something" (humans) could work out its own model and complex rules to explain its reality… the rules for this deterministic model that he exposed were so basic that I thought it could be funny to implement them in ObjectScript when I had some spare time... there are others implementations in JavaScript and other languages... but not in ObjectScript... and that had to be corrected!!… so here you are!
Hello,
Recently I have been required to work with a method called ExportToStream.
The situation asks me to export a UTF-8-encoded JSON as a XML to be imported on old releases. Here's how I attempted to fulfill this request:
do $System.OBJ.ExportToStream("path/to/my/json/file.json", .stream,,,"UTF8")
The file is indeed encoded as UTF-8 and although the XML header denotes that it has been exported as UTF8:
<?xml version="1.0" encoding="UTF8"?Hi Community!
We are glad to invite every developer who uses ObjectSript and VSCode plugin to the upcoming "Introduction to VSCode-ObjectScript" webinar on April 14, 2020 at 11:00 EDT.
Speaker: @Dmitry Maslennikov, InterSystems Developers Advocate, CTO at CaretDev.
You will learn how convenient the development process can be already right now and what we are going to do next to make it even better.
Please check the agenda below.