Question Smythe Smythee · Apr 25, 2022

How to save Data transformation Target data into Globals

Hi Team,

I am Working on one data transformation, In the data transformation the data transformation data needs to be saved in the globals.

Can you please help me to save the data into the globals in a Persistent class.

Thanks in advance

Product version: Ensemble 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.1 (Build 312_1_18937U) Fri Apr 26 2019 17:58:36 EDT

Comments

Marc Mundt · Apr 25, 2022

All persistent classes will save their data in globals automatically. It will save using the standard structures of the IRIS SQL layer.

If you have an existing global structure that you need to maintain you'll need to map your classes to your global structure. See this series of articles on how to do that.

0
Smythe Smythee  Apr 26, 2022 to Marc Mundt

Hi,

I need the save the value getting in my target message into the globals. please find the example for my data transformation

<assign value='source.{MSH:1}' property='target.{MSH:1}' action='set' />
<assign value='source.{MSH:2}' property='target.{MSH:2}' action='set' />
<assign value='"{target.{MSH:3.1}' property='target.{MSH:3.1}' action='set' />
<assign value='"{target.{MSH.4.1}"' property='target.{MSH:4.1}' action='set' />

The value in the target message needs to stored in the globals. Can you please share any example so i can proceed further.

Thank you in advance

0
Marc Mundt  Apr 26, 2022 to Smythe Smythee

Can you explain more about your use case? What is the purpose of copying these fields directly into globals? Is there another application that will read the values from the globals?

0
Smythe Smythee  Apr 26, 2022 to Marc Mundt

Yes another application will take the date from the saved globals

About my user story

1.Store the patient information in Cache database

2.Store the patient information coming in ADT Message in Persistent class

0
Marc Mundt  Apr 26, 2022 to Smythe Smythee

Is there already a defined structure for these globals/do these globals already exist? Or will you design something new?

0
Smythe Smythee  Apr 26, 2022 to Marc Mundt

I have define the new globals for this use case

0