Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to access the Settings of HL7 Router from within the HL7 Rule

Question
Jimmy Christian · May 18, 2022

How to access the Settings of HL7 Router from within the HL7 Rule

Hello,

I want to access the HL7 Router settings from within the HL7 rule. Goal is to create a New class by extending  "EnsLib.HL7.MsgRouter.RoutingEngine".

Then create a PARAMETER ProcessMessage which can be set to an integer value for the HL7 Router.

Create a Rule class and based on the value of this setting ProcessMessage
process/not process the messages.

 

Class XYZRules Extends Ens.Rule.Definition [ CompileAfter = CUSTOM.Util.Rules.FunctionSet ]
{ Parameter RuleAssistClass = "EnsLib.HL7.MsgRouter.RuleAssist"; XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
{
<ruleDefinition alias="" context="EnsLib.HL7.MsgRouter.RoutingEngine" production="HL7Production">
<ruleSet name="" effectiveBegin="" effectiveEnd="">
<rule name="Discard" disabled="false">
<when condition="ProcessMessage=0">
<return></return>
</when>
</rule>.

.

.

.

Thanks,

Jimmy Christian.

#Business Rules #HL7 #ObjectScript #Ensemble
Product version: HealthShare 2019.1
$ZV: Cache for Windows (x86-64) 2018.1.2 (Build 309_5_19475U)

Source URL:https://community.intersystems.com/post/how-access-settings-hl7-router-within-hl7-rule