Hi
I want to check patient class in multiple rules, since the message structure is different to reach out to patient class value, i created a method to get the patient class and put it in a variable. This variable i can use in multiple rules. But somehow function is not able to read the HL7 message. Any tips.
In rules i have this assign line.
.png)
Function code looks like this, but in the msg pHL7 dont contain any. I tried getPatientClass(HL7) as well as getPatientClass(HL7.Source)
ClassMethod getPatientClass(pHL7 As EnsLib.HL7.Message) As %String
{try{
SET msgType = pHL7.GetValueAt("MSH:9") //MSH:Mess

