Hi Paul,
You can log with SuperUser/SYS.
The last version of main should fix your issue.
I still have to fix, CDA to FHIR but others are working.
- Log in to post comments
Hi Paul,
You can log with SuperUser/SYS.
The last version of main should fix your issue.
I still have to fix, CDA to FHIR but others are working.
Hi, BTW, starting with IRIS 2021.1+ you can enable the interoperability metrics with those command lines :
// Enable Intero metrics for SAM
zw ##class(Ens.Util.Statistics).EnableSAMForNamespace()
zw ##class(Ens.Util.Statistics).EnableSAMIncludeHostLabel()
Another solution can be with SAM :
Hi Yuri,
Can you add this neat training on how to build an production (interoperability framework) in 100% Python :
For your information, these benchmarks are a comparison of an ObjectScript interoperability code and a 100% python code based on this module :
https://github.com/grongierisc/interoperability-embedded-python ( build a production without a single line of code in objectscript while remaining compatible, neat
)
Great initiative,
I will try to apply this to most of my repository.
BTW, there is an easy way to enable BuildKit without editing the config file of docker :
Unix :
DOCKER_BUILDKIT=1 docker-compose build
Windows :
set "DOCKER_BUILDKIT=1" & docker-compose build
link to a solution with IRIS 2021.1+ with the use of the new window (OVER) function :
https://community.intersystems.com/post/scrollable-resultset-pagination…
What a great article, very useful and with lot of details.
Thanks @Lorenzo Scalese
Have a look at this article/openexchange example :
https://community.intersystems.com/post/how-quickly-publish-restful-api…
it might suit you.
Nice,
I love this article because we have a side by side examples in ObjectScript and Python
Thanks for sharing this neat trick.
Since the launch of IRIS, ENSDEMO namespace is gone.
Now to have demo or anything else you have to go with ZPM : https://community.intersystems.com/post/install-zpm-one-line (the package manager).
Check the list here :
https://openexchange.intersystems.com/
If you still want EnsDemo check those githubs :
BTW, there were an issue on the transformation from FHIR to HL7 on the github demo. This has been fix with this commit : https://github.com/grongierisc/iris-healthtoolkit-service/commit/c9d68c…
Have a look those depots :
Welcome :)
This demo is now 100% python :
https://github.com/grongierisc/iris-python-interoperability-template/tree/master/src/python/Demo
Look at this beauty :
FileOperation.py
import grongier.pex
import datetime
import os
import iris
class FileOperation(grongier.pex.BusinessOperation):
def OnInit(self):
if hasattr(self,'Path'):
os.chdir(self.Path)
def OnMessage(self, pRequest):
ts = title = author = url = text = ""
if (pRequest.Post is not None):
title = pRequest.Post.Title
author = pRequest.Post.Author
url = pRequest.Post.Url
text = pRequest.Post.Selftext
ts = datetime.datetime.fromtimestamp(pRequest.Post.CreatedUTC).__str__()
line = ts+" : "+title+" : "+author+" : "+url
filename = pRequest.Found+".txt"
self.PutLine(filename, line)
self.PutLine(filename, "")
self.PutLine(filename, text)
self.PutLine(filename, " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *")
return iris.cls('Ens.StringResponse')._New("hello")
@staticmethod
def PutLine(filename,string):
try:
with open(filename, "a",encoding="utf-8") as outfile:
outfile.write(string)
except Exception as e:
raise e
FileOperationWithIrisAdapter (we can use native iris adapter :)):
import iris
import grongier.pex
class FileOperation(grongier.pex.BusinessOperation):
def getAdapterType():
"""
Name of the registred adaptor
"""
return "EnsLib.File.OutboundAdapter"
def OnMessage(self, pRequest):
ts = title = author = url = text = ""
if (pRequest.Post != ""):
title = pRequest.Post.Title
author = pRequest.Post.Author
url = pRequest.Post.Url
text = pRequest.Post.Selftext
ts = iris.cls("%Library.PosixTime").LogicalToOdbc(iris.cls("%Library.PosixTime").UnixTimeToLogical(pRequest.Post.CreatedUTC))
line = ts+" : "+title+" : "+author+" : "+url
filename = pRequest.Found+".txt"
self.Adapter.PutLine(filename, line)
self.Adapter.PutLine(filename, "")
self.Adapter.PutLine(filename, text)
self.Adapter.PutLine(filename, " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *")
return 1
The app wasn't published, now it's should be ok.
With this image you will see the difference between Kong Enterprise and Kong Community :

In short Kong EE (Enterprise Edition) bring :
If you need training on Kong EE you can follow this guide :
https://community.intersystems.com/post/iam-intersystems-api-manager-zero-hero
Here :

Here a simple demo to show how this module can work with almost no effort to existing production :
https://github.com/grongierisc/iris-python-interoperability-template
Look how python code and ObjectScript code are similar :
Service :

Operation :

Now zpm support is available ![]()
zpm "install pex-embbeded-python"
Happy coding in pure python ![]()
Great article !
Is it possible to use a custom image from a local docker registry with Kubeless ?
If you want to discover IRIS for Health with some samples, the best way is to install ZPM (community package manager). More info here : https://community.intersystems.com/post/install-zpm-one-line
Then, you have access of almost all application in OpenExchange.
Let's have an example with csvgen-ui : https://openexchange.intersystems.com/package/csvgen-ui
zpm "install csvgen-ui"
In OpenExchange you will find may example about rest API, web app, and so.
Well done,
This driver is a game changer. It sets the foundation for complex projects based on python and IRIS.
I can't wait to see new projects based on Django and IRIS.
What a great example of IRIS Embedded Python + Dash Framework, very instructive.
You are using mostly sql query + dataframes, I can't wait to see another example of dash with SQLalchemy on IRIS.
The SQLalchemy toolkit for IRIS is expected in the next coming month.
For now, it's not possible in pure python, because the select namespace is specified by the environment variable IRISNAMESPACE, and environment variable can't be change in the parent process, I have tried by reloading iris module with no success.
To achieve that, for now, as Robert says, you have to create an helper method in objectscript ... :(
Class Embedded.Utils
{
ClassMethod GetNameSpace() As %Status
{
Return $namespace
}
ClassMethod SetNameSpace(pNameSpace) As %Status
{
zn pNameSpace
Return $namespace
}
}
Python :
import iris
print(iris.cls("Embedded.Utils").GetNameSpace())
try:
print(iris.cls("Security.Users").Exists("SuperUser"))
except RuntimeError:
print("Wrong NameSpace")
print(iris.cls("Embedded.Utils").SetNameSpace("%SYS"))
try:
print(iris.cls("Security.Users").Exists("SuperUser"))
except RuntimeError:
print("Wrong NameSpace")
I did a last PR.
Many small fixes (check every commit).
Now I can't help you more, it's java stuff and it's no more related to IRIS.
I publish a PR to your repo.
What I did, I removed your hibernate jar, doesn't know what is in, so I directly used dialect code.
Then, in you property files you named the iris connection string :
instead of
the repository is updated to show you how to play with quarkus + iris + orm + iris dialect :
https://github.com/grongierisc/quarkus-iris/tree/master/quarkus-iris-orm-quickstart
Hope this help, can't help you more with just config files.
You will find here a demo of a quarkus rest crud api with iris as a database.
https://github.com/grongierisc/quarkus-iris
It's not using the Hibernate ORM but this shouldn't be an issue.