· Sep 17, 2021

Use of environment info to control HL7 transformations

Hey everyone.

I was curious if anyone had any success/tips with regards to using a global or a system parameter/property to control the behavior of a transform or process/operation.

Is there a parameter I can currently reference from the system that can be used for an if/else, or am I best off creating a simple Global and setting it according to the environment I am in?

Product version: HealthShare 2019.1
Discussion (2)2
Log in or sign up to continue

It depends what you really need.


There are existing global flags that are available through various classes. For instance SystemMode() will provide system wide constants for Live, Test and Dev...

The SystemMode() is admin configured via the Memory and Startup screen on the management portal.


For some global settings, particularly business related, it would be good practice to use lookup tables and not a global...


Also, if you are not aware of them yet, you should take a look at creating your own Ens util functions which are automatically inherited into routers and DTL's and provide a good place to stash various levels of global and business value / logic...