For the second part of the question do you have the '%System/%SQL/PrivilegeFailure' System Audit Event enabled?
- Log in to post comments
For the second part of the question do you have the '%System/%SQL/PrivilegeFailure' System Audit Event enabled?
Careful with the 'objectscript.export' folder setting. This needs to match where, under the root of your VScode project, your source lives. For example my settings are:
"folder": "iris/image/iris_src/dev",
"addCategory": true,
So under my VScode project folder I have the path indicated in Folder. This is how my git repository is setup. Now my 'addCategory' is also true. Therefore under that /dev folder I have sub-folders for 'cls' and 'rtn'. All my classes should be under the 'cls' folder and any routines are under 'rtn'. There are other sub folder too for other elements, but you should get the idea.
To add to the puzzle there is also the setting "objectscript.export.atelier". With this setting true the plug in expects each package and sub-package to be a separate directory. So if I have a class Example.code.test what you will end up with is a path, given my setup above, under vs code that looks like this.
iris/image/iris_src/dev/cls/Example/code/test.cls
If the file whose definition you are trying to get to is not in the right place it will open it in read-only mode from the server when using Client-side editing
You can certainly do this. Of course that means you have to maintain it for versioning and such. I am also not sure on the legal licensing issues here if that is something that is a risk for you. After all it is the content of the file that is licensed, not the file itself.
Best of luck with X12!
Prudhvi,
The simplest answer is no. ZEN, which has been a deprecated technology for some time, is a complete framework deeply integrated to Cache. It relies heavily on synchronous communications which has been deprecated by, thought still available, by most browsers. For both reasons new development should not be done using ZEN.
Angular, on the other hand, is a modern framework for Web Application development. It is inherently asynchronous and therefore disconnected from the back-end. As Eduard stated the typical communication methodology is for the back-end to provide a RESTful interface which are quite easy to develop and publish both direct from IRIS or via the InterSystems API Manager.
I am going to make the assumption that this is part of an existing application that you are looking do new development on. As stated ZEN is deprecated therefore it would be a good idea to develop a roadmap to migrate from ZEN to something like Angular. I would take this new project and use it to explore the move to Angular.
You should also note that at some unknown point in time browsers could remove support for synchronous communications. The latter will likely not happen for quite some time as many older applications still rely on it. Several years back one browser, Firefox I think, tried to remove this support and had to quickly backtrack as too many applications stopped working. So you have time.
Aaron,
In my experience you need to purchase the schema. You can go to http://x12.org to find out more. Depending on your usage and needs it can be a bit pricey for licensing especially if you only need one schema. If you have a partner that has access you could piggyback on there license assuming you have a working relationship with them. Unfortunately I did not see any option to purchase just a single schema, though there was something like that in the past as I have a colleague that did so. You can try to contact the org to inquire.
There is no general rule-of-thumb. It really depends on the nature of your application and usage patterns. For example if this is primarily a REST based service I would set the maximum to your license capacity minus a reserve for administrative functions, background tasks, and reporting.
In a mixed environment you need to have a more balanced setup of REST (web) calls versus direct connections.
As I indicated you really need to have an idea of the use patterns of your application.
Diego,
You may not be registered with the WRC. Contact support via the phone number so they can review this with you.
One thought that occurs to me is to check the 'Maximum Server Connections' settings in the CSP Gateway under Server Access. This is the maximum number of connections allows and when reached further requests are queued until a connection is available or the client times out. This is often used with REST services to avoid clients receiving a licensing error which is not desirable or to avoid any CSP calls from consuming the entire system. If this is the case you should examine your license usage and CSP Sessions to see what might be overloading the server.
Of course if this is a very active system then you may need to increase the maximum connections allowed and possibly the license as well.
Hope that helps.
Diego,
As I understand it you are have an existing VM on AWS that you have access too. When you do the SSH command you indicated you end up at linux command prompt and you need to know how to install IRIS in that environment. This is a straight installation and not running in a docker container.
All that being the case you need to do the following:
If you get stuck on any issues come back here or call directly into the Worldwide Response Center https://www.intersystems.com/support.
Finally, if you DON'T have an existing environment you can look at InterSystems Cloud Manager to provision and deploy IRIS for Health to a cloud environment.
https://docs.intersystems.com/iris20221/csp/docbook/DocBook.UI.Page.cls…
Much of the documentation refers to deployment with containers. However there is a containerless option too which is covered in one of the subsections off this main page.
I hope this helped you get started.
@Lorenzo Scalese You beat me to it ![]()
I would suggest a different pattern though. The pattern below will account for cities that have spaces in the names and extended zip codes. It also performs a case insensitive match ( the (?i) at the start of the pattern)
"(?i)((?: *[\.\w])+)+[, ]+([a-z]{2})[.,\s]+(\d{5}(?:-\d{4})?)"
Daniel,
Ok, so the data is basically a parsed report and each daily run replaces the previous run with no Delta or net change processing. So on error they could just rerun the process to get the data.
One suggestion on the alerting, use a distribution group as the address to send to and make sure a at least one of the Business consumers of the data are on that list. Just alerting a technical resource could lead the business side to use incomplete data as they don't know that something went wrong. Relying on the technical resource to pass on this information can be risky. Not a dig at the customer, just reality.
So, back to your question, I would still lean towards a solution that separates the loading of the data from the export to MS SQL Server. Since you want to avoid the use of messages for the data I would still lean towards a global mapped to IRISTEMP, note NOT a process private global as the business hosts will be in separate processes. This is a repetitive process so the fact that the DB will grow should not be an issue. It will reach a size necessary to handle the load and stay there. You can, if needed, programatically handle the mapping using the Config.MapGlobals API ( https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=%25SYS&CLASSNAME=Config.MapGlobals).
So this would look something like this:
Anyway that is my two cents on this. I am sure others will have different ideas.
First lets get the adapter concerns out of the way. An adapter, in general, is only the "how do I connect" part of the. What you need to do is write an Business Operation that has this set as its adapter. Within your service you can do anything you want with the payload that is returned.
If you are not familiar with how this works I would start with our documentation. Here are a couple of links to get you started:
https://docs.intersystems.com/iris20212/csp/docbook/DocBook.UI.Page.cls?KEY=EGDV_intro
https://docs.intersystems.com/iris20212/csp/docbook/Doc.View.cls?KEY=EGDV_busop
There are also Learning Service resources you could use.
Now to your process. First off what is the reason you don't want messages or any tracing? There are a number of good reasons to utilize the structure of IRIS interoperability including the ability to see a trace if something goes wrong and queue persistence to provide resilience in delivery.
If messaging is still not viable for any reason I would consider creating a temporary holding class/Table for the data. then sending a message to another Business operation based on the SQL adapter that will pick this data up, write it to MS, and then remove it from the temp storage. You can map this data to either a non-journaled database or to IRISTEMP depending on your needs. Also allow for the fact that there could be multiple batches in progress so how you key the temporary storage will be important.
Some important questions:
What happens to the data if the process aborts in the middle?
Would missing any of the data being pulled have a negative effect on the business?
Is there any concern over data lineage for security or external auditing ?
Posted in 2017. I am certainly past this issue for myself.
Most likely true. I posted this in 2016 and even then it was a limited use case. Still thought, at the time, that it would help someone get started. As you noted it is quite out of date now
Here is a quick example program I wrote a couple of months ago. This uses JDBC and the JayDeBeapi library others have mentioned. Note the Credentials import provides a set of login credentials in the following format.
LocalCreds = {"user":"SuperUser", "password":"SYS"}
Here is the code:
Daniel,
One thing I always recommend is to get familiar with the API using a standalone tool before attempting to code the programmatic interface. I like Postman as it has pretty good UI to work with. If you are at the command line you can use curl.
Postman can also give you the code for different programming environments. Unfortunately not Objectscript, but it is fairly easy to translate from the examples you can see.
Great that you found that and can adjust those properties to your liking.
Best of luck in your development work.
Marcos,
I was going through some unanswered questions and came across yours. If you could share your spec to DM it to me I can take a look.
However, understand that the %Stream.Object probably contains the JSON payload that you need. As such you can get your dynamic object with the following command:
set dyObject = {}.%FromJSON(body)
hope that helps.
One way to be sure that the request is or is not reaching IRIS is to go into the IRIS Web Gateway on the web server and use the trace utility to see if the request is coming in and what it looks like. Turn on the trace, make a request and then come back and turn off the trace. Also the default on the Web Gateway server definition is the use gzip compression which will make the body unreadable. You can temporarily turn this off while you do this test.
Hopefully you are doing this in a development environment so this will have no impact on production.
UPDATE: One other thing is to check the audit logs for an security issues that you may hit. This does not sound like the issue for you, but its worth checking.
You should understand that while InterSystems employees are on the community this is really a public forum and not an "official" support path. Questions are answered by the community at large when they can. For people in the forum to help more information is needed. You indicated you are working with HealthShare however this is really a family of solutions. Which specific product are you referring to? What part of that product are you trying understand better? The more specific you can be the easier it is for the community to help.
If you have an immediate need I would suggest that you contact the Worldwide Response Center (referred to as the WRC) for immediate support. Here is the contact information:
Phone:
+1-617-621-0700
+44 (0) 844 854 2917
0800615658 (NZ Toll Free)
1800 628 181 (Aus Toll Free)
Email:
support@intersystems.com
Finally, learning services (learning.instersystems.com) and documentation (docs.intersystems.coms) can be of great help. For HealthShare specific areas you do need to be a registered HealthShare user. If you are not work with your organization and the WRC to get that updated.
Is it expected that this will be a single socket connection that is continually available for bi-directional communications? I ask because my initial thought was that we have to completely separate interfaces here. On the remote side (ip) there is a listener on the indicated port number. You will be connecting to this ip+port to send your ADT.
A completely separate communication is initiated by the remote system to YOUR ip address where you would have a listener on the same port. This would be limited to accept communications only from the remote ip. The remote system would send the A19 over this connection which would. If this is the case then you can simply use our built-in HL7 TCP operation and service to accomplish this.
If this is truly a bi-directional communications over the same open TCP connection then @Jeffrey Drumm is correct. They would need to provide the custom protocol they use to manage the communications.
The #Dim is a precompiler directive and not a statement. Objectscript is a type-less language. The #dim directive only assigns a type to a variable which enables capabilities like Intellisense.
The Creation, with the %New(), that you do in the second method is necessary since the list object does not actually exist before that.
First the content type is not correct. This should be application/json. Next I would add the following statement
do httprequest.SetHeader("Accept","application/json")
This tells the request what type of response your application will accept. The default is text/html I believe which can't be supplied by the api.
I think John is basically correct, but I don't see this as an issue. When you are doing client-side editing, which is what I normally do, you need to export code to your project to edit it. This is an action you need to perform as every definition you look at should not necessarily become part of your project. When you choose to 'Go To Definition' the InterSystems extension looks to see if it's local and opens that if it is, local meaning client-side. If not it opens it from the server which is always read-only when working in client-side editing. To edit export it then open the local copy.
You could try %SYS.MONLBL. This is intended as a performance trace, but it MAY work for this purpose too. You would have your application running in one session and get the the process is for that session. Open a new session and run %SYS.MONLBL. Choose the options to monitor ALL routines and the specific process id (PID) where you are running your application. Go back to the application session and perform the function you want to trace. Immediately go back to %SYS.MONLBL and generate the report before doing anything else in the application.
NOTE: This might not work with deployed code and even if it does will likely not provide any details of the deployed programs. Hopefully it will at least show an entry for the deployed routine so you can see what is being called.
Good luck
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
In Linux, create a docker group and add your user to that. This should enable you to do docker without sudo.
I have had great luck with Udemy. You do have to pay for the course, but watch the sales which are constantly going on. You can get courses for $12 to $50 US dollars. Here is the one I bought (currently $2.99).
https://www.udemy.com/course/the-python-mega-course/
I bought this one as it talked about having lots of projects to work on. Some are interesting, but not all. It did cover the language fairly well. However, I found the instructors style not quite to my taste.
Here is another couple of course I have found. I plan on getting one of these to improve my Python knowledge
https://www.udemy.com/course/the-complete-python-course/
https://www.udemy.com/course/python-the-complete-python-developer-cours…
I am taking a course on Java with the instructor from the last link (Tim Buchalka) and so far I do like his style.
Good Luck!
I have not tried this but if you enable LDAP security and select it for that Web Application then passing a username and password it may work. You would setup LDAP per the documentation for Cache.
As I said I am not sure that this would work in this context. An alternative is to use Delegated Authentication. Here is a link to a Global Summit presentation on dealing with LDAP in the Delegated Authentication zAuthenticate routine. https://community.intersystems.com/post/global-summit-2016-ldap-beyond-…
This is a bit old and it is focused on dealing with custom LDAP schemas, but it will help you understand how to work with LDAP in code.
Please expand a bit on what you are attempting to do. Are you trying to execute queries FROM IRIS to the HP NonStop SQL environment? Or are you trying to execute NonStop SQL syntax against IRIS? If this is the latter understand that IRIS implements ANSI Standard SQL with some IRIS specific extensions. NonStop SQL syntax may not work entirely against IRIS as that environment will have its own extensions and syntaxes which may not be standard.
It would help if you could post the SQL you are attempting to run along with any error messages you are receiving.
Let me elaborate a bit more on Dmitry's suggestion. IRIS for Health has a full FHIR server capability built-in. Rather than implement the API yourself, and have to keep up with the changing FHIR versions, you could use that. Now where the data comes from is a separate issue. For this you can use the interoperability of IRIS to reach out to your external systems to supply the data needed to complete the FHIR request. This stays with your use case of IRIS as an ESB to the rest of your environment. You can still use the InterSystems API manager to provide access to the service and mange that inteface.