go to post Guillaume Rongier · Mar 2, 2023 have you tired this python module ? pip3 install iris-dollar-list it can convert $list to python list.
go to post Guillaume Rongier · Jan 16, 2023 Hi Joe, The 2 dots syntax is used to access the properties and methods of the current object. You can also use $this to access the current object. For example, if you have a class called "MyClass" and you have a property called "MyProperty" in that class, you can access the property value by using the following syntax: User.MyClass Extends EnsLib.BusinessService { Property MyProperty; Method MyMethod() { set ..MyProperty = 10; set $this.MyProperty = 10; } } In your case, you can use the following syntax to access the methods of the EnsLib.File.InboundAdapter class: User.MyClass Extends EnsLib.BusinessService { Parameter ADAPTER = "EnsLib.File.InboundAdapter"; Property Adapter = "EnsLib.File.InboundAdapter"; Method MyMethod() { do ..Adapter.AdapterMethod() do $this.Adapter.AdapterMethod() } } Hope this helps.
go to post Guillaume Rongier · Oct 21, 2022 Hi, You need to fill in some environment variables that allow you to authenticate yourself and therefore connect. The variables are : IRISUSERNAME IRISPASSWORD IRISNAMESPACE In a docker file for example : # environment variables for embedded python ENV IRISUSERNAME "SuperUser" ENV IRISPASSWORD "SYS" ENV IRISNAMESPACE "IRISAPP" In a shell : export IRISUSERNAME=SuperUser export IRISPASSWORD=SYS export IRISNAMESPACE=IRISAPP
go to post Guillaume Rongier · Oct 9, 2022 query is the way to go : import iris g = iris.gref("^MyGlobal") # Insert some data g[1] = "my first line" g[2] = "my second line" g[1,"a"] = "my first line with a key" g[1,"b"] = "my first line with a key" g[2,"a"] = "my second line with a key" g[2,"b"] = "my second line with a key" g[3,"a",1] = "my third line with a key and a subkey" for (key, value) in g.query(): print(f"{key} -> {value}") result : ['1'] -> my first line ['1', 'a'] -> my first line with a key ['1', 'b'] -> my first line with a key ['2'] -> my second line ['2', 'a'] -> my second line with a key ['2', 'b'] -> my second line with a key ['3'] -> None ['3', 'a'] -> None ['3', 'a', '1'] -> my third line with a key and a subkey
go to post Guillaume Rongier · Sep 26, 2022 I have partially found a solution: First I create an SQL function with python code : CREATE FUNCTION sqliknowparser(tText VARCHAR(50000)) RETURNS VARCHAR(50000) LANGUAGE PYTHON { import iknowpy engine = iknowpy.iKnowEngine() # index some text text = tText engine.index(text, 'en') t_output = "" # or make it a little nicer for s in engine.m_index['sentences']: for e in s['entities']: if e['type'] == 'Concept': t_output = t_output + e['index']+ "|" return t_output[:-1] } Then I use this function in my query : SELECT ID, sqliknowparser(Text) as entities FROM AA.Goal Then I "piece" it an use a union query : SELECT ID, $piece(sqliknowparser(Text),'|',1) as entities FROM AA.Goal union SELECT ID, $piece(sqliknowparser(Text),'|',2) as entities FROM AA.Goal Any improvement are welcome :)
go to post Guillaume Rongier · May 16, 2022 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()
go to post Guillaume Rongier · May 12, 2022 Another solution can be with SAM : https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls... https://community.intersystems.com/post/new-video-viewing-customizing-me... You can also enable interoperability metrics (only on IRIS 2021.1+) with : // Enable Intero metrics for SAM zw ##class(Ens.Util.Statistics).EnableSAMForNamespace() zw ##class(Ens.Util.Statistics).EnableSAMIncludeHostLabel()
go to post Guillaume Rongier · Apr 6, 2022 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 : https://github.com/grongierisc/InstallEnsDemoLite https://github.com/grongierisc/InstallEnsDemoHealth https://github.com/OneLastTry/irishealth-ensdemo
go to post Guillaume Rongier · Apr 5, 2022 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/c9d68cc...
go to post Guillaume Rongier · Apr 5, 2022 Have a look those depots : https://github.com/grongierisc/FHIR-HL7v2-SQL-Demo https://github.com/grongierisc/iris-healthtoolkit-service
go to post Guillaume Rongier · Feb 28, 2022 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.
go to post Guillaume Rongier · Feb 18, 2022 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")
go to post Guillaume Rongier · Feb 18, 2022 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.
go to post Guillaume Rongier · Feb 17, 2022 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 : quarkus.datasource.reactive.url instead of quarkus.datasource.jdbc.url. That's it.
go to post Guillaume Rongier · Feb 17, 2022 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.
go to post Guillaume Rongier · Feb 16, 2022 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.
go to post Guillaume Rongier · Feb 8, 2022 You still need the iris hibernate dialect. You can find it here : https://github.com/intersystems/quickstarts-java https://github.com/intersystems/quickstarts-java/tree/master/src/org/hib...
go to post Guillaume Rongier · Feb 8, 2022 If you don't want to create new data on the FHIR protocol, you must use the PUT verb with an ID instead of POST. PUT creates the resource with the specified ID if the ID does not exist, otherwise it replaces the pre-existing data. POST always creates a new resource with a new ID, that's why the ID is not mandatory when POSTing. For automatic transformations from HL7/CDA to FHIR, there is the possibility to define the ID for some resources and thus to avoid duplication. Below is an example of code to transform an HL7 payload to SDA by specifying the ID of the patient in order to avoid duplicating this resource, after that you can transform this SDA to FHIR with no duplication of patient. /// This is a custom business process that transforms an HL7 message to SDA format (an internal healthcare data format for InterSystems IRIS for Health). /// To use this class, add a business process with this class to the production and configure the target. The default target will send the SDA to a component /// that converts the data to FHIR. /// Class FHIRDemo.HL7TransformProcess Extends Ens.BusinessProcess [ ClassType = persistent ] { Parameter SETTINGS = "TargetConfigName:Basic:selector?context={Ens.ContextSearch/ProductionItems?targets=1&productionName=@productionId},TransformFile:Basic"; Property TargetConfigName As Ens.DataType.ConfigName [ InitialExpression = "HS.FHIR.DTL.Util.HC.SDA3.FHIR.Process" ]; /// Transforms an HL7 message to SDA, an internal healthcare format for InterSystems IRIS for Health. Method OnRequest(pRequest As EnsLib.HL7.Message, Output pResponse As Ens.Response) As %Status { set tSC = $$$OK try { $$$ThrowOnError(##class(HS.Gateway.HL7.HL7ToSDA3).GetSDA(pRequest,.tSDA)) $$$LOGINFO(tSDA.Read()) Set tQuickStream = ##class(HS.SDA3.QuickStream).%New() $$$ThrowOnError(tQuickStream.CopyFrom(tSDA)) Set tResponse = ##class(HS.Message.XMLMessage).%New() Do tResponse.AdditionalInfo.SetAt(tQuickStream.%Id(),"QuickStreamId") Do tResponse.AdditionalInfo.SetAt($P(pRequest.GetValueAt("PID:3:1"),"^"),"PatientResourceId") Set tSC = ..SendRequestSync(..TargetConfigName,tResponse,.pResponse) } catch ex { set tSC = ex.AsStatus() } quit tSC } Storage Default { <Data name="HL7TransformProcessDefaultData"> <Subscript>"HL7TransformProcess"</Subscript> <Value name="1"> <Value>TargetConfigName</Value> </Value> </Data> <DefaultData>HL7TransformProcessDefaultData</DefaultData> <Type>%Storage.Persistent</Type> } }
go to post Guillaume Rongier · Jan 25, 2022 check this repo https://github.com/grongierisc/iris-healthtoolkit-service, it may suit your need.