Flow of information through the
pattern instance
When you send a message with the test application, the information flows through
a pattern instance in the following sequence:
-
The Healthcare Pattern Test application adds MLLP bytes to your message and then
sends it over TCP/IP to the pattern instance.
-
The message arrives in the Receiver message flow where the MLLP bytes are trimmed.
-
The MSH segment in the message is parsed.
-
If the duplicate message option is turned on in the pattern instance,
duplicate messages are checked.
-
An acknowledgment reply (ACK) message is sent back to the Healthcare Pattern Test application.
-
The message is sent to the RXF queue. The message is picked up from the RXF
queue by the Processor message flow.
-
In the Processor flow a PHP script is run to generate the text based report. The
name of the PHP script is determined from the HL7 message event and code. For example,
the script ADT_A01.php is invoked for an
ADT^A01
HL7 message.
-
The output from running the PHP script is appended to the report file. You provide
the name of the report file as a pattern parameter.
-
Periodically the report file is copied to the destination directory. Once the copy has
completed, the report file is deleted and a new report file is started.
All flows also have an exception handling subflow that handles any problems that
are caught by the flow.