All time
InterSystems Developer Community is a community of 19,493 amazing developers
We're a place where InterSystems IRIS programmers learn and share, stay up-to-date, grow together and have fun!

I'm trying to convert a CSV inbound to an HL7 MFN^M16 outbound. I know I'm using book information as the CSV but I don't think that matters. Please let me know if that's incorrect.

My service is reading the file in just fine and when I don't have a DLT transformer the raw message passes through to outbound file folder just fine. However, when I include a basic DLT that simply copies a couple of fields over I get the "Ens.StreamContainer" error. Everything also seems to be good in the Record Mapper.

0 4
0 3.2K

I'll be doing my first xml transform soon and I'm hoping to find a good graphical mapping tool to generate the XSLT. Does anyone have any recommendations? I've tried the demo of Altova MapForce and it's exactly what I want but it's super expensive. Working for a non-profit it would be nice if I could find a free or cheap solution.

0 5
0 3.2K

In this series of articles, I'd like to present and discuss several possible approaches toward software development with InterSystems technologies and GitLab. I will cover such topics as:

  • Git 101
  • Git flow (development process)
  • GitLab installation
  • GitLab Workflow
  • Continuous Delivery
  • GitLab installation and configuration
  • GitLab CI/CD

In the previous article, we covered Git basics, why a high-level understanding of Git concepts is important for modern software development, and how Git can be used to develop software. Still, our focus was on the implementation part of software development, but this part presents:

  • GitLab Workflow - a complete software life cycle process - from idea to user feedback
  • Continuous Delivery - software engineering approach in which teams produce software in short cycles, ensuring that the software can be reliably released at any time. It aims at building, testing, and releasing software faster and more frequently.

7 1
3 3.1K

For testing purposes, I would like to create an EnsLib.HL7.Message from either a %String or a file on disk and pass it into a function in a unit test (outside of an Ensemble context). EnsLib.HL7.Parser appears to do the necessary parsing, but it also sends the message via Ensemble service rather than returning it as a value. Is there a way to leverage the parsing outside of a Ensemble service? Alternatively, is there another way to create an EnsLib.HL7.Message?

1 4
0 3.1K

In my previous article, we reviewed possible use-cases for macros, so let’s now proceed to a more comprehensive example of macros usability. In this article we will design and build a logging system.

Logging system

Logging system is a useful tool for monitoring the work of an application that saves a lot of time during debugging and monitoring. Our system would consist of two parts:

  • Storage class (for log records)
  • Set of macros that automatically add a new record to the log

16 6
10 3K

I was curious if application partners were developing their own task managers for scheduling background tasks, or using the built in task schedule that is part of the Cache platform.

For those that are using the Cache task manager, what has been your method for distributing default tasks that your application needs during initial install as well as upgrades? Are you distributing an export of the %SYS.Task object, or perhaps you are distributing an installation script that adds a task to the task scheduler when it is first run?

0 3
0 3.1K

Our current file repository was on a linux server, but it has been having issues. For this reason, we are moving the data to SharePoint online, since we already pay for the service. It seems there is not an option to ftp/sftp files to/from the SharePoint Online server from our RedHat server (Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2015.2.3 (Build 855_0_17370))

How would I send and receive From the RedHat server to the SPO Server?

I'd love full example code, but any help pointing me in the right direction would be much appreciated.

0 3
0 3.1K

I am trying to make architecture for my project. And for it, it needs to make list property in which there is list of objects of another table, the data must be unique, therefore I make sql-query to check objects of another table if it is used or not, but I can't make sql-query to check elements in list in property with elements of another table. Can you help me? In property ID of object is used.

0 12
0 3.1K

Generally speaking, InterSystems products supported dynamic objects and JSON for a long while, but version 2016.2 came with a completely new implementation of these features, and the corresponding code was moved from the ObjectScript level to the kernel/C level, which made for a substantial performance boost in these areas. This article is about innovations in the new version and the migration process (including the ways of preserving backward compatibility).

5 0
2 3.1K

Hey Community,

Please join the next InterSystems online programming competition:

🏆 InterSystems FHIR Accelerator Programming Contest 🏆

Submit an application that uses InterSystems FHIR-as-a-service on AWS or helps to develop solutions using InterSystems IRIS FHIR Accelerator.

    Duration: May 10 - June 06, 2021

    Total prize: $8,750

    👉 Landing page 👈

    6 15
    1 2.8K
    Article
    · Oct 12, 2016 12m read
    RESTful API

    Beginner’s guide to RESTful Application Program Interface (API) design and documentation. Through the example you will learn some common pattern for RESTful API.

    Before you read

    You need to know

    3 0
    1 3.1K

    Hi,

    I have a situation where I write a character stream to a file. The file content gets signed and the signature is sent to a service provider together with the file content.

    The signing is done using openssl.

    This works perfectly on a dev PC, which is runnning Windows and has a little-endian architecture.

    The problem is as soon as I do this on the server, which has a big-endian architecture, the signed value is incorrect according to the service provider.

    The content is signed using RSA SHA256 with PSS padding.

    0 8
    0 3K

    GraphQL is a standard for declaring data structures and methods of data access that serves as a middleware layer between the client and the server. If you’ve never heard about GraphQL, here is a couple of useful online resources: here, here and here.

    In this article, I will tell you how you can use GraphQL in your projects based on InterSystems technologies.

    17 24
    10 2.5K
    Question
    · Mar 12, 2019
    String to date

    I am trying to convert a string to date but can not get it to work I have function that I would like to take in a date string and covert it to date object

    here is the ezample so far can not get it to work any help appreciated

    set p="12/03/2019"
     
    w $System.SQL.TODATE(p,"YYYY-MM-DD")
     
    <ILLEGAL VALUE>todate+32^%qarfunc

    if I try this still get the wrong value returned

    set p="12/03/2019" 
    w $ZDATE(p,3)
    1841-01-12
    0 6
    0 3K

    Checking if Directory or File Exists:

    Outlined below is an example of how to check if a directory exists:
    
    Set directoryName="c:\temp\nosuchdir"
    
    /* Check for existence of a directory - Return Value:  0 - directory does not exist;  1 - directory does exist  */
    
    Set directoryExists=##class(%File).DirectoryExists(directoryName)
    
    If ('directoryExists)  // do the processing for when a directory does not exist


    Outlined below is an example of how to check if a file exists:

    3 1
    0 3K

    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:

    0 3
    0 3K

    I have an imported WSDL from SalesForce and I am trying to send a login-request to the SalesForce-servers via InterSystems. The login requires a username and a password in the body, and an organizationId in the header. I am having trouble filling the organizationId in the header.

    Via SoapUI I can send a successfull message to the SalesForce-servers. The message should look like this:

    0 4
    0 3K