No whens matched and no otherwise defined
Hi,
I am creating a new rule as per screen shot below but my when condition is not matching. Please can anyone help me to understand as what could be the issue? I tried to get trace value for PV1.3.1 segment but it's returning null value.
.png)
Test Results
.png)
Regards
Avi
Comments
The paths you're using for trace and 2nd when condition don't look correct for the ISC-supplied 2.3 Document Category. I would expect to see HL7.{PV1:3.1} and HL7.{PV1:PatientClass} used with a 2.3 DocType Category and ADT_A01 DocType Name (used for A04s).
Thanks Jeffrey for your inputs.
When I am selecting docName as ADT_A01, rule set fails. After selecting ADT_A04 it process the rule set but my when condition doesn't match.
Also for tracing values i am only getting results for MSH segment.
.png)
Checking upon message log i can see
|
For rule 'Checking A&E', no whens matched and no otherwise defined |
.png)
docName is not the same as DocType Name. The former is the HL7 event (i.e. "ADT_A04") while the latter is the message structure associated with that event. Many events use the same structure, so there's not a 1-1 correspondence. For example, A01, A04, A05 and A08 messages all use the ADT_A01 DocType Name.
In your trace statements, you should use the "_" character for string concatenation, not the "&" character; that's the full-evaluation logical "AND" symbol.
My guess at this point is that PV1:PatientClass is not equal to "E".
Thanks again,
docName is specified in constraint section of rule. Where do we specify DocType Name?
You can't specify a DocType Name in a routing rule, at least directly. By specifying the docName, you're both selecting the message by Message Type/Trigger Event and identifying the structure (DocType Name) that will be used to parse the message in the rule. If you look at the HL7 v2.3 DocType Category via the Management Console in Interoperability | Interoperate | HL7 v2.x | HL7 v2.x Message Structures | 2.3, then select the ADT_A04 Message Type, you'll see this:
.png)
This means that an A04 event will be evaluated/parsed using the structure defined for an A01; the DocType Name (Message Structure) is ADT_A01.