Article Benjamin Thorne · Jul 17, 2018 1m read

The following code snippet uses GZIP to compress/decompress a file. Choose a file by specifying a file path in the "filename" variable.


Class objectscript.GZIP Extends %RegisteredObject
{
	classmethod test() {
		//Export Global(s) uncompressed
		set filename="C:\Temp\myglobal.xml"
		do $System.OBJ.Export("^oddEXTR.gbl",filename)
		//Open exported Globals
		set uncompressed = ##class(%FileBinaryStream).%New()
		set uncompressed.Filename=filename
		Set compressed = "C:\temp\mycomglobal.xml"
		//Open File Device over Gzip and Copy Uncompressed information to it
		Open
6
1 2391
Question Sabit Issakhan · Oct 29, 2018

Hello Everyone!

Following the example below i can download file only txt format, in other format(pdf,xls,rar) i have errors(can't open file), 

So, how i will change code for download file in other format? 

Thanks! 

ClassMethod GetFile(file) As %String
{
#dim %request As %CSP.Request
    set filename="E:\Rest\"_file   
    set %response.ContentType=..GetFileContentType($p(filename,".",*))
    do %response.SetHeader("Content-Disposition","attachment;filename="""_$p(filename,"\",*)_"""")
    Set %response.NoCharSetConvert=1
    Set %response.Expires=50
    set file=##class(%File).%New(filename)
    do file.O

3
1 1484
Article Vivian Lee · Feb 27, 2023 4m read

Setting the Scene

Suppose you have the following 2 persistent classes that are both JSON-enabled (i.e. extends %JSON.Adaptor or %pkg.isc.rest.model.adaptor)

Class Test.Employee Extends (%Persistent, %pkg.isc.rest.model.adaptor) { 
  Parameter RESOURCENAME = "employee";
  Parameter firstName As %String;
  Parameter lastName As %String; 
  Relationship projects As Test.Project [ Cardinality = many, Inverse = employee) ];
}

Class Test.Project Extends (%Persistent, %pkg.isc.rest.model.adaptor) {
  Parameter RESOURCENAME = "project"; 
  Parameter name As %String; 
  Relationship employee
0
1 359
Question Alecsandru Onac · Feb 26, 2023

Hello,


Could someone help me with a solution, for example "dump" to IRIS.DAT, I mention that it is difficult to manipulate a file of ~ 200 GB. I would be interested in generating an IRIS.DAT file containing the "schema" without any information.

Thanks !

2
0 324
Article Brendan Bannon · Aug 29, 2016 7m read

The Art of Mapping Globals to Classes 1 of 3

Looking to breathe new life into an old MUMPS application?  Follow these steps to map your existing globals to classes and expose all that beautiful data to Objects and SQL.

By following the simple steps in this article and the next two you will be able to map all but the craziest globals to Caché classes.  For the crazy ones I will put up a zip file of different mappings I have collected over the years.  This is NOT for new data; if you don’t already have existing global please just use the default storage.

If you still can’t make heads or tails of

26
13 6226
Question Scott Roth · Sep 21, 2022

I am trying to pull down the webgateway from containers.intersystems.com and I am receiving the following errors... Please advise

[roth16@int-lxiris-vd02 tls-ssl-webgateway]$ docker pull containers.intersystems.com/intersystems/webgateway:2021.1.0.215.0
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Trying to pull containers.intersystems.com/intersystems/webgateway:2021.1.0.215.0...
Error: initializing source docker://containers.intersystems.com/intersystems/webgateway:2021.1.0.215.0: reading manifest 2021.1.0.215.0 in

7
0 681
Article Neerav Verma · Sep 27, 2019 2m read

At least three different ways to process errors (status codes, exceptions, SQLCODE etc is given in ObjectScript. Most systems have status, but for a range of reasons exceptions are more convenient to manage. You spend some time translating between the various techniques dealing with legacy code. For reference, I use several of these excerpts. It is hoped that they will also support others.

///Status from SQLCODE:set st = $$$ERROR($$$SQLError, SQLCODE, $g(%msg))  //embedded SQLset st = $$$ERROR($$$SQLError, rs.%SQLCODE, $g(rs.%Message)) //dynamic SQL///Exception from SQLCODE:throw ##clas
2
5 2632
Question Scott Roth · Nov 13, 2018

We are trying to script a High Availability Shutdown/Start script in case we need to fail over to one of our other servers we can be back up within mins. Is there a way to configure the startup procedure to Automatically Stop/Start the JDBC server when shutting down or starting up cache? is there an auto setting we can change?

Thanks

Scott Roth

The Ohio State University Wexner Medical Center

10
0 856
Question Abhishek Raj · Feb 24, 2023
22:07:52.821:Ens.Director: ERROR <Ens>ErrException: <CLASS DOES NOT EXIST>zgetProductionItems+45^Ens.Director.1 *EnsLib.HL7.Adapter.TCPOutboundAdapter -- logged as '-' number - @' Set tRunAsJob=pDefinition(tConfigName,"RunAsJob"), pDefinition(tConfigName,"RunAsJob")=$S('
22:07:52.823:Ens.Director: ERROR <Ens>ErrException: <CLASS DOES NOT EXIST>zgetProductionItems+45^Ens.Director.1 *EnsLib.HL7.Adapter.TCPOutboundAdapter -- logged as '-' number - @' Set tRunAsJob=pDefinition(tConfigName,"RunAsJob"), pDefinition(tConfigName,"RunAsJob")=$S('
22:07:52.824:Ens.Director: ERROR <Ens>ErrException:
3
0 254
Article Julian Matthews · Jul 21, 2021 4m read

Over the years, I have found myself needing to create multiple HL7 messages based on a single inbound message. Usually these take the form of an order or result from a lab. Each time I have approached it, I have tried to start from scratch under the belief that the previous attempt could have been done better.

Recently, the need arose again and I was able to create a solution that I wasn't ashamed of. My main concern was that I would always either find myself getting buried in a BPL, or use ObjectScript and attempt to edit messages using the SetValueAt Method for the HL7 Message Class.

Problem

Wh

1
2 1468
Question Stefan Cronje · Feb 23, 2023

Hi all,

I might be losing my mind or do not understand how ObjectScript does string comparisons, but the following does not look right to me.

Is it really possible that you can't compare non-numerical strings other than with an equals or not equals?

USER>w ("45" < "46")
1
USER>w ("45" > "46")
0
USER>w ("V45" < "V46")
0
USER>w ("V45" > "V46")
0
USER>w ("V45" <= "V46")
1
USER>w ("V45" >= "V46")
1

In Python:

>>> print("45" < "46")
True
>>> print("45" > "46")
False
>>> print("V45" < "V46")
True
>>> print("V45" > "V46")
False
>>> print("V45" <= "V46")
True
>>> print("V45" >= "V46")
4
0 379
Question Michael Lundberg · Feb 24, 2023

Hello!

We have an integration that reads a file from labresults and needs to be transformed into another file format.

The transformation and incoming file correlate against a schema. In that schema there is a type declared as %xsd.double.
As these values ​​are labresults, we are not allowed to change the expression of the value in any way. For example, 1.0 must not become 1. And 2 must not be written as 2.0. As well as 0.3 must not be written as .3 and so on.
I am not allowed to change the type in the schema to %String. I am not allowed to change anything in the schema at all.

I've tried and

0
0 205
Question Dean Rochester · Feb 23, 2023

Newbie here...

I am looking to use fhir to gather patients in our end point that have a certain diagnosis and or certain insurance.

Is this what fhir can be used for?

In the past I have done the normal SQL query/extract to CSV file.  Looking to use fhir for this for future.

Thanks in advance for your time

Dean-O

1
1 520
Question Ponnumani Gurusamy · Feb 2, 2019

Hi Team,

               Our community is most useful for my learning. I have one concern.We need to add a chat box for discuss and interact with other developer in our community . It is most useful for maintaining the team relationship and sometime we get guidance from anyone on directly. I known already we have the chat box in global master(that chatbox just we send greetingsrelated messages only). This same one is need for our community also(All are reading articals and question on our community page).So I am asking chat box on our community page also.

Thanks & Regards,

Ponnumani Gurusamy. 

2
0 426
Job Stefan Cronje · Feb 23, 2023

Job description

We are looking for a software development intern. We are a small company, and this creates the opportunity for you to help grow the business, and your career with it.

Responsibilities

Learn new things.
Try new things.
Do coursework.
Resolve defects and assist in adding new features.
Contribute towards our open-source repositories and start new ones.
Create and enhance Visual Studio Code extensions.
Be actively involved on developer communities to learn and contribute.
Challenge the status quo.

What we are looking for in you as a Person

Problem solver.
Perseverance.
Willingness to

0
0 343
Job Mike Yackanich · Feb 22, 2023

The eHealth Exchange is seeking candidates for a Senior Interoperability Engineer position.

As a senior interoperability Subject Matter Expert (SME), the role involves translating and explaining complex technical information for prominent organizations across the healthcare spectrum including providers, payers, Health IT vendors and service providers, health information exchange organizations (HIEs), and federal agencies, focusing on how eHealth Exchange solutions solve specific challenges.

0
0 317
Article Heloisa Paiva · Feb 22, 2023 4m read

Why I've decided to write this

Once again I had a challenge that costed me some time and a lot of testing to reach the best solution. And now that I've managed to solve it, I'd like to share a little bit of my knowledge.
 

What happened?

In a namespace there were a lot of similar classes, so to make them simpler there were a superclass with comon properties. Also, there are relationships between them. I had to export one of them to JSON, but I couldn't change the superclasses, or I would break down the flow of many other integrations.

What made it all difficult was the problem that my JSON

0
2 487
InterSystems Official Fabiano Sanches · Feb 22, 2023

 InterSystems announces its second developer preview, as part of the developer preview program for the 2023.1 release. Many updates and enhancements have been added in 2023.1 and there are also brand-new capabilities, such as production-ready support for Columnar Storage, ability to use Bulk FHIR, and support to MacOS 13 Ventura. Some of these features or improvements may not be available in this current developer preview.

Future preview releases are expected to be updated biweekly and we will add features as they are ready. Please share your feedback through the Developer Community so we can

0
0 225