HL7 Notes (3)
BTAHL7 Flat File Assemble Pipeline Component – single message
a) read value from MSH5.1, 5.2 and 5.3, comnbine them together as destination party
b) read message send port name, lookup for its destination party. If there is party configured for that port, override step a)
c) if EnablePartialNameResolution is checked, search 5.1+5.2 then try 5.1
d) if destination party is find, read schema validation logc, BRE validation and trailing delimiter rule
d) if destination party is find, use the namespace defined in ConfigurationExplore, else use Microsoft namespace
e) read MSH part, throw exception if not found
f) read body part, throw exception if not found
g) if destinaiton party requires map MSH, then replace the stream
h) serialze MSH and body
i) read ZPartPresent property, get the part if true
j) construct a HL7FFStream with header, body and z
k) establish a virtual stream, copy content from hl7 stream
l) seek virtual stream to its start (imo, use virtual stream is not a good idea, if message is big enough, will costing lots of I/O overhead)
m) creat a new message with the above virtual stream and return