Question Yone Moreno · Aug 11, 2020 How could we retrieve REST body? Hello, We would need to get the body from a REST message. How could we do that in a service? Could you provide an example, please? We have read: https://community.intersystems.com/post/restful-way-data-transfer #Ensemble 0 3 0 219
Question Yone Moreno · Jul 21, 2020 Are there any how-to or FAQs about Objectscript and Healthshare? It would be interesting if there is some recommended documentation about best practices using Healthshare for interoperability. Also, some how-tos or frequently asked questions about ObjectScript. Or event better, if there are experienced developers who would like to share some common habits on their work with Studio / ObjectScript, which are valuable to do the developing work better. For example, How to get the XML of a class and write it into a REST operation: ... #ObjectScript #HealthShare 0 1 0 212
Question Yone Moreno · Jul 15, 2020 How could we get the SourceConfigName from a Ens.Response sent by an Operation to the BPL? Hello, We would need to know the Ens.Response SourceConfigName to identify which Operation has raised an exception. We have tried: $$$LOGINFO("..%Process.%PrimaryResponseHeader.SourceConfigName..: "_..%Process.%PrimaryResponseHeader.SourceConfigName) //It outputs an empty string $$$LOGINFO("response.SourceConfigName: "_response.SourceConfigName) //It generates an exception We would need to get from an Ens.Response which body is null, its SourceConfigName: #Business Operation #Business Process (BPL) #Interoperability #Ensemble 0 2 0 308
Question Yone Moreno · Jul 7, 2020 How could we get the ErrorStatus which holds a Response? Hello, We wonder how could we get the following attribute: Which is found in the response Header being sent from a Operation to a Process, when there is an exeptionWwe would need to access the Response ErrorStatus text in the Process We have already tried: #Caché 0 1 0 153
Question Yone Moreno · Jun 24, 2020 How could we test a TCP HL7 service? Hello, We wonder how could we send an HL7 message to a service to test it. For example, we have a service, at localhost port 19111 We have tried to use SoapUI to send a REST POST request as follows: At the event log we see the following trace: Then, if we try with POSTMAN as follows: #Business Service #HealthShare 0 3 0 2.8K
Question Yone Moreno · Jun 16, 2020 How could we move all files from a set of directories to one directory inside the server? Hello, We would like to learn how would you approach this task. We would need to check every day a set of folders which are outside our server (in fact we could see them as if they were "inside" the server), then we need to check for modified or created files in the last day, and move all the ones which match the criteria to just one folder in our server. We have thought about doing the following: 1) Create a task to run it each day: #Code Snippet #Caché 0 5 0 581
Question Yone Moreno · Jun 15, 2020 How could we iterate over an ORU, to get all OBXs? Hello, We would need to iterate all over the OBXs list and get their OBX3 CE1 to determine if it is the lab result we need to send to the output system. We wonder how could we achieve this in a foreach component inside a Bussiness Process. We think we would need to use a foreach because of it is needed to generate a message, for each one of the OBX which have the OBX3 CE1 that the output systems uses for the lab results. #Code Snippet #Caché #Ensemble 0 1 0 515
Question Yone Moreno · Jun 1, 2020 How could we iterate on a segment list, to get a needed field which is present in each one of the list's elements? Hello, We are wondering how could we iterate over a segments list, The use case is that we are sending from Process X to process Y a message, only if at the OBR4 CE1 there is a certain code. We were getting this field as follows: set context.studyReason = request.GetValueAt("ORCgrp(1).OBRuniongrp.OBRunion.OBR:UniversalServiceIdentifier.Identifier") How could we iterate over the following message and get both OBR4 CE1 (1 and 2): #HL7 #Caché 0 2 0 593
Question Yone Moreno · May 19, 2020 JavaGateway exception: <UNDEFINED>zGetJavaVersion+22^%Net.Remote.Service.1 ‽‽ Hello, We are trying to connect to a database through a JavaGateway. We observe that the JavaGateway reports: Failed to start the Java Gateway server: ERROR #5002: Error de cache: <UNDEFINED>zGetJavaVersion+22^%Net.Remote.Service.1 *versionWithPrefix We have checked that we do have the Java Home set: /usr/java/jdk1.8.0_65 And we have seen the java files in the server: #ObjectScript #Caché 0 2 0 509
Question Yone Moreno · May 13, 2020 How could we install zpm? Hello, We have read the installation guide to get started with zpm package manager: https://openexchange.intersystems.com/package/ObjectScript-Package-Manag... We wonder what means the second step: "Import the zpm.xml into IRIS and compile via any desired way (Management Portal, Studio or Terminal)" We have thought that it means to place the zpm-0.2.2.xml file inside "C:\InterSystems\HealthShare_2\opt\contenedor" #InterSystems Package Manager (IPM) #Caché 0 7 1 1.2K
Question Yone Moreno · May 11, 2020 Could Ensemble generate a CADES sign? Hello, We would like to know if Ensemble could generate a CADES sign from a string and a certificate. We have read: https://cedocs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=GXML... So we have seen that we could create a class, to sign a document, and store the sign inside that new class. We have also seen that there are some different algorithms to choose from, like sha1. #ObjectScript #Caché 0 1 0 169
Question Yone Moreno · Apr 30, 2020 Convert XML to a Request Message which has HL7 segments Hello, We would need to convert a message from the following class: #Code Snippet #HL7 #Caché 0 1 0 842
Question Yone Moreno · Mar 27, 2020 How could we paralelize two different calls? Hello, We are developing a BP where we would need to call at the same time to get appointments in two external systems. So then, we would need two threads, one for primary care appointments, and other for specialist appointments . We need to paralelize both calls because of both of them require some time and we would need to shorten it as much as possible. We are currently using a flow: #Business Process (BPL) #Ensemble 0 3 0 275
Question Yone Moreno · Mar 26, 2020 Merge two lists? Hello, We are developing a method to take two messages which have a list of data types. It is being defined as: Class Mensajes.Response.HistoriaClinica.ConsultaCitasResponse Extends Ens.Response [ ProcedureBlock ]{ #ObjectScript #Caché 0 1 0 575
Question Yone Moreno · Mar 26, 2020 Show a XML message stored in a context variable, using the Production? Hello, We are developing a Transformation and we are wondering: how could we debug and show a XML message which is being an output from a transformation, without storing it into request/response/callrequest/callresponse? We mean, how could we show a context variable in the production? For example, let's have a transformation which stores an appointment in a variable called: context.especializadasConFormatoPrimarias How could we show in the Production? Currently it is being stored as the Transformation's output: #ObjectScript #Caché 0 1 0 204
Question Yone Moreno · Mar 26, 2020 Correct way to set a value into a list? Hello, We have a tranformation where we would like to convert a date from the following format: "'dd/mm/yyyy' 'hh:mm'" (double quotes are just visual to indicate this is a string) to date and time separated: date: dd/mm/yyyy time: hh:mm We have already splitted the datetime into date and hour as follows: #ObjectScript #Caché 0 1 0 345
Question Yone Moreno · Mar 25, 2020 Convert %String withn JSON structure to %DynamicObject and then to XML message Hello, We have been reasearching how could we parse a string with a JSON structure like the following: #JSON #ObjectScript #XML #Caché 0 1 0 304
Question Yone Moreno · Mar 16, 2020 invalid HTTP version, using SoapUI to send a HL7 message as XML Hello, We have a Service which behaves differently even though two equal Soap UI XML requests are being sent, from different systems. When it is being sent from the other system, our Service's log shows: ERROR <Ens>ErrGeneral: invalid HTTP version'xmlns:ges="http://XXX.XXXXXXXXX/GestionPacientes">' When we send the same XML message from SoapUI, it is being processed by our system. #Business Service #InterSystems IRIS for Health 0 1 0 414
Question Yone Moreno · Mar 5, 2020 Sending HTTP requests to store special characters‽ We would like to be able to store accented characters into an API. Currently our Rest Operation is the following: #ObjectScript 0 10 0 2.2K
Question Yone Moreno · Mar 5, 2020 Get SourceConfigName and TargetConfigName in a BPL We need to get service's both source and target names. We have checked that we could obtain them in the service: set ^sourceName = ..#SERVICENAME However we would like to get it directly from the BPL. We have tried: #ObjectScript #Ensemble 0 2 0 561