Custom HL7 Trigger Events
I had forgot that a while ago, I had to create a custom HL7 message, and I saw a question on the forum asking how you can do it.
Here are the steps: (All modifications take place in both the MSH_24_GLO_DEF and the tablevalues.xsd). In this example I am creating a ZZZ^Z01 message;
- Edit Table76 and add the message type (add an enumeration) by editing the schema in a text editor:(in my case ZZZ)
- Edit Table3 to represent the trigger:(in my case Z01)
- Edit the Table354 that represents the Message_Trigger: (in my case ZZZ_Z01)
- Finally create your schema with the roon node that follows the following algorithm: Body schema type = TargetNS + “#” + MSH9.1 + MSH9.2 + MSH12.1 (with dots removed) + MSH12.2 (or GLO if the value is blank) + MSH12.3 (or DEF if the value is blank), and don’t forget to make sure that the target namespace of the schema matches what you have defined in the BTAHL7 Configuration Explorer
And finally, here is a sample.
Eric,
I’m looking at the sample at it seems to me (probably obvious to you!) that the tablevalues24.xsd that is included for the message itself also has these edits to the Table3, Table76 and Table354 also.
I need to modify this in the Common2X project and the local instance of the tablevalues24.xsd in the project.
Without those values in the tablevalues24.xsd it appears that the schema locator fails.
Thanks,
Tom
Comment by Tom Canter — May 30, 2006 @ 11:42 am
Yes, you are correct, you need to also make the changes as you mentioned, I made the changes to my intitial blog, if you have any questions, please let me know.
Eric
Comment by eric — June 12, 2006 @ 1:11 pm