web stats
Message Validation - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2019, 03:26 AM
taanil taanil is offline
Mirth Newb
 
Join Date: Jun 2018
Posts: 10
taanil is on a distinguished road
Default Message Validation

Hello Experts,

Is there any inbuilt message validation tool in Mirth Connect ?

The idea is, when we receive a message, we want to check the message's conformance to respective version of the standard, if not conformed to respective version, we want to reject and send the error reason through acknowledgement message.

Last edited by taanil; 10-11-2019 at 03:28 AM.
Reply With Quote
  #2  
Old 10-11-2019, 05:54 AM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 181
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

You can build a validator, but there is nothing "automatic".
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
  #3  
Old 10-11-2019, 06:00 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,277
cory_cole is on a distinguished road
Default

No, because HL7 is a standard not a rule. And you will learn that not everybody follows standards. The engine has to be flexible enough to handle that.
Reply With Quote
  #4  
Old 10-11-2019, 07:11 AM
Shamil Shamil is offline
OBX.3 Kenobi
 
Join Date: May 2013
Posts: 154
Shamil is on a distinguished road
Default

Quote:
Originally Posted by taanil View Post
Is there any inbuilt message validation tool in Mirth Connect ?

The idea is, when we receive a message, we want to check the message's conformance to respective version of the standard, if not conformed to respective version, we want to reject and send the error reason through acknowledgement message.
You can. Strict parser option in Mirth uses HAPI serializer for the basic validation (required fields and data types). With HL7v2 profiles you may perform deeper validation. Once you get there there are some "devil in details" to consider.
Reply With Quote
  #5  
Old Yesterday, 02:08 AM
taanil taanil is offline
Mirth Newb
 
Join Date: Jun 2018
Posts: 10
taanil is on a distinguished road
Default

Thank you all for the reply.

Quote:
Originally Posted by Shamil View Post
You can. Strict parser option in Mirth uses HAPI serializer for the basic validation (required fields and data types). With HL7v2 profiles you may perform deeper validation. Once you get there there are some "devil in details" to consider.
Another question please. I do not want to use the strict parser option but would need the validation result.

Reason is, the our application is dependent on the xml structure generated. When i set the strict parser option in Mirth, the xml generated is different.

So, i guess i can call the HAPI java library functions in transformer by sending the raw received HL7 message and getting the validation result ?
Reply With Quote
  #6  
Old Yesterday, 06:27 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 964
agermano is on a distinguished road
Default

Quote:
Originally Posted by taanil View Post
So, i guess i can call the HAPI java library functions in transformer by sending the raw received HL7 message and getting the validation result ?
That would be one way to do it, but there are other options, too.

Depending on where your transformations occur, you can use the HAPI parser at the source for your validation, and the default parser for the destination.

If you need both in the source transformer, you can set the inbound data type to strict and the outbound to default. After validation you can manually reserialize msg from the rawcontent using the default parser.
Reply With Quote
  #7  
Old Yesterday, 06:50 AM
Shamil Shamil is offline
OBX.3 Kenobi
 
Join Date: May 2013
Posts: 154
Shamil is on a distinguished road
Default

To add to what agermano said, you may call HAPI serialization (strict parser) separately within try-catch which gives you the result you are looking for.
Reply With Quote
Reply

Tags
message validation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation