Testing in studio

After creating a  ClassMethod for a routing rule is it possible to test an HL7 message within Studio rather than using Management portal?  It would make it easier to debug the custom function to see where the rule is failing.

  • 0
  • 0
  • 176
  • 0
  • 2

Answers

Hi Sam.

Why not create a TCP listener Service and link the message to your rule?

Using a tool to send HL7 message you can debug your rule. (https://sourceforge.net/projects/hl7inspector/)

I use to use HL7 Inspector to send message and I've debugged my code by this way.

There is not a direct way to test your code in Studio.

 

Best regards,

Francisco López

Check EvaluateRules method of Ens.Rule.Definition class. It evaluates rule by name and context. You can call it from Studio or Terminal.