Format code.
Use username1 as default identity.
Add message list.
Filter out empty lines.
Convert messages back into HL7.